How to Install Qt Creator and SDL in Windows


How To Install Qt Creator


Whether you are creating a mobile app, desktop application or a connected embedded device, Qt Creator is the cross-platform IDE that makes application and UI development a breeze. Since time-to-market is key, the IDE includes productivity tools that speed up your development time.

Here is step by step to install Qt Creator in Windows :

1.  You must have Qt Creator installer, you can download it here.

          Look for look for "MinGW", for example Qt 5.5.1 for Windows 32-bit (MinGW 4.9.2, 1.0 GB)



2.  If done, click for the installer,



3.  This dialog will be shown, then click next,

4.  Then the Message for sign in will be shown, but we can skip this,



5. Set the directory, then next



6.  Select the components that you want to install, then next



7.  License agreement will be shown, choice I have read ........ then click next



8.  Start menu shorcuts, just click next



9.  Then click install




 10. Finish install, now you can launch the program or just click finish.



After the installation done we should install SDL as the library,

1.  Download this file,

2.  Extract file to new folder. Ex : C:\Software\SDL



3. To create a new SDL2 project in Qt Creator, choose File > New Project > Plain C++ Project, 
     
Ex : C:\Temp" with project name: "untitled1



4. Copy all *.dll files from your SDL folder (C:\Software\SDL\bin) to build folder. 
     
Ex :  C:\Temp/untitled1/here, Like this one.



5.  Add these 3 lines on your .pro project file.
   
INCLUDEPATH += C:/Software/SDL/include
     LIBS += -LC:/Software/SDL/lib -lmingw32 -mwindows -mconsole -lSDL2main -lSDL2
     CXXFLAGS = -std=c++11



6.  Try to make basic SDL program to test your installation.


7. Done.

0 komentar:

Posting Komentar

Diberdayakan oleh Blogger.

Text Widget

Popular Posts

Recent Posts

Copyright © 2025/ Learn About C / C++

Template by : Urangkurai / powered by :blogger