SOLVED:Compiling Blender on Debian - Dependancies and Errors

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Techmeology
Posts: 0
Joined: Tue Feb 07, 2006 7:17 pm

SOLVED:Compiling Blender on Debian - Dependancies and Errors

Post by Techmeology »

Hello.

I am trying to compile Blender from CVS source on Debian 3.1.

I have two problems (which are very likely to be related to each other):

1) I am not sure what the exact development packages needed for compiling Blender are for Debian - I could only find some of them in the repository. Others seemed to be included in the lib module.

2) When I try to compile, I get the following:

Code: Select all

    install /home/nicholas/blenderdev/blender/obj/linux-glibc2.3.2-i386/extern//solid_complex/debug/libsolid_complex.a
    GEN_MinMax.h already installed
    GEN_random.h already installed
    MT_BBox.h already installed
    MT_Interval.h already installed
    MT_Matrix3x3.h already installed
    MT_Point3.h already installed
    MT_Quaternion.h already installed
    MT_Scalar.h already installed
    MT_Transform.h already installed
    MT_Vector3.h already installed
    SOLID_broad.h already installed
    SOLID.h already installed
    SOLID_types.h already installed
    Interval.h already installed
    Matrix3x3.h already installed
    Quaternion.h already installed
    Transform.h already installed
    Tuple3.h already installed
    Tuple4.h already installed
    Vector3.h already installed
====> make all in extern/bFTGL/src
g++ -c -Wall -Wno-reorder -DUSE_SUMO_SOLID -pipe -fPIC -DNDEBUG -O2 -DMOZ_NOT_NET -I../include -I/usr/include -I/usr/include/freetype2  FTBitmapGlyph.cpp -o /home/nicholas/blenderdev/blender/obj/linux-glibc2.3.2-i386/extern/ftgl/FTBitmapGlyph.o
In file included from FTBitmapGlyph.cpp:3:
../include/FTBitmapGlyph.h:5:22: ft2build.h: No such file or directory
../include/FTBitmapGlyph.h:6:10: #include expects "FILENAME" or <FILENAME>
../include/FTBitmapGlyph.h:7:10: #include expects "FILENAME" or <FILENAME>
In file included from ../include/FTBitmapGlyph.h:10,
                 from FTBitmapGlyph.cpp:3:
../include/FTGlyph.h:4:22: ft2build.h: No such file or directory
../include/FTGlyph.h:5:10: #include expects "FILENAME" or <FILENAME>
../include/FTGlyph.h:6:10: #include expects "FILENAME" or <FILENAME>
In file included from ../include/FTGlyph.h:8,
                 from ../include/FTBitmapGlyph.h:10,
                 from FTBitmapGlyph.cpp:3:
../include/FTBBox.h:4:22: ft2build.h: No such file or directory
../include/FTBBox.h:5:10: #include expects "FILENAME" or <FILENAME>
../include/FTBBox.h:7:10: #include expects "FILENAME" or <FILENAME>
In file included from ../include/FTBBox.h:10,
                 from ../include/FTGlyph.h:8,
                 from ../include/FTBitmapGlyph.h:10,
                 from FTBitmapGlyph.cpp:3:
../include/FTPoint.h:4:22: ft2build.h: No such file or directory
../include/FTPoint.h:5:10: #include expects "FILENAME" or <FILENAME>
../include/FTPoint.h:6:10: #include expects "FILENAME" or <FILENAME>
In file included from ../include/FTBBox.h:10,
                 from ../include/FTGlyph.h:8,
                 from ../include/FTBitmapGlyph.h:10,
                 from FTBitmapGlyph.cpp:3:
../include/FTPoint.h:39: error: parse error before `&' token
../include/FTPoint.h:41: error: missing ';' before right brace
../include/FTPoint.h: In constructor `FTPoint::FTPoint()':
../include/FTPoint.h:20: error: class `FTPoint' does not have any field named `
   x'
../include/FTPoint.h:20: error: class `FTPoint' does not have any field named `
   y'
../include/FTPoint.h:20: error: class `FTPoint' does not have any field named `
   z'
../include/FTPoint.h: In constructor `FTPoint::FTPoint(double, double, double)
   ':
../include/FTPoint.h:31: error: class `FTPoint' does not have any field named `
   x'
