I followed the tutorial and applied the patch, but upon executing scons got this error:
Code:
scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/home/donno/Downloads/ngplant-0.9.7/SConstruct", line 19, in <module>
Checking for c++ compiler presence... (cached) yes
Checking for __attribute__((unused)) support presence in g++... yes
Checking for C++ header file stdint.h... yes
Checking for C header file Python.h... no
Python.h not found... _ngp (Python bindings) will not be built
Checking unsigned int type sizeof ...
Checking unsigned int* type sizeof ...
Checking endianess ...
Checking for C function sincosf()... no
Checking for C++ function sincosf()... yes
Checking for C function roundf()... no
Checking for C++ function roundf()... yes
Checking for C++ header file GL/glut.h... no
glut library not found - ngpview application will not be built
Checking GLEW presence and usability ... no
No installed glew library found - using internal GLEW sources...
Checking for xsltproc command... (cached) yes
Checking for lua-config command... (cached) no
No installed Lua libraries found. Using internal Lua sources...
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/donno/Downloads/ngplant-0.9.7/ngpcore/SConscript", line 27, in <module>
scons: done reading SConscript files.
scons: Building targets ...
g++ -o ngpcore/p3dmath.o -c -W -Wall -O3 --fast-math -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DUINTSIZE= -DUINTPTRSIZE= -DHAVE_SINCOSF -DHAVE_ROUNDF -DGLEW_STATIC=1 -I. ngpcore/p3dmath.cpp
g++ -o ngpcore/p3dmathrng.o -c -W -Wall -O3 --fast-math -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DUINTSIZE= -DUINTPTRSIZE= -DHAVE_SINCOSF -DHAVE_ROUNDF -DGLEW_STATIC=1 -I. ngpcore/p3dmathrng.cpp
g++ -o ngpcore/p3dmathspline.o -c -W -Wall -O3 --fast-math -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DUINTSIZE= -DUINTPTRSIZE= -DHAVE_SINCOSF -DHAVE_ROUNDF -DGLEW_STATIC=1 -I. ngpcore/p3dmathspline.cpp
g++ -o ngpcore/p3dplant.o -c -W -Wall -O3 --fast-math -DHAVE_GXX_ARG_ATTR_UNUSED -DHAVE_STDINT_H -DUINTSIZE= -DUINTPTRSIZE= -DHAVE_SINCOSF -DHAVE_ROUNDF -DGLEW_STATIC=1 -I. ngpcore/p3dplant.cpp
In file included from ngpcore/p3dplant.cpp:32:
/usr/include/stdlib.h:33:20: error: stddef.h: No such file or directory
In file included from ngpcore/p3dplant.cpp:32:
/usr/include/stdlib.h:140: error: ‘size_t’ does not name a type
In file included from ngpcore/p3dplant.cpp:32:
/usr/include/stdlib.h: In function ‘double atof(const char*)’:
/usr/include/stdlib.h:281: error: ‘NULL’ was not declared in this scope
/usr/include/stdlib.h: In function ‘int atoi(const char*)’:
/usr/include/stdlib.h:286: error: ‘NULL’ was not declared in this scope
/usr/include/stdlib.h: In function ‘long int atol(const char*)’:
/usr/include/stdlib.h:291: error: ‘NULL’ was not declared in this scope
/usr/include/stdlib.h: In function ‘long long int atoll(const char*)’:
/usr/include/stdlib.h:300: error: ‘NULL’ was not declared in this scope
In file included from ngpcore/p3dplant.cpp:32:
/usr/include/stdlib.h: At global scope:
/usr/include/stdlib.h:337: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:367: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:471: error: ‘size_t’ was not declared in this scope
/usr/include/stdlib.h:471: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:473: error: ‘size_t’ was not declared in this scope
/usr/include/stdlib.h:473: error: ‘size_t’ was not declared in this scope
/usr/include/stdlib.h:473: error: initializer expression list treated as compound expression
/usr/include/stdlib.h:474: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:485: error: ‘size_t’ has not been declared
In file included from /usr/include/stdlib.h:497,
from ngpcore/p3dplant.cpp:32:
/usr/include/alloca.h:33: error: ‘size_t’ was not declared in this scope
/usr/include/alloca.h:33: error: expected ‘,’ or ‘;’ before ‘throw’
In file included from ngpcore/p3dplant.cpp:32:
/usr/include/stdlib.h:502: error: ‘size_t’ was not declared in this scope
/usr/include/stdlib.h:502: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:507: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:507: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:705: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:705: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:710: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:710: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:713: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:713: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:788: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:791: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:795: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:799: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:808: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:812: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:819: error: ‘size_t’ does not name a type
/usr/include/stdlib.h:822: error: ‘size_t’ does not name a type
/usr/include/stdlib.h:885: error: ‘size_t’ has not been declared
In file included from /usr/include/stdlib.h:903,
from ngpcore/p3dplant.cpp:32:
/usr/include/bits/stdlib.h:26: error: ‘size_t’ has not been declared
/usr/include/bits/stdlib.h:30: error: ‘size_t’ has not been declared
/usr/include/bits/stdlib.h: In function ‘char* realpath(const char*, char*)’:
/usr/include/bits/stdlib.h:40: error: ‘size_t’ was not declared in this scope
/usr/include/bits/stdlib.h: At global scope:
/usr/include/bits/stdlib.h:53: error: ‘size_t’ has not been declared
/usr/include/bits/stdlib.h:54: error: ‘size_t’ has not been declared
/usr/include/bits/stdlib.h:55: error: ‘size_t’ has not been declared
/usr/include/bits/stdlib.h:58: error: ‘size_t’ has not been declared
/usr/include/bits/stdlib.h:58: error: ‘size_t’ has not been declared
/usr/include/bits/stdlib.h:65: error: ‘size_t’ has not been declared
/usr/include/bits/stdlib.h: In function ‘int ptsname_r(int, char*, int)’:
/usr/include/bits/stdlib.h:67: error: ‘size_t’ was not declared in this scope
/usr/include/bits/stdlib.h: At global scope:
/usr/include/bits/stdlib.h:78: error: ‘size_t’ has not been declared
/usr/include/bits/stdlib.h: In function ‘int wctomb(char*, wchar_t)’:
/usr/include/bits/stdlib.h:93: error: ‘size_t’ was not declared in this scope
/usr/include/bits/stdlib.h: At global scope:
/usr/include/bits/stdlib.h:99: error: ‘size_t’ does not name a type
/usr/include/bits/stdlib.h:102: error: ‘size_t’ does not name a type
/usr/include/bits/stdlib.h:106: error: ‘size_t’ does not name a type
/usr/include/bits/stdlib.h:113: error: ‘size_t’ does not name a type
/usr/include/bits/stdlib.h:131: error: ‘size_t’ does not name a type
/usr/include/bits/stdlib.h:134: error: ‘size_t’ does not name a type
/usr/include/bits/stdlib.h:138: error: ‘size_t’ does not name a type
/usr/include/bits/stdlib.h:144: error: ‘size_t’ does not name a type
scons: *** [ngpcore/p3dplant.o] Error 1
scons: building terminated because of errors.
zsh: exit 2 scons
Ubuntu 9.10
Bookmarks