Is there anyone compiled the snowballs2?

Added by wangxuan2730 about 7 years ago

In my project, there isn't a sln file in snowballs2! So I can't compile it, Who can tell me how to do it?


Replies (9)

RE: Is there anyone compiled the snowballs2? - Added by wangxuan2730 about 7 years ago

Yes I know , I have tried this way , but when I cmake it ,It can't get through.

I have read some introductions that you write, For now I still don't know how to do it. I have done this at least 5 times, But always get some error ,and I skip it.

For now , I want to do this successfully , would you give me Complete and correct line?

I download and initial the QT, it always exist some errors, someone said the QT hadn't compiled , but I don't know how to compile the QT?

please help me , my OS is windows XP .

RE: Is there anyone compiled the snowballs2? - Added by molator about 7 years ago

QT is used by snowballs launcher.
The launcher is only used for multiplayer game.

If you're building NeL using Stlport, you need QT Stlport lib.
You've got my QT Stlport here:
http://dev.ryzom.com/projects/ryzom/wiki/WindowsBinaries

If you want to use the official QT lib (no stlport),
you will need to build NeL without Stlport (WITH_STLPORT=OFF).

The following diff file contains what you must change to build snowballs:
http://dev.ryzom.com/attachments/1336/sb4.diff
You can save it and apply it with your hg client, tortoise hg for example.
You can do it by hand too, you've got the names of the files, the lines (that can change).
Red lines are removed, green ones are added.

The second document contains shuawinn's notes:
http://dev.ryzom.com/boards/17/topics/4991

Didn't test it completly, but you don't need it to run a standalone snowballs client.

RE: Is there anyone compiled the snowballs2? - Added by wangxuan2730 about 7 years ago

Thank you! and I can build the snowballs2 sln file , I use the official QT lib ,because I can't download your stlport lib.

I hope to compile it successfully , Now it's compiling , If I use the official QT lib(WITH_STLPORT=OFF) , Did it would affect the other project?

RE: Is there anyone compiled the snowballs2? - Added by molator about 7 years ago

Yeap it will affect the other projects.

RE: Is there anyone compiled the snowballs2? - Added by wangxuan2730 about 7 years ago

When I recompile the ryzom core ,there are two errors that it throws also before:

The first one
85>------ 已启动生成: 项目: NeL, Tools, 3D: Object Viewer Qt, 配置: Release Win32 ------
85>Generating object_viewer_qt_ru.qm
85>'QT_LRELEASE_EXECUTABLE-NOTFOUND' 不是内部或外部命令,也不是可运行的程序或批处理文件(Not an internal or external command, operable program or batch file)。
85>Project : error PRJ0019: 某个工具从以下位置返回了错误代码(A tool from the following locations returned an error code): "Generating object_viewer_qt_ru.qm"

The second one

75>c:\ryzom\code\nel\tools\3d\object_viewer_qt\src\plugins\zone_painter\zone_painter_plugin.h(36) : error C2512: “Plugin::CZoneManager”: 没有合适的默认构造函数可用(No appropriate default constructor available)
75>c:\ryzom\code\build\nel\tools\3d\object_viewer_qt\src\plugins\zone_painter\../../../../../../../../nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.h(36) : error C2512: “Plugin::CZoneManager”: 没有合适的默认构造函数可用(No appropriate default constructor available)
75>NeL, Tools, 3D: Object Viewer Qt Plugin: Zone Painter - 2 个错误,5 个警告

How to solve it?

RE: Is there anyone compiled the snowballs2? - Added by molator about 7 years ago

You're missing a QT translation binary.

If you're building using WITH_STLPORT=ON, you need QT Stlport lib:
https://docs.google.com/leaf?id=0B3LX3q7MsUEGMWFkN2FlYjEtMTAwOC00YmZjLWI5Y2ItNWQ4MDFmODJlMjdl

If you can't download from google document, i can place a copy somewhere else.

If you're building using WITH_STLPORT=OFF, you need QT official lib:
http://qt.nokia.com/downloads/windows-cpp-vs2008

Sfb is working on OVQT zone painter, so you can have issue.

RE: Is there anyone compiled the snowballs2? - Added by sfb about 7 years ago

A minor correction: the Nokia URL provided in Molator's response is actually the download for 4.7.3 and the pre-compiled package with STLport is 4.7.0. I would suggest downloading http://get.qt.nokia.com/qt/source/qt-win-opensource-4.7.0-vs2008.exe and installing it and then replacing the C:\Qt\4.7.0 contents with that of the Qt STLport library from Molator's first link.

Also remove zone painter from the CMakeLists.txt in code/nel/tools/3d/object_viewer_qt/src/plugins/CMakeLists.txt if it is causing you problems. All you have to do is put a '#' at the beginning of the ADD_SUBDIRECTORY line for that sub-directory.

Thanks!
sfb
/s

(1-9/9)