../include/FTPoint.h:31: error: class `FTPoint' does not have any field named `
   y'
../include/FTPoint.h:31: error: class `FTPoint' does not have any field named `
   z'
../include/FTPoint.h: At global scope:
../include/FTPoint.h:49: error: ISO C++ forbids defining types within return
   type
../include/FTPoint.h:49: error: syntax error before `&' token
../include/FTPoint.h:52: error: syntax error before `+=' token
../include/FTPoint.h:53: error: syntax error before `+=' token
../include/FTPoint.h:65: error: friend declaration not in class definition
../include/FTPoint.h:74: error: friend declaration not in class definition
../include/FTPoint.h:81: error: parse error before `private'
In file included from ../include/FTGlyph.h:8,
                 from ../include/FTBitmapGlyph.h:10,
                 from FTBitmapGlyph.cpp:3:
../include/FTBBox.h:49: error: parse error before `glyph'
../include/FTBBox.h:58: error: `glyph' was not declared in this scope
../include/FTBBox.h:58: error: `bbox' was not declared in this scope
../include/FTBBox.h:58: error: invalid data member initialization
../include/FTBBox.h:58: error: (use `=' to initialize static data members)
../include/FTBBox.h:58: error: ISO C++ forbids declaration of `
   FT_Outline_Get_CBox' with no type
../include/FTBBox.h:60: error: `bbox' was not declared in this scope
../include/FTBBox.h:60: error: ISO C++ forbids declaration of `lowerX' with no
   type
../include/FTBBox.h:60: error: ISO C++ forbids initialization of member `lowerX
   '
../include/FTBBox.h:60: error: making `lowerX' static
../include/FTBBox.h:60: error: ISO C++ forbids in-class initialization of
   non-const static member `lowerX'
../include/FTBBox.h:61: error: `bbox' was not declared in this scope
../include/FTBBox.h:61: error: ISO C++ forbids declaration of `lowerY' with no
   type
../include/FTBBox.h:61: error: ISO C++ forbids initialization of member `lowerY
   '
../include/FTBBox.h:61: error: making `lowerY' static
../include/FTBBox.h:61: error: ISO C++ forbids in-class initialization of
   non-const static member `lowerY'
../include/FTBBox.h:62: error: ISO C++ forbids declaration of `lowerZ' with no
   type
../include/FTBBox.h:62: error: ISO C++ forbids initialization of member `lowerZ
   '
../include/FTBBox.h:62: error: making `lowerZ' static
../include/FTBBox.h:62: error: ISO C++ forbids in-class initialization of
   non-const static member `lowerZ'
../include/FTBBox.h:62: warning: converting to `int' from `float'
../include/FTBBox.h:63: error: `bbox' was not declared in this scope
../include/FTBBox.h:63: error: ISO C++ forbids declaration of `upperX' with no
   type
../include/FTBBox.h:63: error: ISO C++ forbids initialization of member `upperX
   '
../include/FTBBox.h:63: error: making `upperX' static
../include/FTBBox.h:63: error: ISO C++ forbids in-class initialization of
   non-const static member `upperX'
../include/FTBBox.h:64: error: `bbox' was not declared in this scope
../include/FTBBox.h:64: error: ISO C++ forbids declaration of `upperY' with no
   type
../include/FTBBox.h:64: error: ISO C++ forbids initialization of member `upperY
   '
../include/FTBBox.h:64: error: making `upperY' static
../include/FTBBox.h:64: error: ISO C++ forbids in-class initialization of
   non-const static member `upperY'
../include/FTBBox.h:65: error: ISO C++ forbids declaration of `upperZ' with no
   type
../include/FTBBox.h:65: error: ISO C++ forbids initialization of member `upperZ
   '
../include/FTBBox.h:65: error: making `upperZ' static
../include/FTBBox.h:65: error: ISO C++ forbids in-class initialization of
   non-const static member `upperZ'
../include/FTBBox.h:65: warning: converting to `int' from `float'
../include/FTBBox.h: In constructor `FTBBox::FTBBox()':
../include/FTBBox.h:23: error: field `int FTBBox::lowerX' is static; the only
   point of initialization is its definition
../include/FTBBox.h:24: error: field `int FTBBox::lowerY' is static; the only
   point of initialization is its definition
../include/FTBBox.h:25: error: field `int FTBBox::lowerZ' is static; the only
   point of initialization is its definition
