Closed ryzom-pipeline closed 7 years ago
Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).
If that with fresh build directory?
For me it compiles fine on ubuntu gcc 5.4.0
Original comment by Guillaume DUPUY (Bitbucket: [Guillaume DUPUY](https://bitbucket.org/Guillaume DUPUY), ).
Yes, make sure to make clean (or even rm -Rf the build directory), CMake doesn't handle very well new source files
Original comment by Thomas Kowaliczek (Bitbucket: LinuxDonald, GitHub: LinuxDonald).
All Clean but still the same error.
cmake -Hcode -Bbuild -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release \
-DWITH_RYZOM_SERVER=OFF -DWITH_RYZOM_CLIENT=ON -DWITH_PCH=OFF \
-DWITH_RYZOM_TOOLS=OFF -DWITH_RYZOM_STEAM=OFF -DWITH_RYZOM_PATCH=OFF \
-DWITH_NEL_TOOLS=OFF -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=OFF \
-DWITH_LUA53=ON -DWITH_LUA51=OFF -DWITH_LUA52=OFF \
-DCMAKE_INSTALL_PREFIX=/usr -DWITH_GCC_FPMATH_BOTH=ON \
-DRYZOM_ETC_PREFIX=/etc/ryzom -DRYZOM_SHARE_PREFIX=/usr/share/ryzom \
-DRYZOM_BIN_PREFIX=/usr/bin -DRYZOM_GAMES_PREFIX=/usr/bin
cmake --build build
gcc (GCC) 6.3.1 20170306
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
Thanks for the report :)
The problem is related to item_group_manager.cpp not including stdpch.h unlike all other .cpp files :(
Btw why did you disable PCH ? They improve compilation time a lot :)
Original comment by Thomas Kowaliczek (Bitbucket: LinuxDonald, GitHub: LinuxDonald).
Okay now i got it compiled.
Aur Package is broken: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ryzom-client
And this Aur Package works: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ryzom-hg
But with it i become this warnings:
Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).
Fixed: missing stdpch.h (fixes #303)
Original comment by Thomas Kowaliczek (Bitbucket: LinuxDonald, GitHub: LinuxDonald).
Server build dont compile:
Warnings:
Compile error:
Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).
Warnings about auto_ptr can't be fixed because cpptest is using std::auto_ptr that is deprecated in C++11 :)
You can ignore the other warnings and for the error, I suspect we should replace the ~0 by std::numeric_limits
Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).
Fixed: compiling server (fixes #303)
Original comment by Guillaume DUPUY (Bitbucket: [Guillaume DUPUY](https://bitbucket.org/Guillaume DUPUY), ).
stdpch.h wasn't included because I forgot it :p
Original comment by Thomas Kowaliczek (Bitbucket: LinuxDonald, GitHub: LinuxDonald).
Thx for fixing the compile problems :)
Original report by Thomas Kowaliczek (Bitbucket: LinuxDonald, GitHub: LinuxDonald).
Cant build compatibility-develop on linux with head.