- summary: waf on Linux. needs tricks to compile --> compiling (waf) on Linux. needs tricks to compile
I got hg head compiled on Linux, but it needed some trivial changes (seems it is tried to be disabled).
diff -r ce82998c864f src/common/defines.h
--- a/src/common/defines.h Fri May 27 10:44:10 2011 +0300
+++ b/src/common/defines.h Sun May 20 17:08:59 2012 +0300
@@ -2,7 +2,7 @@
#define __DEFINES_H_
#include "linux.h"
-#include "macosx.h"
+//#include "macosx.h"
#include "windows.h"
//#include "vld.h"
diff -r ce82998c864f src/common/error.cpp
--- a/src/common/error.cpp Fri May 27 10:44:10 2011 +0300
+++ b/src/common/error.cpp Sun May 20 17:08:59 2012 +0300
@@ -67,5 +67,5 @@
#endif
va_end(ap);
- exit(1);
+ //exit(1);
}
diff -r ce82998c864f src/common/linux.h
--- a/src/common/linux.h Fri May 27 10:44:10 2011 +0300
+++ b/src/common/linux.h Sun May 20 17:08:59 2012 +0300
@@ -3,7 +3,7 @@
#ifdef __LINUX__
-#error "NOO"
+//#error "NOO"
#define putch putchar
#define EXPORT
diff -r ce82998c864f wscript
--- a/wscript Fri May 27 10:44:10 2011 +0300
+++ b/wscript Sun May 20 17:08:59 2012 +0300
@@ -36,7 +36,9 @@
check_library(conf, 'SDL_net', uselib='SDL_net', path=conf.env['LIBPATH_SDL'])
# Define that we want to use the linux header
- # conf.env['CXXDEFINES'] = '__LINUX__'
+ conf.env['CXXDEFINES'] = '__LINUX__'
+ conf.env['CXXFLAGS'].append('-fpermissive')
# Remove -Wall flag added by waf because it causes too much warnings
conf.env['CXXFLAGS'].remove('-Wall')
Tested (=compiled)
*on 64bit Ubuntu12.04 (I think '-fpermissive' is needed because of gcc-4.6).
*32bit ARM Maemo5
(Playing the game is another story)