../include/FTBBox.h:26: error: field `int FTBBox::upperX' is static; the only
   point of initialization is its definition
../include/FTBBox.h:27: error: field `int FTBBox::upperY' is static; the only
   point of initialization is its definition
../include/FTBBox.h:28: error: field `int FTBBox::upperZ' is static; the only
   point of initialization is its definition
../include/FTBBox.h: In constructor `FTBBox::FTBBox(float, float, float, float,
   float, float)':
../include/FTBBox.h:35: error: field `int FTBBox::lowerX' is static; the only
   point of initialization is its definition
../include/FTBBox.h:36: error: field `int FTBBox::lowerY' is static; the only
   point of initialization is its definition
../include/FTBBox.h:37: error: field `int FTBBox::lowerZ' is static; the only
   point of initialization is its definition
../include/FTBBox.h:38: error: field `int FTBBox::upperX' is static; the only
   point of initialization is its definition
../include/FTBBox.h:39: error: field `int FTBBox::upperY' is static; the only
   point of initialization is its definition
../include/FTBBox.h:40: error: field `int FTBBox::upperZ' is static; the only
   point of initialization is its definition
../include/FTBBox.h: At global scope:
../include/FTBBox.h:73: error: ISO C++ forbids defining types within return
   type
../include/FTBBox.h:73: error: destructors must be member functions
../include/FTBBox.h:73: error: return type specification for destructor invalid
../include/FTBBox.h:81: error: syntax error before `&' token
../include/FTBBox.h:84: error: syntax error before `+=' token
../include/FTBBox.h:85: error: syntax error before `+=' token
../include/FTBBox.h:86: error: syntax error before `+=' token
../include/FTBBox.h:87: error: syntax error before `+=' token
../include/FTBBox.h:88: error: syntax error before `+=' token
../include/FTBBox.h:92: error: syntax error before `&' token
../include/FTBBox.h:95: error: ISO C++ forbids declaration of `lowerY' with no
   type
../include/FTBBox.h:95: error: `bbox' was not declared in this scope
../include/FTBBox.h:95: error: `bbox' was not declared in this scope
../include/FTBBox.h:96: error: ISO C++ forbids declaration of `lowerZ' with no
   type
../include/FTBBox.h:96: error: `bbox' was not declared in this scope
../include/FTBBox.h:96: error: `bbox' was not declared in this scope
../include/FTBBox.h:97: error: ISO C++ forbids declaration of `upperX' with no
   type
../include/FTBBox.h:97: error: `bbox' was not declared in this scope
../include/FTBBox.h:97: error: `bbox' was not declared in this scope
../include/FTBBox.h:98: error: ISO C++ forbids declaration of `upperY' with no
   type
../include/FTBBox.h:98: error: `bbox' was not declared in this scope
../include/FTBBox.h:98: error: `bbox' was not declared in this scope
../include/FTBBox.h:99: error: ISO C++ forbids declaration of `upperZ' with no
   type
../include/FTBBox.h:99: error: `bbox' was not declared in this scope
../include/FTBBox.h:99: error: `bbox' was not declared in this scope
../include/FTBBox.h:101: error: parse error before `return'
../include/FTBBox.h: In function `void SetDepth(float)':
../include/FTBBox.h:106: warning: converting to `int' from `float'
../include/FTBBox.h: At global scope:
../include/FTBBox.h:114: error: conflicting types for `float lowerY'
../include/FTBBox.h:95: error: previous declaration as `int lowerY'
../include/FTBBox.h:114: error: conflicting types for `float lowerZ'
../include/FTBBox.h:96: error: previous declaration as `int lowerZ'
../include/FTBBox.h:114: error: conflicting types for `float upperX'
../include/FTBBox.h:97: error: previous declaration as `int upperX'
../include/FTBBox.h:114: error: conflicting types for `float upperY'
../include/FTBBox.h:98: error: previous declaration as `int upperY'
../include/FTBBox.h:114: error: conflicting types for `float upperZ'
../include/FTBBox.h:99: error: previous declaration as `int upperZ'
../include/FTBBox.h:115: error: parse error before `protected'
In file included from ../include/FTBitmapGlyph.h:10,
                 from FTBitmapGlyph.cpp:3:
../include/FTGlyph.h:31: error: parse error before `glyph'
../include/FTGlyph.h:58: error: ISO C++ forbids declaration of `FTBBox' with no
   type
../include/FTGlyph.h:58: error: parse error before `&' token
../include/FTGlyph.h: In member function `float FTGlyph::Advance() const':
../include/FTGlyph.h:51: error: `advance' undeclared (first use this function)
../include/FTGlyph.h:51: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
../include/FTGlyph.h: At global scope:
../include/FTGlyph.h:65: error: ISO C++ forbids defining types within return
   type
