build does not work

Asked by wil on 2011-12-26

when I try to build I get the following error:

Linking CXX executable metaserver
/usr/bin/ld: cannot open output file metaserver: Is a directory
collect2: ld returned 1 exit status

also building in the build directory does not work
cd build && make
does not work I have to to a make in the root

Here is the output of my cbuild -- I am only interested in the Linux build not maemo or whatever else
-- checking for module 'maemo-version'
-- package 'maemo-version' not found
-- Found OggVorbis: /usr/lib/i386-linux-gnu/;/usr/lib/i386-linux-gnu/;/usr/lib/i386-linux-gnu/;/usr/lib/i386-linux-gnu/
-- Could not find OpenGL ES 1.1 libraries
-- Could not find SDL_gles
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Debug mode: No (Enable by param -DCMAKE_BUILD_TYPE=Debug)
Strip executables: No (Enable by param -DENABLE_STRIP=ON)
Static linking: No (Enable by param -DENABLE_STATIC=ON)
Platform: Other/No platform code
Redirect stdio: Unsupported on this platform
Touchscreen input: No (Enable by param -DENABLE_TOUCHSCREEN=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)
MikMod: Found and enabled (Disable by param -DWITH_MIKMOD=OFF)
Mng: Found and enabled (Disable by param -DWITH_MNG=OFF)
Ogg/Vorbis: Found and enabled (Disable by param -DWITH_OGGVORBIS=OFF)
Theora: Found and enabled (Disable by param -DWITH_THEORA=OFF)
X11: Found and enabled (Disable by param -DWITH_X11=OFF)
Renderer: OpenGL
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wil/projects/stratagus

Question information

English Edit question
Stratagus Edit question
Pali Edit question
Last query:
Last reply:
Pali (pali) said : #1

This sounds like buggy cmake or GNU make.

Try to disable building metaserver. Comment in file CMakeLists.txt (add #) lines 756-763:

# add_executable(metaserver ${metaserver_SRCS} ${metaserver_HDRS})
# target_link_libraries(metaserver ${SDL_LIBRARY} ${SQLITE_LIBRARIES})
# set_target_properties(metaserver PROPERTIES LINK_FLAGS "${LINK_FLAGS} -static-libgcc")
# endif()
# endif()

wil (steelwil) said : #2

I also had to comment line 842-844 to get cmake to work.

I now get the following:

[ 0%] Built target png2stratagus
[ 1%] Generating tolua.cpp
Segmentation fault
make[2]: *** [tolua.cpp] Error 139
make[1]: *** [CMakeFiles/stratagus.dir/all] Error 2
make: *** [all] Error 2

Pali (pali) said : #3

External program tolua++ is crashing.

This problem has Ubuntu i386 oneiric builder. All other architecture and version of Ubuntu has no problem.
Anyway problem is in external application tolua++ not in Stratagus.

Can you specify OS, distribution, architecture and version which you are using? We should report bug that tolua++ is crashing but first we could know if this is problem only on i386 oneiric ubuntu or not.

wil (steelwil) said : #4

This is a pity as the following also does not work
$ sudo add-apt-repository ppa:stratagus/ppa #done
$ sudo apt-get update #done
Wargus Installation:
$ sudo apt-get install wargus #E: Unable to locate package wargus

---version info---
wil@williambell:~/projects/stratagus$ uname -a
Linux williambell 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:34:47 UTC 2011 i686 i686 i386 GNU/Linux
wil@williambell:~/projects/stratagus$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric

Pali (pali) said : #5

Wargus is still not builded in PPA...

I see that you have same version of Ubuntu (oneiric, i386) as PPA build machine which crashing... So it sounds like Ubuntu i386 oneiric package libtolua++5.1-dev is buggy (which contains application tolua++).

Pali (pali) said : #6

I generated tolua.cpp file on amd64 machine, added to oneiric dsc package and pushed into oneiric PPA.

Now Stratagus PPA contains Stratagus & Wargus 2.2.6 builds for Ubuntu i386 Oneiric too, so you can install packages from PPA (instead compiling yourself).

wil (steelwil) said : #7

Thank I finally got the game going.

Can you help with this problem?

Provide an answer of your own, or ask wil for more information if necessary.

To post a message you must log in.