Registered Member
|
Hi all,
I am trying to compile some code however I get a compilation error: http://pastebin.com/uTzAQkuS Can someone tell me what I am doing wrong? If you need more info please ask EDIT: modified to a url that will not expire.
Last edited by deadeyes on Wed Jan 12, 2011 10:32 am, edited 1 time in total.
|
Administrator
|
Are you linking against QtTest?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
To be honest I have no idea. How do I check this? Some people told me to add QT += testlib to the .pro file. I am using kdevelop however, and can't find such a file. So I expect that I need to edit CMakeLists.txt. Do note that I almost have no experience with this. I looked into the CMakeLists.txt but couldn't figure out what to change/add. |
KDE Developer
|
In the target_link_library you are using to link your test, add ${QT_QTTEST_LIBRARY}, for example:
Pino Toscano
|
Registered Member
|
I tried adding only that statement but that still failed. So I created a new project and took a look in that CMakeLists.txt file. I added the missing parts, resulting in this:
cmake . and make Linking now works Thanks alot guys for your help! (I really spend alot of time on this because some people pointed me in the totally wrong direction: qmake instead of cmake) |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient