Page 1 of 1

2.5 Building Error, with Scons

Posted: Tue Jul 13, 2010 12:17 pm
by Caesar
Hi,
I just downloaded the file "blender-2.50a1.tar.gz" and extracted it to my home!
I used this command to build it:

Code: Select all

sudo scons prefix=/usr/local/blender/ install
but it gave me this error:

Code: Select all

In file included from source/blender/editors/include/BIF_gl.h:34,
                 from source/blender/windowmanager/intern/wm_gesture.c:53:
extern/glew/include/GL/glew.h:1138:20: error: GL/glu.h: No such file or directory
scons: *** [/home/omid/build/linux2/source/blender/windowmanager/intern/wm_gesture.o] Error 1
scons: building terminated because of errors.
I have installed Scons with Pyrthon 2.6!
I have no idea what the problem is!
Thanks,
Caesar

Posted: Tue Jul 13, 2010 4:52 pm
by stiv
Looks like you are missing some opengl headers. Did you install the -dev or -devel package?

Posted: Sun Jul 18, 2010 1:23 pm
by Caesar
Thanks stiv!
That worked!( I installed "messa-devel"!)
But now, I have a new error!

Code: Select all

source/blender/makesrna/intern/rna_scene.c:46:33: error: libavcodec/avcodec.h: No such file or directory
source/blender/makesrna/intern/rna_scene.c:47:34: error: libavformat/avformat.h: No such file or directory
source/blender/makesrna/intern/rna_scene.c: In function ‘rna_def_scene_render_data’:                      
source/blender/makesrna/intern/rna_scene.c:1759: error: ‘CODEC_ID_NONE’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1759: error: (Each undeclared identifier is reported only once      
source/blender/makesrna/intern/rna_scene.c:1759: error: for each function it appears in.)                      
source/blender/makesrna/intern/rna_scene.c:1760: error: ‘CODEC_ID_MPEG1VIDEO’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1761: error: ‘CODEC_ID_MPEG2VIDEO’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1762: error: ‘CODEC_ID_MPEG4’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1763: error: ‘CODEC_ID_HUFFYUV’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1764: error: ‘CODEC_ID_DVVIDEO’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1765: error: ‘CODEC_ID_H264’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1766: error: ‘CODEC_ID_XVID’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1767: error: ‘CODEC_ID_THEORA’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1768: error: ‘CODEC_ID_FLV1’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1769: error: ‘CODEC_ID_FFV1’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1773: error: initializer element is not constant
source/blender/makesrna/intern/rna_scene.c:1773: error: (near initialization for ‘ffmpeg_audio_codec_items[0].value’)
source/blender/makesrna/intern/rna_scene.c:1774: error: ‘CODEC_ID_MP2’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1774: error: initializer element is not constant
source/blender/makesrna/intern/rna_scene.c:1774: error: (near initialization for ‘ffmpeg_audio_codec_items[1].value’)
source/blender/makesrna/intern/rna_scene.c:1775: error: ‘CODEC_ID_MP3’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1775: error: initializer element is not constant
source/blender/makesrna/intern/rna_scene.c:1775: error: (near initialization for ‘ffmpeg_audio_codec_items[2].value’)
source/blender/makesrna/intern/rna_scene.c:1776: error: ‘CODEC_ID_AC3’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1776: error: initializer element is not constant
source/blender/makesrna/intern/rna_scene.c:1776: error: (near initialization for ‘ffmpeg_audio_codec_items[3].value’)
source/blender/makesrna/intern/rna_scene.c:1777: error: ‘CODEC_ID_AAC’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1777: error: initializer element is not constant
source/blender/makesrna/intern/rna_scene.c:1777: error: (near initialization for ‘ffmpeg_audio_codec_items[4].value’)
source/blender/makesrna/intern/rna_scene.c:1778: error: ‘CODEC_ID_VORBIS’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1778: error: initializer element is not constant
source/blender/makesrna/intern/rna_scene.c:1778: error: (near initialization for ‘ffmpeg_audio_codec_items[5].value’)
source/blender/makesrna/intern/rna_scene.c:1779: error: ‘CODEC_ID_FLAC’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1779: error: initializer element is not constant
source/blender/makesrna/intern/rna_scene.c:1779: error: (near initialization for ‘ffmpeg_audio_codec_items[6].value’)
source/blender/makesrna/intern/rna_scene.c:1780: error: ‘CODEC_ID_PCM_S16LE’ undeclared (first use in this function)
source/blender/makesrna/intern/rna_scene.c:1780: error: initializer element is not constant
source/blender/makesrna/intern/rna_scene.c:1780: error: (near initialization for ‘ffmpeg_audio_codec_items[7].value’)
scons: *** [/home/omid/build/linux2/source/blender/makesrna/intern/rna_scene.o] Error 1
scons: building terminated because of errors.
I have FFMPEG installed!
Thanks,
Caesar

Posted: Sun Jul 18, 2010 4:37 pm
by stiv
libavcodec/avcodec.h: No such file or directory
Compiler errors in a nutshell:

1) the FIRST error is the important one, not the last.

2) no such file or directory means header files not installed or the include path ( -I ) is wrong. usual fix: install the -dev package

3) unresolved symbol means a library is not installed or the path is wrong ( -L ), or the library is not in the line command ( -l ). usual fix: install the library

Linux packages come in two parts. For any package foo, you need foo and foo-dev or foo-devel, depending on your particular flavor of Linux. The foo part contains the libraries you need to run programs. The foo-dev part contains the headers you need to compile.

If you install packages from source, you get both headers and libs.

And finally, for your specific problem, you are likely missing the libffmpeg-devel package.

Posted: Sun Jul 18, 2010 6:37 pm
by Caesar
Thanks dear stiv.
I solved that problem ( and some other problems which occurred after that) with installing dependencies from source!
But I have a new error, which is different, and I don't know what to do with.
It occurred while compiling "BL_KetsjiEmbedStart.cpp":

Code: Select all

In file included from /usr/local/python/include/python3.1/Python.h:73,
                 from source/gameengine/Expressions/KX_Python.h:44,
                 from source/gameengine/Expressions/PyObjectPlus.h:37,
                 from source/gameengine/Ketsji/KX_Scene.h:48,
                 from source/gameengine/Ketsji/KX_KetsjiEngine.h:37,
                 from source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp:54:
/usr/local/python/include/python3.1/longintrepr.h:46:2: error: #error "30-bit long digits requested, but the necessary types are not available on this platform"
In file included from /usr/local/python/include/python3.1/Python.h:73,
                 from source/gameengine/Expressions/KX_Python.h:44,
                 from source/gameengine/Expressions/PyObjectPlus.h:37,
                 from source/gameengine/Ketsji/KX_Scene.h:48,
                 from source/gameengine/Ketsji/KX_KetsjiEngine.h:37,
                 from source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp:54:
/usr/local/python/include/python3.1/longintrepr.h:48: error: ‘PY_UINT32_T’ does not name a type
/usr/local/python/include/python3.1/longintrepr.h:49: error: ‘PY_INT32_T’ does not name a type
/usr/local/python/include/python3.1/longintrepr.h:50: error: ‘PY_UINT64_T’ does not name a type
/usr/local/python/include/python3.1/longintrepr.h:51: error: ‘PY_INT64_T’ does not name a type
/usr/local/python/include/python3.1/longintrepr.h:86: error: ‘digit’ does not name a type
scons: *** [/home/omid/build/linux2/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.o] Error 1
scons: building terminated because of errors.
My Python 3.1 is installed from source with this config:

Code: Select all

./configure --enable-profiling --enable-ipv6 --enable-big-digits --with-pydebug --with-signal-module --with-dec-threads --with-wctype-functions --with-fpectl --with-computed-gotos
Thanks,
Caesar

Posted: Mon Jul 19, 2010 6:58 pm
by Caesar
Doesn't anyone know the answer?!

Posted: Tue Jul 20, 2010 8:28 am
by Caesar
The problem was solved with recompiling Python 3.1, without --enable-big-digits!
Thanks,
Caesar