../include/FTGlyph.h:65: error: syntax error before `(' token
../include/FTGlyph.h:76: error: 'FTBBox' is used as a type, but is not defined
   as a type.
../include/FTGlyph.h:81: error: 'FT_Error' is used as a type, but is not
   defined as a type.
../include/FTGlyph.h:83: error: parse error before `private'
In file included from FTBitmapGlyph.cpp:3:
../include/FTBitmapGlyph.h:31: error: parse error before `glyph'
../include/FTBitmapGlyph.h:24: error: base `FTGlyph' with only non-default
   constructor in class without a constructor
FTBitmapGlyph.cpp:5: error: parse error before `glyph'
FTBitmapGlyph.cpp:17: error: parse error before `=' token
FTBitmapGlyph.cpp:19: error: `unsigned int FTBitmapGlyph::srcWidth' is not a
   static member of `class FTBitmapGlyph'
FTBitmapGlyph.cpp:19: error: `bitmap' was not declared in this scope
FTBitmapGlyph.cpp:20: error: `unsigned int FTBitmapGlyph::srcHeight' is not a
   static member of `class FTBitmapGlyph'
FTBitmapGlyph.cpp:20: error: `bitmap' was not declared in this scope
FTBitmapGlyph.cpp:21: error: `unsigned int FTBitmapGlyph::srcPitch' is not a
   static member of `class FTBitmapGlyph'
FTBitmapGlyph.cpp:21: error: `bitmap' was not declared in this scope
FTBitmapGlyph.cpp:23: error: ISO C++ forbids declaration of `destWidth' with no
   type
FTBitmapGlyph.cpp:23: error: `int FTBitmapGlyph::destWidth' is not a static
   member of `class FTBitmapGlyph'
FTBitmapGlyph.cpp:23: error: `srcWidth' was not declared in this scope
FTBitmapGlyph.cpp:24: error: ISO C++ forbids declaration of `destHeight' with
   no type
FTBitmapGlyph.cpp:24: error: `int FTBitmapGlyph::destHeight' is not a static
   member of `class FTBitmapGlyph'
FTBitmapGlyph.cpp:24: error: `srcHeight' was not declared in this scope
FTBitmapGlyph.cpp:25: error: ISO C++ forbids declaration of `destPitch' with no
   type
FTBitmapGlyph.cpp:25: error: `int FTBitmapGlyph::destPitch' is not a static
   member of `class FTBitmapGlyph'
FTBitmapGlyph.cpp:25: error: `srcPitch' was not declared in this scope
FTBitmapGlyph.cpp:27: error: parse error before `if'
FTBitmapGlyph.cpp:30: error: `unsigned char*FTBitmapGlyph::dest' is not a
   static member of `class FTBitmapGlyph'
FTBitmapGlyph.cpp:30: error: invalid use of member `FTBitmapGlyph::data'
FTBitmapGlyph.cpp:30: error: invalid use of member `FTBitmapGlyph::destHeight'
FTBitmapGlyph.cpp:30: error: invalid use of member `FTBitmapGlyph::destPitch'
FTBitmapGlyph.cpp:32: error: `unsigned char*FTBitmapGlyph::src' is not a static
   member of `class FTBitmapGlyph'
FTBitmapGlyph.cpp:32: error: `bitmap' was not declared in this scope
FTBitmapGlyph.cpp:34: error: parse error before `for'
FTBitmapGlyph.cpp:34: error: `srcHeight' was not declared in this scope
FTBitmapGlyph.cpp:34: error: parse error before `;' token
FTBitmapGlyph.cpp:37: error: syntax error before `-=' token
FTBitmapGlyph.cpp:38: error: syntax error before `+=' token
FTBitmapGlyph.cpp:42: error: syntax error before `.' token
FTBitmapGlyph.cpp:43: error: syntax error before `.' token
FTBitmapGlyph.cpp: In member function `virtual float
   FTBitmapGlyph::Render(const FTPoint&)':
