----- Original Message ----- > --[ UxBoD ]-- schrieb: > > ----- Original Message ----- > > >> mingw32-make[1]: Entering directory `C:/x2goclient-3.01' > >> g++ -enable-stdcall-fixup -Wl,-enable-auto-import > >> -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl > >> -Wl,-subsystem,windows -o release\x2goplugin.exe > >> object_script.x2goplugin.Release -L"c:\Qt-Static\qt\lib" -lmingw32 > >> -lqtmain release\x2goclient_res.o -lQtSvg -lQtNetwork -lQtGui > >> -lgdi32 > >> -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore > >> -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 > >> -L\cygwin\openssl\lib > >> c:\Qt-Static\qt\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0x204): > >> undefined reference to `qMain(int, char**)' > >> collect2: ld returned 1 exit status > >> mingw32-make[1]: *** [release\x2goplugin.exe] Error 1 > >> mingw32-make[1]: Leaving directory `C:/x2goclient-3.01' > >> mingw32-make: *** [release] Error 2 > >> > >> Qt compiled fine and reported no errors so am at a bit of a loss at > >> the moment. It would be so hopefully to us is you were able to > >> provide > >> help in getting a duplicate environment as to what you use built. > > > > Right then, laptop is about to been thrown cleanly straight out of > > the window as I have spent to much of my companies, and my own time, > > attempting to compile the x2goclient. Well to qualify that it has > > been more of the case of compiling Qt and libssh under Windows. Qt > > and trying to make it static was a complete failure, and libssh > > under Cygwin falls into a heap aswell. > > > > I am now going down the Linux route which in some ways appears to be > > just as difficult especially when attempting to build the Mingw > > toolchain due to my OS (64 bit Ubuntu 10.10). I believe it needs to > > be building as mingw-i686 and therefore 32 bit which is giving all > > sorts of library issues. > > > > Am really reaching out to the devs to try and understand how they > > have built their own environments; as we will be attempting to also > > use the latest version of Qt and get X2goclient to work with it. > > > > Please please help as my hair is short enough and cannot take > > anymore being pulled out ;) > > Hi, > > To build newest version of x2goclient under windows you need: > > 1. Qt SDK. I didn't tested newest version. 2009.04 and 2010.04 work. > Use > mingw version. You can also use msvc version, but you should build > libssh using msvc and I have not experience how to do this. If you > want > link Qt statically you must reconfigure and rebuild Qt. Don't forget > include ssl support by configuration of Qt. > > 2. Get master branch of libssh: > http://git.libssh.org/projects/libssh/libssh.git/snapshot/master.zip > To compile it your need cmake, libssl and zlib. You need master > branch, > release libssh 0.4.6 will not work with x2goclient. If you don't want > to > build libssh by yourself, you can download working version here: > http://x2go.obviously-nice.de/deb/libssh/libssh-x2go.zip > unpack this file and install libssh in mingw directory which shipped > with Qt SDK. > > include/libssh/* -> mingw/include/libssh/ > lib/libssh.dll.a -> mingw/lib/ > > you must provide libssh.dll and zlib1.dll with your build of > x2goclient > > 3. Configure x2goclient to build client, not plugin. Edit file > x2goclientconfig.pri: > > CONFIG += client > > #uncomment this line to build x2goclient plugin > #CONFIG += plugin > > plugin { > CONFIG -= client > } > > run qmake to create Makefile and mingw32-make to build x2goclient > > That's all > > Regards, > -- > Oleksandr Shneyder > Dipl. Informatik > X2go Core Developer Team > > email: [email protected] > web: www.obviously-nice.de > > --> X2go - everywh...@home
Hi Alex, Thank you for the detailed steps. May I ask if you rebuilt Qt, statically, under Windows or has all your work been performed under Linux ? I have tried both of those Qt versions and ran configure.exe -static -openssl -I<path_to_openssl_include> -L<path_to_openssl_libs> and it failed to compile when running mingw32-make sub-src. I must be doing something crazily wrong in the way I am rebuilding Qt :( -- Thanks, Phil _______________________________________________ X2go-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/x2go-dev
