Previous Thread  Next Thread

chat icon 2.5 Building Error, with Scons

Caesar

Posted: Tue Jul 13, 2010 11:17 am
Joined: 13 Jun 2010
Posts: 19
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:
sudo scons prefix=/usr/local/blender/ install

but it gave me this error:
Code:
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
_________________
ARSHIA, THE FIRST PERSIAN ANIME!
Contribute!
Reply with quote


stiv

Posted: Tue Jul 13, 2010 3:52 pm
Joined: 05 Aug 2003
Posts: 3491
Looks like you are missing some opengl headers. Did you install the -dev or -devel package?
Reply with quote


Caesar

Posted: Sun Jul 18, 2010 12:23 pm
Joined: 13 Jun 2010
Posts: 19
Thanks stiv!
That worked!( I installed "messa-devel"!)
But now, I have a new error!
Code:
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
_________________
ARSHIA, THE FIRST PERSIAN ANIME!
Contribute!
Reply with quote


stiv

Posted: Sun Jul 18, 2010 3:37 pm
Joined: 05 Aug 2003
Posts: 3491
Quote:
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.
Reply with quote


Caesar

Posted: Sun Jul 18, 2010 5:37 pm
Joined: 13 Jun 2010
Posts: 19
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:
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:
./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
_________________
ARSHIA, THE FIRST PERSIAN ANIME!
Contribute!
Reply with quote


Caesar

Posted: Mon Jul 19, 2010 5:58 pm
Joined: 13 Jun 2010
Posts: 19
Doesn't anyone know the answer?!
_________________
ARSHIA, THE FIRST PERSIAN ANIME!
Contribute!

Last edited by Caesar on Tue Jul 20, 2010 7:36 am; edited 1 time in total
Reply with quote


Caesar

Posted: Tue Jul 20, 2010 7:28 am
Joined: 13 Jun 2010
Posts: 19
The problem was solved with recompiling Python 3.1, without --enable-big-digits!
Thanks,
Caesar
_________________
ARSHIA, THE FIRST PERSIAN ANIME!
Contribute!
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group