FTBitmapGlyph.cpp:57: error: 'const class FTPoint' has no member named 'x'
FTBitmapGlyph.cpp:57: error: 'class FTPoint' has no member named 'x'
FTBitmapGlyph.cpp:57: error: 'const class FTPoint' has no member named 'y'
FTBitmapGlyph.cpp:57: error: 'class FTPoint' has no member named 'y'
FTBitmapGlyph.cpp:62: error: 'const class FTPoint' has no member named 'x'
FTBitmapGlyph.cpp:62: error: 'class FTPoint' has no member named 'x'
FTBitmapGlyph.cpp:62: error: 'const class FTPoint' has no member named 'y'
FTBitmapGlyph.cpp:62: error: 'class FTPoint' has no member named 'y'
make[2]: *** [/home/nicholas/blenderdev/blender/obj/linux-glibc2.3.2-i386/extern/ftgl/FTBitmapGlyph.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
I used GCC 3.4.3 (I had to do alias gcc="gcc -V 3.4").
Last edited by Techmeology on Tue Aug 22, 2006 7:28 pm, edited 1 time in total.
Thank you in advance!

z3r0_d
Posts: 289
Joined: Wed Oct 16, 2002 2:38 am
Contact:

Post by z3r0_d »

what freetype packages do you have installed?

kidb
Posts: 0
Joined: Wed Jul 23, 2003 4:31 pm
Contact:

Re: Compiling Blender on Debian - Dependancies and Errors

Post by kidb »

Techmeology wrote:Hello.

I am trying to compile Blender from CVS source on Debian 3.1.

I have two problems (which are very likely to be related to each other):

1) I am not sure what the exact development packages needed for compiling Blender are for Debian - I could only find some of them in the repository. Others seemed to be included in the lib module.
apt-get build-dep blender should resolv most dependencies.
For the missing
....
alut.h No such file or directory
et al.
....

apt.file search alut.h
apt-get install ......

this should be true for openal, freelaut, openexr.

This is the last time i will post this.

Techmeology
Posts: 0
Joined: Tue Feb 07, 2006 7:17 pm

Post by Techmeology »

Thank you for the replies.
kidb wrote:This is the last time i will post this.
- Sorry - I probably should have looked at your previous post more closely.

