Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stratagus: error compile Manjaro #55

Open
legluondunet opened this issue Dec 18, 2022 · 0 comments
Open

Stratagus: error compile Manjaro #55

legluondunet opened this issue Dec 18, 2022 · 0 comments

Comments

@legluondunet
Copy link

Hello,
when I try to compile latest git Stratagus version on Manjaro, I obtain this error and compilation does not complete:

 ➭ cmake ..
CMake Warning at CMakeLists.txt:59 (message):
  Third-party directory not populated, cannot vendor any dependencies.


-- Found OggVorbis: /usr/lib/libogg.so;/usr/lib/libvorbis.so
-- sdl2 found: includes in /usr/include/SDL2, library in /usr/lib/libSDL2.so
-- Could not find StackTrace
==================================
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: /run/media/legluondunet/JEUX/Dos-Windows/Warcraft/Wargus/stratagus/build
{14:50}/run/media/legluondunet/JEUX/Dos-Windows/Warcraft/Wargus/stratagus/build:master ✓ ➭ ccmake ..  


{14:52}/run/media/legluondunet/JEUX/Dos-Windows/Warcraft/Wargus/stratagus/build:master ✓ ➭ make -j4
[  1%] Building CXX object CMakeFiles/genversion.dir/tools/genversion.cpp.o
[  1%] Building CXX object CMakeFiles/png2stratagus.dir/tools/png2stratagus.cpp.o
[  1%] Linking CXX executable genversion
[  1%] Built target genversion
-1 -1 -1 -1 - 3 3 3 0
ver update
[genversion] update needed
[  2%] Generating tolua.cpp
[genversion] no update needed
[  2%] Built target version-generated.h

** tolua warning: Mapping variable to global may degrade performance.

