Comments (5)
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.
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.
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.
Should be fixed with #558
from stratagus.
yes, fixed. build wargus and stratagus
from stratagus.
Related Issues (20)
- try to build with /usr/include/lua.h rather than /usr/include/lua-5.1/lua.h (I think) HOT 2
- Documentation typo/incorrect information? HOT 6
- Unexpected behavior when upgrading units to units with lower maximum health HOT 1
- Stratagus failed to load game data. HOT 1
- Broken CI with icon with linuxdeploy HOT 2
- Network Desync. HOT 7
- Red Humans Glitch when loading games, followed by a Crash. (War1gus)
- crash on startup HOT 5
- PLEASE modify the uninstaller
- Warcraft 3 HOT 1
- [macOS] Regression: Black text on main menu in Wargus (Stratagus bug) HOT 5
- Crash to desktop when upgrading/morphing unit that is carrying resources into one that cannot
- [CRASH][wc1] Assertion failed RefsIncrease: !Refs || (Refs && !Destroyed) HOT 1
- Trigger: LoadGame memory issue by adding more triggers
- Pathfinder: Bad handling of failure results HOT 1
- [macOS] Crash when exiting program - Wargus & War1gus HOT 1
- edge scroll (down+right only) broken HOT 3
- Crash on end of mission. Backtrace
- cursor.h:137 error: field ‘Ident’ has incomplete type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stratagus.