Giter Site home page Giter Site logo

Comments (5)

Jarod42 avatar Jarod42 commented on June 20, 2024

Do you have stratagus/third-party/mdns/mdns.h ?
I think submodules are missing.
git submodule update --init might help.

I just updated the wiki to add --recurse-submodules when cloning to avoid that step.

from stratagus.

johndoe71rus avatar johndoe71rus commented on June 20, 2024

yes, submodules are missing.
now cmake very cool

  cmake CMakeLists.txt -DLUA_INCLUDE_DIR=/usr/include/lua5.1 -DLUA_LIBRARIES=/usr/lib/x86_64-linux-gnu/liblua5.1.so
-- Found OggVorbis: /usr/lib/x86_64-linux-gnu/libogg.so;/usr/lib/x86_64-linux-gnu/libvorbis.so
-- sdl2 found: includes in /usr/include/SDL2, library in /usr/lib/x86_64-linux-gnu/libSDL2.so
-- Could not find StackTrace
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
==================================
Debug mode: No (Enable by param -DCMAKE_BUILD_TYPE=Debug)
Profiling mode: No (Enable by param -DCMAKE_BUILD_TYPE=Profile)
Strip executables: No (Enable by param -DENABLE_STRIP=ON)
Static linking: No (Enable by param -DENABLE_STATIC=ON)
Place game files in: user directory (Place in game directory with -DENABLE_USEGAMEDIR=ON)
Parallel building in MSVC: Yes (Disable by param -DENABLE_MULTIBUILD=OFF)
Platform: Linux
Redirect stdio: Unsupported on this platform
Touchscreen input: No (Enable by param -DENABLE_TOUCHSCREEN=ON)
Eager load: No (Enable by param -DEAGER_LOAD=ON)
Doxygen documentation: No (Enable by param -DENABLE_DOC=ON)
Game development files: No (Enable by param -DENABLE_DEV=ON)
Upx packer: No (Enable by param -DENABLE_UPX=ON)
NSIS Installer: Unsupported on this platform
Bzip2: Found and enabled (Disable by param -DWITH_BZIP2=OFF)
Mng: Found and enabled (Disable by param -DWITH_MNG=OFF)
Ogg/Vorbis: Found and enabled (Disable by param -DWITH_OGGVORBIS=OFF)
StackTrace: Not Found
Theora: Found and enabled (Disable by param -DWITH_THEORA=OFF)
OpenMP: Found and enabled (Disable by param -DWITH_OPENMP=OFF)
==================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/johndoe/build/game/wargus/stratagus

but build has new error

[ 35%] Building CXX object CMakeFiles/stratagus_lib.dir/src/video/linedraw.cpp.o
[ 35%] Building CXX object CMakeFiles/stratagus_lib.dir/src/video/mng.cpp.o
[ 35%] Building CXX object CMakeFiles/stratagus_lib.dir/src/video/movie.cpp.o
[ 36%] Building CXX object CMakeFiles/stratagus_lib.dir/src/video/png.cpp.o
[ 36%] Building CXX object CMakeFiles/stratagus_lib.dir/src/video/sdl.cpp.o
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/SDL2/SDL_syswm.h:69,
                 from /home/johndoe/build/game/wargus/stratagus/src/video/sdl.cpp:58:
/home/johndoe/build/game/wargus/stratagus/src/include/actions.h:50:9: error: expected identifier before numeric constant
   50 |         None,         /// No valid action
      |         ^~~~
/home/johndoe/build/game/wargus/stratagus/src/include/actions.h:50:9: error: expected ‘}’ before numeric constant
In file included from /home/johndoe/build/game/wargus/stratagus/src/include/unit.h:39,
                 from /home/johndoe/build/game/wargus/stratagus/src/video/sdl.cpp:79:
/home/johndoe/build/game/wargus/stratagus/src/include/actions.h:49:30: note: to match this ‘{’
   49 | enum class UnitAction : char {
      |                              ^
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/SDL2/SDL_syswm.h:69,
                 from /home/johndoe/build/game/wargus/stratagus/src/video/sdl.cpp:58:
/home/johndoe/build/game/wargus/stratagus/src/include/actions.h:50:9: error: expected unqualified-id before numeric constant
   50 |         None,         /// No valid action
      |         ^~~~
In file included from /home/johndoe/build/game/wargus/stratagus/src/include/unit.h:39,
                 from /home/johndoe/build/game/wargus/stratagus/src/video/sdl.cpp:79:
/home/johndoe/build/game/wargus/stratagus/src/include/actions.h:78:1: error: expected declaration before ‘}’ token
   78 | };
      | ^
make[2]: *** [CMakeFiles/stratagus_lib.dir/build.make:3042: CMakeFiles/stratagus_lib.dir/src/video/sdl.cpp.o] Ошибка 1
make[1]: *** [CMakeFiles/Makefile2:163: CMakeFiles/stratagus_lib.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

from stratagus.

Jarod42 avatar Jarod42 commented on June 20, 2024

Someone got similar issue previously, evil MACRO None defined in a third library :-(

CI is currently broken, so I cannot rename our enum value None to avoid conflict with that evil MACRO.

from stratagus.

Jarod42 avatar Jarod42 commented on June 20, 2024

Should be fixed with #558

from stratagus.

johndoe71rus avatar johndoe71rus commented on June 20, 2024

yes, fixed. build wargus and stratagus

from stratagus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.