Right. Thanks again for the help! Youv'e saved me some days to finish a prototype of the project
(I renamed file to dummy.cpp and used CXXFLAGS again in dummy.pro, then put extern "C" in dummy.cpp as you mentioned & recompiled)
Right. Thanks again for the help! Youv'e saved me some days to finish a prototype of the project
(I renamed file to dummy.cpp and used CXXFLAGS again in dummy.pro, then put extern "C" in dummy.cpp as you mentioned & recompiled)
Ok, now to the next problem.. This should fit under the same topic.
I want to build a static executable with this vortex library included. I have tried putting "static" in my "CONFIG +=" in my .pro file, but that just makes no difference. (same size of executable, and not working on other machine with same distro)
Do you have a static version of that library?
no, not that i know of.
the library is compiled with --enable-static but I dont know where the static library is installed..
If you don't have a static version of that library you can't link statically with it. Look for libvortex.a or something similar on your filesystem.
JustaStudent (20th April 2006)
Found it!
/usr/local/lib/libvortex.a
how do i now compile my Qt project with this statically?
(thanks for the help, btw! you seem to really know this stuff.)
If you use pkg-config, then try changing --libs to --static.
I changed the libs in project settings from "$$system(pkg-config --libs vortex)" to "--static $$system(pkg-config --libs vortex)"
Now I get this error message;
/usr/bin/ld: cannot find -lqt-mt
It looks like it tries to link statically with Qt.Originally Posted by JustaStudent
Try:-static $$system(pkg-config --libs vortex) -dy
I tried the -dy switch, still the same. I want also Qt libraries to be static. I have /usr/local/qt/lib/libqt-mt.a already so that should be possible
Bookmarks