Closed ryzom-pipeline closed 10 years ago
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
The problem seems to come from Qt that exports zlib symbols publicly (he shouldn't do that). Did you compile Qt yourself ? If yes, I suggest you to use "-system-zlib" when building Qt.
Perhaps this bug has been fixed in new Qt versions.
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
You're welcome :) I also had this error some time ago, that's why I prefer to compile Qt myself now.
Original comment by Юрий Шернин (Bitbucket: 59RuUser, ).
Hi sorry new problem VC10 Qt v4.7.4
Object Viewer Qt Plugin - Landscape Editor
builder_zone.obj : error LNK2001: неразрешенный внешний символ ""__declspec(dllimport) public: class stlpx_std::basic_string<char,class stlpx_std::char_traits
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
Thanks for the report, I thought I already fixed all of them :( I'll commit a fix soon :)
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
Fixed: #85 Compilation with STLport
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
It should be fixed with last commit :)
Original comment by Юрий Шернин (Bitbucket: 59RuUser, ).
Now everything works! Thank you for your work!
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
You're welcome :)
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
For Ryzom, I use an old Qt 4.8.2 :)
I didn't keep the exact command line to compile Qt, but I'm pretty sure I used at least : "-openssl -system-zlib -system-libpng -system-libjpeg -I d:/External/vc10/qt-compil/include -L d:/External/vc10/qt-compil/lib64" to be sure Qt is linked to the same libraries as Ryzom Core
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
"-system-x" flags mean Qt won't be using sources bundled with Qt, but it'll use -I for includes and -L for libs to search the right files. The previous problem occurred because NeL and Qt are linked against different versions of the same libs :(
So if you put the right directories for headers and libraries, Qt should be build using the same files as NeL.
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
You don't need anymore to compile Qt with STLport, because I removed all QString <> std::string conversions so even without STLport it should link without problem :)
Original comment by Raster Ron (Bitbucket: rasteron, GitHub: rasteron).
Hi, I tried following your guide above with Qt 4.8.2 source, my setup is x86 build:
C:\Qt\4.8.2>configure -openssl -system-zlib -system-libpng -system-libjpeg -I c: /ryzom/external/include -L c:/ryzom/external/lib
It configures ok, after running nmake I get this error:
LINK : fatal error LNK1181: cannot open input file 'zdll.lib' NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\link.EXE"' : return code '0x49d' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
I'm using the external libraries from external_vc10.7z package.
Any ideas?
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
In fact, you can't specify library names to Qt, so the only fix I have to propose is to copy the existing libs to the name Qt expect to find.
Another fix should be to modify Qt makefiles to link to the correct libs, but it's longer to do :)
Original comment by Raster Ron (Bitbucket: rasteron, GitHub: rasteron).
Ok thanks :-). BTW, are there any latest documentation/link to do this step by step? I have no problem building client/server in windows, just the tools particularly QT.
I see the external library only has zlib.lib. Is this the one to use with QT?
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
Yes, it's zlib.lib and I don't think there are documentation about Qt tools compilation because a few people are compiling them themselves.
Original comment by Raster Ron (Bitbucket: rasteron, GitHub: rasteron).
Yes, I was hoping for that myself to test out a ready made windows toolset binaries. But I notice in the sourceforge repo files the tools are already outdated (2012).
I would like to try out the landscape editor but could not find a working Object Viewer QT, since this is the only version I can find. Could you at least provide a latest binary version download for these tools?
Thanks.
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
You're welcome :) Yes, I really think that's a bug with exported zlib functions :( All other 3rd party libs don't have this bug :)
Original comment by Łukasz K. (Bitbucket: maczuga, GitHub: maczuga).
2 questions to You guys.
Did you use vs2010 exe version or opensource zip of 4.8.2 qt?
C:/Qt/4.8.2/configure -openssl -qt-zlib -qt-libpng -qt-libjpeg -I E:/ryzom/external/include -L E:/ryzom/external/lib -platform win32-msvc2010 - is that ok? -system-x addons were causing compile errors like "zlib.h is missing".
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
In fact, to not have conflicts with other 3rd party libs, I suggest to create a new directory (E:\ryzom\external_qt) with externals QT should use (only OpenSSL and zlib files) and specify these directories to -I and -L parameters.
Original comment by Łukasz K. (Bitbucket: maczuga, GitHub: maczuga).
Open source version worked fine for me for Qt errors. I was still getting linker errors, but I managed to fix it.
Solution for - error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
Go to Project Properties -> Configuration Properties -> Linker -> Advanced Put "main" to the "Entry Point" field.
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
I don't know what changed, but it should link to qtmain(d).lib :(
Original report by Юрий Шернин (Bitbucket: 59RuUser, ).
Hi Please help VC10-11 Qt v4.7.4 Object Viewer Qt Plugin - Georges Editor zlib.lib(gzread.obj) : error LNK2005: _gzread уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzopen уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzdopen уже определен в QtCore4.lib(QtCore4.dll)
Object Viewer Qt Plugin - Landscape Editor zlib.lib(gzread.obj) : error LNK2005: _gzread уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzopen уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzdopen уже определен в QtCore4.lib(QtCore4.dll)
Object Viewer Qt Plugin - Mission Compiler zlib.lib(gzread.obj) : error LNK2005: _gzread уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzopen уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzdopen уже определен в QtCore4.lib(QtCore4.dll)
Object Viewer Qt Plugin - Object Viewer zlib.lib(gzread.obj) : error LNK2005: _gzread уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzopen уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzdopen уже определен в QtCore4.lib(QtCore4.dll)
Object Viewer Qt Plugin - Object Viewer zlib.lib(gzread.obj) : error LNK2005: _gzread уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzopen уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzdopen уже определен в QtCore4.lib(QtCore4.dll)
Object Viewer Qt Plugin - Translation Manager zlib.lib(gzread.obj) : error LNK2005: _gzread уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzopen уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzdopen уже определен в QtCore4.lib(QtCore4.dll)
Object Viewer Qt Plugin - World Editor zlib.lib(gzread.obj) : error LNK2005: _gzread уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzopen уже определен в QtCore4.lib(QtCore4.dll) zlib.lib(gzlib.obj) : error LNK2005: _gzdopen уже определен в QtCore4.lib(QtCore4.dll)