From: Bogdan M. <dag...@gm...> - 2010-01-18 10:15:20
|
On Mon, Jan 18, 2010 at 10:19 AM, Fabien Chéreau <fab...@go...> wrote: > Hi Bogdan, > Well done! > Does it work if you replace > TARGET_LINK_LIBRARIES(stelMain ${extLinkerOption} > ${STELLARIUM_STATIC_PLUGINS_LIBRARIES}) > by > TARGET_LINK_LIBRARIES(stelMain ${STELLARIUM_STATIC_PLUGINS_LIBRARIES} > ${extLinkerOption}) > in src/CMakeLists.txt line 497? No, this doesn't work. I thought that it wouldn't work, but I tried it nevertheless both in MSYS and Creator, and it doesn't work. The linking errors are different this time, though. :) The plug-in and the GUI can't find the main lib - I'm getting a lot of "undefined reference to `StelApp::singleton'" and other things. To top it all, some classes in TelescopeControl can't find -lwsock32, although for some reason it's in the path right before it. Here's what link.txt looks like with your changes only: D:\Qt\4.6.0\mingw\bin\g++.exe -Wall -Wsign-promo -fexceptions -fident -mthreads -O3 -DNDEBUG -Wsign-promo -fexceptions -fident -mthreads -mwindows --large-address-aware --enable-auto-import --verbose=1 CMakeFiles\stellarium.dir\main.cpp.obj -o stellarium.exe -Wl,--out-implib,libstellarium.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -lwsock32 libstelMain.dll.a D:\Qt\4.6.0\qt\lib\libQtOpenGL4.a D:\Qt\4.6.0\qt\lib\libQtScript4.a D:\Qt\4.6.0\qt\lib\libQtSvg4.a D:\Qt\4.6.0\qt\lib\libQtGui4.a D:\Qt\4.6.0\qt\lib\libQtTest4.a D:\Qt\4.6.0\qt\lib\libQtXml4.a D:\Qt\4.6.0\qt\lib\libQtNetwork4.a D:\Qt\4.6.0\qt\lib\libQtCore4.a D:\Qt\4.6.0\qt\lib\libQtScript4.a -lglu32 -lopengl32 "D:\Program Files\GnuWin32\lib\libiconv.dll.a" "D:\Program Files\GnuWin32\lib\libintl.dll.a" "D:\Program Files\GnuWin32\lib\libz.dll.a" -lwsock32 ..\plugins\TelescopeControl\src\libTelescopeControl.a libStelGuiLib.a D:\Qt\4.6.0\qt\lib\libQtOpenGL4.a D:\Qt\4.6.0\qt\lib\libQtScript4.a D:\Qt\4.6.0\qt\lib\libQtSvg4.a D:\Qt\4.6.0\qt\lib\libQtGui4.a D:\Qt\4.6.0\qt\lib\libQtTest4.a D:\Qt\4.6.0\qt\lib\libQtXml4.a D:\Qt\4.6.0\qt\lib\libQtNetwork4.a D:\Qt\4.6.0\qt\lib\libQtCore4.a D:\Qt\4.6.0\qt\lib\libQtScript4.a D:\Qt\4.6.0\qt\lib\libQtSvg4.a D:\Qt\4.6.0\qt\lib\libQtGui4.a D:\Qt\4.6.0\qt\lib\libQtTest4.a D:\Qt\4.6.0\qt\lib\libQtXml4.a D:\Qt\4.6.0\qt\lib\libQtNetwork4.a D:\Qt\4.6.0\qt\lib\libQtCore4.a -lglu32 -lopengl32 "D:\Program Files\GnuWin32\lib\libiconv.dll.a" "D:\Program Files\GnuWin32\lib\libintl.dll.a" "D:\Program Files\GnuWin32\lib\libz.dll.a" -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 Regards, Bogdan Marinov |