[  2%] Linking CXX executable png2stratagus
[  2%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_attack.cpp.o
[  3%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_board.cpp.o
[  3%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_build.cpp.o
[  3%] Built target png2stratagus
[  4%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_built.cpp.o
[  4%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_defend.cpp.o
[  4%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_die.cpp.o
[  5%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_explore.cpp.o
[  5%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_follow.cpp.o
[  6%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_move.cpp.o
[  6%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_patrol.cpp.o
[  7%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_repair.cpp.o
[  7%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_research.cpp.o
[  8%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_resource.cpp.o
[  8%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_spellcast.cpp.o
[  9%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_still.cpp.o
[  9%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_train.cpp.o
[  9%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_unload.cpp.o
[ 10%] Building CXX object CMakeFiles/stratagus.dir/src/action/action_upgradeto.cpp.o
[ 10%] Building CXX object CMakeFiles/stratagus.dir/src/action/actions.cpp.o
[ 11%] Building CXX object CMakeFiles/stratagus.dir/src/action/command.cpp.o
[ 11%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation.cpp.o
[ 12%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_attack.cpp.o
[ 12%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_die.cpp.o
[ 13%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_exactframe.cpp.o
[ 13%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_frame.cpp.o
[ 13%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_goto.cpp.o
[ 14%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_ifvar.cpp.o
[ 14%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_label.cpp.o
[ 15%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_luacallback.cpp.o
[ 15%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_move.cpp.o
[ 16%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_randomgoto.cpp.o
[ 16%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_randomrotate.cpp.o
[ 17%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_randomsound.cpp.o
[ 17%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_randomwait.cpp.o
[ 18%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_rotate.cpp.o
[ 18%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_setplayervar.cpp.o
[ 18%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_setvar.cpp.o
[ 19%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_sound.cpp.o
[ 19%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_spawnmissile.cpp.o
[ 20%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_spawnunit.cpp.o
[ 20%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_unbreakable.cpp.o
[ 21%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_wait.cpp.o
[ 21%] Building CXX object CMakeFiles/stratagus.dir/src/animation/animation_wiggle.cpp.o
[ 22%] Building CXX object CMakeFiles/stratagus.dir/src/ai/ai_building.cpp.o
[ 22%] Building CXX object CMakeFiles/stratagus.dir/src/ai/ai.cpp.o
[ 22%] Building CXX object CMakeFiles/stratagus.dir/src/ai/ai_force.cpp.o
[ 23%] Building CXX object CMakeFiles/stratagus.dir/src/ai/ai_magic.cpp.o
[ 23%] Building CXX object CMakeFiles/stratagus.dir/src/ai/ai_plan.cpp.o
[ 24%] Building CXX object CMakeFiles/stratagus.dir/src/ai/ai_resource.cpp.o
[ 24%] Building CXX object CMakeFiles/stratagus.dir/src/ai/script_ai.cpp.o
[ 25%] Building CXX object CMakeFiles/stratagus.dir/src/editor/editloop.cpp.o
[ 25%] Building CXX object CMakeFiles/stratagus.dir/src/editor/editor.cpp.o
[ 26%] Building CXX object CMakeFiles/stratagus.dir/src/editor/edmap.cpp.o
[ 26%] Building CXX object CMakeFiles/stratagus.dir/src/editor/script_editor.cpp.o
[ 27%] Building CXX object CMakeFiles/stratagus.dir/src/game/game.cpp.o
[ 27%] Building CXX object CMakeFiles/stratagus.dir/src/game/loadgame.cpp.o
[ 27%] Building CXX object CMakeFiles/stratagus.dir/src/game/replay.cpp.o
[ 28%] Building CXX object CMakeFiles/stratagus.dir/src/game/savegame.cpp.o
[ 28%] Building CXX object CMakeFiles/stratagus.dir/src/game/trigger.cpp.o
[ 29%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/cliprectangle.cpp.o
[ 29%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/color.cpp.o
[ 30%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/defaultfont.cpp.o
[ 30%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/exception.cpp.o
[ 31%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/focushandler.cpp.o
[ 31%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/gfont.cpp.o
[ 31%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/graphics.cpp.o
[ 32%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/gui.cpp.o
[ 32%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/guichan.cpp.o
[ 33%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/image.cpp.o
[ 33%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/imagefont.cpp.o
[ 34%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/key.cpp.o
[ 34%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/keyinput.cpp.o
[ 35%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/mouseinput.cpp.o
[ 35%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/rectangle.cpp.o
[ 36%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/sdl/gsdl.cpp.o
[ 36%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/sdl/sdlgraphics.cpp.o
[ 36%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/sdl/sdlinput.cpp.o
[ 37%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widget.cpp.o
[ 37%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/button.cpp.o
[ 38%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/container.cpp.o
[ 38%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/dropdown.cpp.o
[ 39%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/checkbox.cpp.o
[ 39%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/icon.cpp.o
[ 40%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/label.cpp.o
[ 40%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/listbox.cpp.o
[ 40%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/radiobutton.cpp.o
[ 41%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/scrollarea.cpp.o
[ 41%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/slider.cpp.o
[ 42%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/textbox.cpp.o
[ 42%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/textfield.cpp.o
[ 43%] Building CXX object CMakeFiles/stratagus.dir/src/guichan/widgets/window.cpp.o
[ 43%] Building CXX object CMakeFiles/stratagus.dir/src/map/fov.cpp.o
[ 44%] Building CXX object CMakeFiles/stratagus.dir/src/map/fow.cpp.o
[ 44%] Building CXX object CMakeFiles/stratagus.dir/src/map/fow_utils.cpp.o
[ 45%] Building CXX object CMakeFiles/stratagus.dir/src/map/map.cpp.o
[ 45%] Building CXX object CMakeFiles/stratagus.dir/src/map/map_draw.cpp.o
[ 45%] Building CXX object CMakeFiles/stratagus.dir/src/map/map_fog.cpp.o
[ 46%] Building CXX object CMakeFiles/stratagus.dir/src/map/map_radar.cpp.o
[ 46%] Building CXX object CMakeFiles/stratagus.dir/src/map/map_wall.cpp.o
[ 47%] Building CXX object CMakeFiles/stratagus.dir/src/map/mapfield.cpp.o
[ 47%] Building CXX object CMakeFiles/stratagus.dir/src/map/minimap.cpp.o
[ 48%] Building CXX object CMakeFiles/stratagus.dir/src/map/script_map.cpp.o
[ 48%] Building CXX object CMakeFiles/stratagus.dir/src/map/script_tileset.cpp.o
[ 49%] Building CXX object CMakeFiles/stratagus.dir/src/map/tileset.cpp.o
[ 49%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile.cpp.o
[ 50%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_cliptotarget.cpp.o
[ 50%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_continuous.cpp.o
[ 50%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_cycleonce.cpp.o
[ 51%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_deathcoil.cpp.o
[ 51%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_fire.cpp.o
[ 52%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_flameshield.cpp.o
[ 52%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_hit.cpp.o
[ 53%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_landmine.cpp.o
[ 53%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_none.cpp.o
[ 54%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_parabolic.cpp.o
[ 54%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_pointotpointwithhit.cpp.o
[ 54%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_pointtopoint.cpp.o
[ 55%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_pointtopointbounce.cpp.o
[ 55%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_pointtopointcycleonce.cpp.o
[ 56%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_stay.cpp.o
[ 56%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_straightfly.cpp.o
[ 57%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_tracer.cpp.o
[ 57%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missile_whirlwind.cpp.o
[ 58%] Building CXX object CMakeFiles/stratagus.dir/src/missile/missileconfig.cpp.o
[ 58%] Building CXX object CMakeFiles/stratagus.dir/src/missile/script_missile.cpp.o
[ 59%] Building CXX object CMakeFiles/stratagus.dir/src/network/commands.cpp.o
[ 59%] Building CXX object CMakeFiles/stratagus.dir/src/network/net_lowlevel.cpp.o
[ 59%] Building CXX object CMakeFiles/stratagus.dir/src/network/net_message.cpp.o
[ 60%] Building CXX object CMakeFiles/stratagus.dir/src/network/netconnect.cpp.o
[ 60%] Building CXX object CMakeFiles/stratagus.dir/src/network/network.cpp.o
[ 61%] Building CXX object CMakeFiles/stratagus.dir/src/network/netsockets.cpp.o
[ 61%] Building CXX object CMakeFiles/stratagus.dir/src/network/online_service.cpp.o
/run/media/legluondunet/JEUX/Dos-Windows/Warcraft/Wargus/stratagus/src/network/netconnect.cpp: Dans la fonction lambda:
/run/media/legluondunet/JEUX/Dos-Windows/Warcraft/Wargus/stratagus/src/network/netconnect.cpp:2079:26: erreur: « lua_objlen » n'a pas été déclaré dans cette portée; vouliez-vous employer « lua_rawlen » ?
 2079 |                 auto i = lua_objlen(l, -1) + 1;
      |                          ^~~~~~~~~~
      |                          lua_rawlen
[ 62%] Building CXX object CMakeFiles/stratagus.dir/src/network/mdns.cpp.o
make[2]: *** [CMakeFiles/stratagus.dir/build.make:1894 : CMakeFiles/stratagus.dir/src/network/netconnect.cpp.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[1]: *** [CMakeFiles/Makefile2:142 : CMakeFiles/stratagus.dir/all] Erreur 2
make: *** [Makefile:136 : all] Erreur 2

Could you help me?

@legluondunet legluondunet changed the title Stratagus: error cimpile Manjaro Stratagus: error compile Manjaro Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant