From: jim <ji...@al...> - 2012-12-17 17:00:02
|
Hello everybody, I cross-compiled libvncsever for Windows on Linux with MinGW32. I run configure as follows CPPFLAGS=-DWINVER=0x0501 ./configure --build=i586 --host=i586-mingw32msvc --with-sdl-config=../SDL-1.2.15 --with-zlib=../zlib-1.2.7 --with-jpeg=../jpeg-8d --with-gnutls=no --with-gcrypt=no --without-pthread Then I copied the .libs directory to the Windows machine and i tried to compile example.c with Qt Creator. The .pro file is the following: QT += core gui TARGET = test_vnc_1 TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h \ radon.h FORMS += mainwindow.ui win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../develop/ -llibvncserver else:win32:CONFIG(debug, debug|release): LIBS += -L $$PWD/../../../develop/ -llibvncserverd INCLUDEPATH += $$PWD/../../../MinGW/msys/1.0/home/Algo/LibVNCServer-0.9.9 DEPENDPATH += $$PWD/../../../MinGW/msys/1.0/home/Algo/LibVNCServer-0.9.9 win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../develop/libvncserver.lib else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../develop/libvncserverd.lib LIBS += C:\Qt\mingw\lib\libws2_32.a The problem is that i am getting a linker error: C:\Qt\qtcreator-2.4.0\test_vnc_1-build-desktop-Qt_4_6_4__4_6_4__Debug \..\test_vnc_1\main.cpp:263: error: undefined reference to `rfbInitServerWithPthreadsButWithoutZRLE' Any idea why i am getting this error? Thanks in advance. Dimitris |