With the latest code from SVN, fresh CMakeCache.txt, MG fails to build on Ubuntu 12.10 (x86_64) for me.
tomreyn@atibox:~/SCM/megaglest-trunk$ svn up
Updating '.':
Revision 3961.
tomreyn@atibox:~/SCM/megaglest-trunk$ svn diff
tomreyn@atibox:~/SCM/megaglest-trunk$ ls -l build/CMakeCache.txt
-rw-rw-r-- 1 tomreyn tomreyn 37651 Dez 27 14:05 build/CMakeCache.txt
tomreyn@atibox:~/SCM/megaglest-trunk$ ./build-mg.sh
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type for this compile will be:
-- Detected GNUC Compiler...
-- *NOTE: Checking for max SSE LEVEL [1]
-- Max SSE desired: [1]
-- Performing Test HAS_SSE3_EXTENSIONS
-- Performing Test HAS_SSE3_EXTENSIONS - Success
-- Performing Test HAS_SSE2_EXTENSIONS
-- Performing Test HAS_SSE2_EXTENSIONS - Success
-- Performing Test HAS_SSE_EXTENSIONS
-- Performing Test HAS_SSE_EXTENSIONS - Success
-- Found SSE extensions, using flags: -msse -mfpmath=sse
-- *NOTE: using SSE for STREFLOP.
-- Performing Test HAS_GCC_BACKTRACE
-- Performing Test HAS_GCC_BACKTRACE - Success
-- Found GCC backtrace lib, will support backtraces
-- Found Subversion: /usr/bin/svn (found version "1.7.5")
-- Found SVN and using SVN version stamping...
-- *NOTE: NOT USING a Custom Data Install Path...
-- **Found game source code.
-- Will try to build MegaGlest shared library
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
-- Force Curl dynamic: OFF
-- CURL RET = 0 libs: [/usr/lib/x86_64-linux-gnu/libcurl.a -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -lidn -llber -lldap -lrt -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -lgnutls -lgcrypt -lgcrypt -lrtmp]
-- USING CURL STATIC LIBS: /usr/lib/x86_64-linux-gnu/libcurl.a -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -lidn -llber -lldap -lrt -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -lgnutls -lgcrypt -lgcrypt -lrtmp
-- curl version=[7.27.0]
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Looking for static Xerces-C lib...
-- Looking for dynamic Xerces-C lib...
-- Found dynamic Xerces-C lib [/usr/lib/libxerces-c.so]
-- Found Xerces-C: /usr/lib/libxerces-c.so
-- : /usr/include
-- Version: 2.8.0
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so
-- LUA_INC: /usr/include/lua5.1
-- LUA_LIB: /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Looking for lua_close in /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Looking for lua_close in /usr/lib/x86_64-linux-gnu/liblua5.1.a - not found
-- Found Lua library: /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Found Lua headers: /usr/include/lua5.1
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.a
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.a (found version "1.2.49")
-- **NOTE: FontConfig support was detected and enabled.
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.4.10")
-- Found FTGL libraries at /usr/lib/libftgl.a and includes at /usr/include
-- **NOTE: FTGL font support was detected and enabled.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'libvlc'
-- found libvlc, version 2.0.4
-- Found LibVLC include-dir path: /usr/include
-- Found LibVLC library path:/usr/lib/libvlc.so
-- Found LibVLCcore library path:/usr/lib/libvlccore.so
-- Found LibVLC version: 2.0.4 (searched for: 1.1.0)
-- **NOTE: LIBVLC found so videos are supported.
-- ** Searching for library: FriBiDi...
Could not find FriBiDi. Disabling FriBiDi support.
-- *** Using EMBEDDED miniupnpc since dev system does not have it... MINIUPNP_FOUND []
-- **No macros required for miniupnpc version
-- *** Using EMBEDDED libircclient since this system does not have it... IRCCLIENT_FOUND []
-- Performing Test HAS_LIBIRCCLIENT_1_6
-- Performing Test HAS_LIBIRCCLIENT_1_6 - Failed
-- Building shared game library as a STATIC library and saving to []
-- EXTERNAL_LIBS = [-Bstatic /usr/lib/x86_64-linux-gnu/libcurl.a -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -lidn -llber -lldap -lrt -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -lgnutls -lgcrypt -lgcrypt -lrtmp;/usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread;/usr/lib/x86_64-linux-gnu/libGLU.so;/usr/lib/x86_64-linux-gnu/libGL.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so;/usr/lib/libxerces-c.so;/usr/lib/x86_64-linux-gnu/libopenal.so;/usr/lib/x86_64-linux-gnu/liblua5.1.a;dl;/usr/lib/x86_64-linux-gnu/libjpeg.a;/usr/lib/x86_64-linux-gnu/libpng.a;/usr/lib/x86_64-linux-gnu/libfontconfig.so;/usr/lib/libftgl.a;/usr/lib/x86_64-linux-gnu/libfreetype.so;/usr/lib/x86_64-linux-gnu/libGLEW.so;/usr/lib/libvlccore.so;/usr/lib/libvlc.so]
-- Will try to build MegaGlest game
-- OGG/Vorbis includes: /usr/include
-- OGG library : /usr/lib/x86_64-linux-gnu/libogg.so
-- Vorbis library : /usr/lib/x86_64-linux-gnu/libvorbis.so
-- Vorbis file library: /usr/lib/x86_64-linux-gnu/libvorbisfile.so
-- LUA_INC: /usr/include/lua5.1
-- LUA_LIB: /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Found Lua library: /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Found Lua headers: /usr/include/lua5.1
-- Force Curl dynamic: OFF
-- CURL RET = 0 libs: [/usr/lib/x86_64-linux-gnu/libcurl.a -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -lidn -llber -lldap -lrt -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -lgnutls -lgcrypt -lgcrypt -lrtmp]
-- USING CURL STATIC LIBS: /usr/lib/x86_64-linux-gnu/libcurl.a -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -lidn -llber -lldap -lrt -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -lgnutls -lgcrypt -lgcrypt -lrtmp
-- Found LibVLC include-dir path: /usr/include
-- Found LibVLC library path:/usr/lib/libvlc.so
-- Found LibVLCcore library path:/usr/lib/libvlccore.so
-- Found LibVLC version: 2.0.4 (searched for: 0.0)
-- **NOTE: LIBVLC found so intro videos are supported.
***-- Found help2man: /usr/bin/help2man about to build manpage in [/home/tomreyn/SCM/megaglest-trunk/mk/linux/megaglest.6]
-- Will try to build MegaGlest map editor
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config --cxxflags
-- Found wxWidgets: TRUE
***-- Found help2man: /usr/bin/help2man about to build manpage in [/home/tomreyn/SCM/megaglest-trunk/mk/linux/megaglest_editor.6]
-- Will try to build MegaGlest model viewer
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config --cxxflags
***-- Found help2man: /usr/bin/help2man about to build manpage in [/home/tomreyn/SCM/megaglest-trunk/mk/linux/megaglest_g3dviewer.6]
-- Will try to build MegaGlest model import/export tools
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.8.0")
-- **Found game data.
-- =====> Found Define: STREFLOP_SSE
-- =====> Found Define: HAS_GCC_BACKTRACE
-- =====> Found Define: CURL_STATICLIB
-- =====> DirDefs: STREFLOP_SSEHAS_GCC_BACKTRACECURL_STATICLIB
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tomreyn/SCM/megaglest-trunk/build
[ 0%] Built target g2xml
[ 0%] [ 1%] Generating mg.tmp
Built target xml2g
[ 26%] Built target streflop
[ 26%] Built target run
[ 26%] [ 26%] [ 27%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/miniftpserver.cpp.o
Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/socket.cpp.o
Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/unix/gl_wrap.cpp.o
/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/posix/socket.cpp: In static member function 'static int Shared::Platform::UPNP_Tools::upnp_init(void*)':
/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/posix/socket.cpp:2482:117: error: too many arguments to function 'void* miniwget_getaddr(const char*, int*, char*, int)'
In file included from /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/posix/socket.cpp:56:0:
/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/include/platform/miniupnpc/miniwget.h:21:16: note: declared here
/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/posix/socket.cpp:2493:47: error: too many arguments to function 'void GetUPNPUrls(UPNPUrls*, IGDdatas*, const char*)'
In file included from /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/posix/socket.cpp:57:0:
/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/include/platform/miniupnpc/miniupnpc.h:112:14: note: declared here
make[2]: *** [source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/socket.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [source/shared_lib/CMakeFiles/libmegaglest.dir/all] Error 2
make: *** [all] Error 2
ERROR: MAKE failed.
tomreyn@atibox:~/SCM/megaglest-trunk$
(Blank lines added to improve readability).
Note also that miniupnpc and libircclient are not detected even though they are installed:
tomreyn@atibox:~/SCM/megaglest-trunk$ dpkg -l libminiupnpc\*dev libircclient\*dev | grep ^ii
ii libircclient-dev 1.3+dfsg1-3 amd64 C library to create IRC clients
ii libminiupnpc-dev 1.6-3ubuntu2 amd64 UPnP IGD client lightweight library development files
tomreyn@atibox:~/SCM/megaglest-trunk$