Anyway. I have managed to compile past that point, but have become stuck later (actually, I did a reinstall of Debian, but I don't think that changed anything here).

I get these errors:

Code: Select all

====> make all in source/gameengine/GamePlayer/netscape/src
gcc -c -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -pipe -fPIC  -DNDEBUG -O2 -DMOZ_NOT_NET-I../Physics/common -I../Physics/Dummy -c -DXP_UNIX  -Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wredundant-decls  -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wsynth  -I/home/nicholas/blenderdev/blender/../lib/linux-glibc2.3.2-i386/string/include     -I/home/nicholas/blenderdev/blender/../lib/linux-glibc2.3.2-i386/nspr/include -I/home/nicholas/blenderdev/blender/../lib/linux-glibc2.3.2-i386/nspr/include/nspr -I/usr/include/mozilla/nspr -I../netscape_api -I../common -I../test -Ixpcom -Iketsji -I. -I../../../GameLogic -I../../../Rasterizer -I../../../../sumo/Fuzzics/include -I/home/nicholas/blenderdev/blender/../lib/linux-glibc2.3.2-i386/moto/include -I../../common -I../../common/unix -I../../../../kernel/gen_system -I../../../../kernel/gen_messaging -I../../../../blender/blenlib -I../../../../blender/blenkernel -I../../../../blender/blenloader -I../../../../blender/makesdna -I/usr/X11R6/include Blender3DPlugin_native_implementation.c -o /home/nicholas/blenderdev/blender/obj/linux-glibc2.3.2-i386/gameengine/GamePlayer/netscape/src/Blender3DPlugin_native_implementation.o
cc1: warning: "-Wreorder" is valid for C++ but not for C/ObjC
cc1: warning: "-Wctor-dtor-privacy" is valid for C++ but not for C/ObjC
cc1: warning: "-Wnon-virtual-dtor" is valid for C++ but not for C/ObjC
cc1: warning: "-Woverloaded-virtual" is valid for C++ but not for C/ObjC
cc1: warning: "-Wsign-promo" is valid for C++ but not for C/ObjC
cc1: warning: "-Wsynth" is valid for C++ but not for C/ObjC
In file included from /usr/X11R6/include/GL/gl.h:2472,
                 from /usr/X11R6/include/GL/glx.h:41,
                 from blender_plugin_types.h:48,
                 from Blender3DPlugin_native_implementation.c:46:
/usr/X11R6/include/GL/glext.h:2878: warning: declaration of `index' shadows a global declaration
Then I get:

Code: Select all

<built-in>:0: warning: shadowed declaration is here
/usr/X11R6/include/GL/glext.h:3017: warning: declaration of `index' shadows a global declaration
through to

Code: Select all

<built-in>:0: warning: shadowed declaration is here
/usr/X11R6/include/GL/glext.h:4636: warning: declaration of `index' shadows a global declaration
And the rest...

Code: Select all

<built-in>:0: warning: shadowed declaration is here
In file included from Blender3DPlugin_native_implementation.c:46:
blender_plugin_types.h:53:51: prlock.h: No such file or directory
In file included from Blender3DPlugin_native_implementation.c:46:
blender_plugin_types.h:136: error: syntax error before "PRLock"
blender_plugin_types.h:136: warning: no semicolon at end of struct or union
blender_plugin_types.h:141: warning: type defaults to `int' in declaration of `window_ready_lock'
blender_plugin_types.h:141: warning: data definition has no type or storage class
blender_plugin_types.h:227: error: syntax error before '}' token
blender_plugin_types.h:227: warning: type defaults to `int' in declaration of `BlenderPluginInstance'
blender_plugin_types.h:227: warning: data definition has no type or storage class
Blender3DPlugin_native_implementation.c: In function `native_Blender3DPlugin_blenderURL':
Blender3DPlugin_native_implementation.c:65: error: `inst' undeclared (first usein this function)
Blender3DPlugin_native_implementation.c:65: error: (Each undeclared identifier is reported only once
Blender3DPlugin_native_implementation.c:65: error: for each function it appearsin.)
Blender3DPlugin_native_implementation.c:70: error: syntax error before ')' token
Blender3DPlugin_native_implementation.c:64: warning: unused variable `npp'
Blender3DPlugin_native_implementation.c: In function `native_Blender3DPlugin_SendMessage':
Blender3DPlugin_native_implementation.c:94: error: `inst' undeclared (first usein this function)
Blender3DPlugin_native_implementation.c:99: error: syntax error before ')' token
Blender3DPlugin_native_implementation.c:93: warning: unused variable `npp'
Blender3DPlugin_native_implementation.c: In function `B3D_log_entry':
Blender3DPlugin_native_implementation.c:129: warning: unused parameter `msg'
make[5]: *** [/home/nicholas/blenderdev/blender/obj/linux-glibc2.3.2-i386/gameengine/GamePlayer/netscape/src/Blender3DPlugin_native_implementation.o] Error 1
make[4]: *** [all] Error 1
make[3]: *** [all] Error 1
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
nicholas@NLdeb1:~/blenderdev/blender$
Thank you again for your help.
Thank you in advance!

jesterKing
Site Admin
Posts: 207
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Post by jesterKing »

The first three code snippets can be safely ignored, as they are "only" warnings. In its current state the Blender source base will generate them by the legions when compiling.

The last one tells you that you're trying to build the web plugin, which currently is not officially supported. If you want to you need AFAIK some mozilla framework for that, but I'm not sure. Anyway, best is now to turn of the compilation of the web plugin.

/Nathan

kidb
Posts: 0
Joined: Wed Jul 23, 2003 4:31 pm
Contact:

Post by kidb »

Techmeology wrote: blender_plugin_types.h:53:51: prlock.h: No such file or directory
apt-get install apt-file
apt-file update
apt-file search prlock.h

libnspr-dev: usr/include/mozilla/nspr/prlock.h
libnspr4-dev: usr/include/nspr/prlock.h
libxul-dev: usr/lib/xulrunner/sdk/include/prlock.h
mozilla-thunderbird-dev: usr/include/mozilla-thunderbird/nspr/prlock.h
nvu-dev: usr/include/nvu/nspr/prlock.h
thunderbird-dev: usr/include/thunderbird/nspr/prlock.h

apt-get install libnspr4-dev

Techmeology
Posts: 0
Joined: Tue Feb 07, 2006 7:17 pm

Post by Techmeology »

Thank you Kidb. I have now compiled Blender (I think), however, I am getting stuck at the link stage - make gives a long list of undefined references:

Code: Select all

b/libavformat.a /home/nicholas/blenderdev/blender/../lib/linux-glibc2.3.2-i386/ffmpeg/lib/libavutil.a /home/nicholas/blenderdev/blender/../lib/linux-glibc2.3.2-i386/ffmpeg/lib/libavcodec.a -lGL -lGLU -export-dynamic
/usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x411d): In function `posix_tmpnam':
: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x406d): In function `posix_tempnam':
: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x54): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_new_data'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x68): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_wantedSpec'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0xe5): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_actualSpec'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x23b): In function `MP3_Callback':
: undefined reference to `SMPEG_status'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x249): In function `MP3_Callback':
: undefined reference to `SMPEG_play'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x274): In function `MP3_Callback':
: undefined reference to `SMPEG_playAudio'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x28e): In function `MP3_Callback':
: undefined reference to `SMPEG_stop'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x299): In function `MP3_Callback':
: undefined reference to `SMPEG_rewind'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x2e4): In function `MP3_Callback':
: undefined reference to `SMPEG_enableaudio'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x2f5): In function `MP3_Callback':
: undefined reference to `SMPEG_enablevideo'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x3f0): In function `mp3bid_insert':
: undefined reference to `SMPEG_stop'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x3ff): In function `mp3bid_insert':
: undefined reference to `SMPEG_delete'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x460): In function `mp3bid_remove':
: undefined reference to `SMPEG_stop'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x46f): In function `mp3bid_remove':
: undefined reference to `SMPEG_delete'
/usr/lib/libopenal.a(al_ext_vorbis.o)(.text+0xc5): In function `alutLoadVorbis_LOKI':
: undefined reference to `ov_open_callbacks'
/usr/lib/libopenal.a(al_ext_vorbis.o)(.text+0xd7): In function `alutLoadVorbis_LOKI':
: undefined reference to `ov_info'
/usr/lib/libopenal.a(al_ext_vorbis.o)(.text+0x2e2): In function `Vorbis_Callback':
: undefined reference to `ov_read'
/usr/lib/libopenal.a(al_ext_vorbis.o)(.text+0x64e): In function `VorbHandle_delete':
: undefined reference to `ov_clear'
/usr/lib/libopenal.a(alsa.o)(.text+0x29): In function `openal_load_alsa_library':
: undefined reference to `snd_strerror'
/usr/lib/libopenal.a(alsa.o)(.text+0x35): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_info_sizeof'
/usr/lib/libopenal.a(alsa.o)(.text+0x41): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_malloc'
/usr/lib/libopenal.a(alsa.o)(.text+0x4d): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_free'
/usr/lib/libopenal.a(alsa.o)(.text+0x59): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_close'
/usr/lib/libopenal.a(alsa.o)(.text+0x65): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params'
/usr/lib/libopenal.a(alsa.o)(.text+0x71): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_any'
/usr/lib/libopenal.a(alsa.o)(.text+0x7d): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_get_buffer_size'
/usr/lib/libopenal.a(alsa.o)(.text+0x89): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_get_channels'
/usr/lib/libopenal.a(alsa.o)(.text+0x95): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_get_period_size'
/usr/lib/libopenal.a(alsa.o)(.text+0xa1): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_access'
/usr/lib/libopenal.a(alsa.o)(.text+0xad): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_buffer_size'
/usr/lib/libopenal.a(alsa.o)(.text+0xb9): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_channels'
/usr/lib/libopenal.a(alsa.o)(.text+0xc5): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_format'
/usr/lib/libopenal.a(alsa.o)(.text+0xd1): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_period_size'
/usr/lib/libopenal.a(alsa.o)(.text+0xdd): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_periods'
/usr/lib/libopenal.a(alsa.o)(.text+0xe9): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_rate'
/usr/lib/libopenal.a(alsa.o)(.text+0xf5): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_rate_near'
/usr/lib/libopenal.a(alsa.o)(.text+0x101): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_sizeof'
/usr/lib/libopenal.a(alsa.o)(.text+0x10d): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_open'
/usr/lib/libopenal.a(alsa.o)(.text+0x119): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_nonblock'
/usr/lib/libopenal.a(alsa.o)(.text+0x125): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_prepare'
/usr/lib/libopenal.a(alsa.o)(.text+0x131): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_readi'
/usr/lib/libopenal.a(alsa.o)(.text+0x13d): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_resume'
/usr/lib/libopenal.a(alsa.o)(.text+0x149): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_writei'
/usr/lib/libopenal.a(arts.o)(.text+0x29): In function `openal_load_arts_library':
: undefined reference to `arts_init'
/usr/lib/libopenal.a(arts.o)(.text+0x35): In function `openal_load_arts_library':
: undefined reference to `arts_free'
/usr/lib/libopenal.a(arts.o)(.text+0x41): In function `openal_load_arts_library':
: undefined reference to `arts_suspend'
/usr/lib/libopenal.a(arts.o)(.text+0x4d): In function `openal_load_arts_library':
: undefined reference to `arts_suspended'
/usr/lib/libopenal.a(arts.o)(.text+0x59): In function `openal_load_arts_library':
: undefined reference to `arts_error_text'
/usr/lib/libopenal.a(arts.o)(.text+0x65): In function `openal_load_arts_library':
: undefined reference to `arts_play_stream'
/usr/lib/libopenal.a(arts.o)(.text+0x71): In function `openal_load_arts_library':
: undefined reference to `arts_record_stream'
/usr/lib/libopenal.a(arts.o)(.text+0x7d): In function `openal_load_arts_library':
: undefined reference to `arts_close_stream'
/usr/lib/libopenal.a(arts.o)(.text+0x89): In function `openal_load_arts_library':
: undefined reference to `arts_read'
/usr/lib/libopenal.a(arts.o)(.text+0x95): In function `openal_load_arts_library':
: undefined reference to `arts_write'
/usr/lib/libopenal.a(arts.o)(.text+0xa1): In function `openal_load_arts_library':
: undefined reference to `arts_stream_set'
/usr/lib/libopenal.a(arts.o)(.text+0xad): In function `openal_load_arts_library':
: undefined reference to `arts_stream_get'
/usr/lib/libopenal.a(esd.o)(.text+0x25): In function `openal_load_esd_library':
: undefined reference to `esd_open_sound'
/usr/lib/libopenal.a(esd.o)(.text+0x31): In function `openal_load_esd_library':
: undefined reference to `esd_standby'
/usr/lib/libopenal.a(esd.o)(.text+0x3d): In function `openal_load_esd_library':
: undefined reference to `esd_resume'
/usr/lib/libopenal.a(esd.o)(.text+0x49): In function `openal_load_esd_library':
: undefined reference to `esd_play_stream'
/usr/lib/libopenal.a(esd.o)(.text+0x55): In function `openal_load_esd_library':
: undefined reference to `esd_close'
collect2: ld returned 1 exit status
make[1]: *** [/home/nicholas/blenderdev/blender/obj/linux-glibc2.3.2-i386/bin/blender] Error 1
make: *** [all] Error 1
nicholas@NLdeb1:~/blenderdev/blender$
Thank you for your help and patience, Techmeology.
Thank you in advance!

kidb
Posts: 0
Joined: Wed Jul 23, 2003 4:31 pm
Contact:

Post by kidb »

try it without openal.
scons WITH_BF_OPENAL=false or no

Techmeology
Posts: 0
Joined: Tue Feb 07, 2006 7:17 pm

Post by Techmeology »

YAY! I have succeeded! Thank you Kidb. Actually, I used "export NAN_NO_OPENAL=true" on the command line, the same in uder_def.mk (the latter alone did not seem to work), and commented out all but what was between the

Code: Select all

else
endif
of

Code: Select all

ifneq ($(NAN_NO_KETSJI), true)
---
(within that section) of the nan_compile.mk file.

Thank you again, Techmeology.
Thank you in advance!

Post Reply