Topic: builing widelands with kubuntu 9.04
Mars Topic Opener |
Posted at: 2009-04-25, 10:56
Hi, since yesterday I use Kubuntu 9.04 and every time I try to build widelands I get the following: mars@desktop:~/SourceCode$ ./build-widelands.sh build=release install_prefix=. bindir=. datadir=. localedir=locale scons: Reading SConscript files ... /home/mars/SourceCode/utils/scons-local-1.0.1/SCons/Platform/posix.py:38: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module. import popen2 /home/mars/SourceCode/utils/scons-local-1.0.1/SCons/Tool/msvs.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 Searching for ctags: /usr/bin/ctags Searching for pngrewrite: not found. PNG compatification disabled. Searching for optipng: /usr/bin/optipng Searching for astyle: not found. Cannot perform source indenting. Platform: posix Build type: release Build ID: svn3898 Checking for a working C++ compiler ... no Can't even compile the simplest C++ program! Your setup is beyond broken. Repair it, then try again. mars@desktop:~/SourceCode$ But gcc/g++ is installed: mars@desktop:~/SourceCode$ g++ --version g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3 Copyright (C) 2008 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. mars@desktop:~/SourceCode$ which g++ /usr/bin/g++ mars@desktop:~/SourceCode$ echo $PATH /home/mars/bin:/home/mars/bin:/home/mars/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games mars@desktop:~/SourceCode$ With Kubuntu 8.10 it works fine but I don't know what I could do to fix this problem Top Quote |
Nasenbaer |
Posted at: 2009-04-25, 13:17
did you try it with locale scons? so simply running "scons" ? Top Quote |
Ex-Member |
Posted at: 2009-04-25, 13:26
This seems to be a problem with build-widelands.sh (I didn't use it for a long time). Just checked and it returns the same, but with scons it works (and worked for quite some time now). So just use scons, and it should work. At least I think so. Top Quote |
Mars Topic Opener |
Posted at: 2009-04-25, 15:06
Thanks for the help. if I run scons g++ is found, but zlib isn't: Checking for C library z... no Could not find the zlib library! Is it installed? (zlib1g-dev is installed) Edited: 2009-04-25, 15:06
Top Quote |
SirVer |
Posted at: 2009-04-25, 16:21
Please check the scons log file in build/ for reasons. And report Top Quote |
Mars Topic Opener |
Posted at: 2009-04-25, 20:13
ok the file build/config.log (I hope this is the right file) says: [...] build/sconf_temp/conftest_10.c <- | | |#include "zlib.h" | |int |main() { | |return 0; |} | gcc -o build/sconf_temp/conftest_10.o -c -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -Ibuild/native-release -I/usr/include/SDL build/sconf_temp/conftest_10.c In file included from /usr/include/zlibdefs.h:6, from /usr/include/zconf.h:354, from /usr/include/zlib.h:34, from build/sconf_temp/conftest_10.c:3: /usr/include/sys/types.h:147:20: error: stddef.h: No such file or directory [..] But I do not get an error if I compile a file containing the above programm using gcc and I found a file stddef.h in /usr/include/linux Top Quote |
SirVer |
Posted at: 2009-04-25, 23:11
try compiling with
stddef.h is part of the c std library imho. It's a bug of your distribution if it is not available in the default includes of your compiler IMHO. cheers, !SirVer Top Quote |
Mars Topic Opener |
Posted at: 2009-04-30, 19:30
unfortunately this didn't solve the problem because I can compile a file containing #include "zlib.h" int main() { return 0; } using g++. So there is a library zlib and I also can use this library. But it does not work with scons Martin Edited: 2009-04-30, 19:31
Top Quote |