PDA

View Full Version : Cant link a simple Qt program



arealperson
4th February 2015, 20:19
I'm trying to build the very simple "Hello World" Qt sammple.

I downloaded Qt 5.4 from here...
http://download.qt-project.org/official_releases/online_installers/qt-opensource-windows-x86-online.exe
The filename sayes x86 but the msvc dir sayes "C:\Qt\5.4\msvc2013_64\"

So Who knows what it is ?

Does this version work with MS Visual Studio 2013 Express ? (You can't use the fancy plugin with Express version)

I can compile file ok. But it will not Link. I added Qt5Core.lib to linking, but still no luck. It sayes
-----------------------------------------------

Could someone please provide the library includes with file names which must be used to link against ?

I can't find that information anywhere.

Thank you.

wysota
4th February 2015, 20:26
Learn to use qmake. Especially its -tp parameter.

arealperson
4th February 2015, 21:01
Your saying I can't use the IDE I must use a custom make file system ?

That can't be correct. That would mean the Qt include files have no logical structure based on there own #include statements.

wysota
4th February 2015, 23:21
Your saying I can't use the IDE I must use a custom make file system ?
No, I'm saying use qmake to generate a visual studio project.


That would mean the Qt include files have no logical structure based on there own #include statements.
Include files are the least of your worries. But you can save yourself a couple of hours of manually trying to recreate what qmake will generate for you in one second.