error in my first compile in ubuntu / scons ( solved )

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
moh taia
Posts: 0
Joined: Mon Apr 10, 2006 12:57 am

error in my first compile in ubuntu / scons ( solved )

Post by moh taia » Mon Feb 05, 2007 4:14 pm

hi

i am new to linux - i have Ubuntu edgy
i descovered that i can,t run any SSE2 build ( don,t know why )

so i am trying to learn how to build my own
i used this page from the Wiki
http://mediawiki.blender.org/index.php/ ... derCompile

but i got this error ( this is the last lines if any one want the whole text plz tell me )

../build/linux2/makesdna /home/mohtaia/cvs-blender/build/linux2/source/blender/makesdna/intern/dna.c
Running makesdna at debug level 0
Program version: $Id: makesdna.c,v 1.24 2006/11/26 12:23:21 ton Exp $
Writing file ... done.
Compiling ==> 'dna.c'
Linking library ==> 'libbf_dna.a'
Compiling ==> 'messaging.c'
Compiling ==> 'GEN_HashedPtr.cpp'
Compiling ==> 'GEN_Matrix4x4.cpp'
Compiling ==> 'SYS_SingletonSystem.cpp'
Compiling ==> 'SYS_System.cpp'
Linking library ==> 'libbf_kernel.a'
Compiling ==> 'attributes.cpp'
Compiling ==> 'elbeem.cpp'
Compiling ==> 'isosurface.cpp'
Compiling ==> 'ntl_blenderdumper.cpp'
Compiling ==> 'ntl_bsptree.cpp'
Compiling ==> 'ntl_geometrymodel.cpp'
Compiling ==> 'ntl_geometryobject.cpp'
Compiling ==> 'ntl_lighting.cpp'
Compiling ==> 'ntl_ray.cpp'
Compiling ==> 'ntl_world.cpp'
Compiling ==> 'parametrizer.cpp'
Compiling ==> 'particletracer.cpp'
Compiling ==> 'simulation_object.cpp'
Compiling ==> 'solver_adap.cpp'
Compiling ==> 'solver_init.cpp'
Compiling ==> 'solver_interface.cpp'
Compiling ==> 'solver_main.cpp'
Compiling ==> 'solver_util.cpp'
Compiling ==> 'utilities.cpp'
Linking library ==> 'libbf_elbeem.a'
Compiling ==> 'api.cpp'
Compiling ==> 'export_File.cpp'
Compiling ==> 'export_Plugin.cpp'
Compiling ==> 'yafexternal.cpp'
Compiling ==> 'yafray_Render.cpp'
Linking library ==> 'libbf_yafray.a'
Compiling ==> 'IK_QJacobian.cpp'
Compiling ==> 'IK_QJacobianSolver.cpp'
Compiling ==> 'IK_QSegment.cpp'
Compiling ==> 'IK_QTask.cpp'
Compiling ==> 'IK_Solver.cpp'
Compiling ==> 'MT_ExpMap.cpp'
Linking library ==> 'libblender_IK.a'
Compiling ==> 'MEM_CacheLimiterC-Api.cpp'
Compiling ==> 'MEM_RefCountedC-Api.cpp'
Linking library ==> 'libbf_memutil.a'
Compiling ==> 'mallocn.c'
Linking library ==> 'libbf_guardedalloc.a'
Compiling ==> 'CTR_List.cpp'
Linking library ==> 'libblender_CTR.a'
Compiling ==> 'MT_Assert.cpp'
Compiling ==> 'MT_CmMatrix4x4.cpp'
Compiling ==> 'MT_Matrix3x3.cpp'
Compiling ==> 'MT_Matrix4x4.cpp'
Compiling ==> 'MT_Plane3.cpp'
Compiling ==> 'MT_Point3.cpp'
Compiling ==> 'MT_Quaternion.cpp'
Compiling ==> 'MT_Transform.cpp'
Compiling ==> 'MT_Vector2.cpp'
Compiling ==> 'MT_Vector3.cpp'
Compiling ==> 'MT_Vector4.cpp'
Compiling ==> 'MT_random.cpp'
Linking library ==> 'libbf_moto.a'
Compiling ==> 'BMF_Api.cpp'
Compiling ==> 'BMF_BitmapFont.cpp'
Compiling ==> 'BMF_font_helv10.cpp'
Compiling ==> 'BMF_font_helv12.cpp'
Compiling ==> 'BMF_font_helvb10.cpp'
Compiling ==> 'BMF_font_helvb12.cpp'
Compiling ==> 'BMF_font_helvb14.cpp'
Compiling ==> 'BMF_font_helvb8.cpp'
Compiling ==> 'BMF_font_scr12.cpp'
Compiling ==> 'BMF_font_scr14.cpp'
Compiling ==> 'BMF_font_scr15.cpp'
Linking library ==> 'libbf_bmfont.a'
Compiling ==> 'FTF_Api.cpp'
Compiling ==> 'FTF_TTFont.cpp'
Linking library ==> 'libbf_ftfont.a'
Compiling ==> 'FTBitmapGlyph.cpp'
Compiling ==> 'FTBufferGlyph.cpp'
Compiling ==> 'FTCharmap.cpp'
Compiling ==> 'FTContour.cpp'
Compiling ==> 'FTExtrdGlyph.cpp'
Compiling ==> 'FTFace.cpp'
Compiling ==> 'FTFont.cpp'
Compiling ==> 'FTGLBitmapFont.cpp'
Compiling ==> 'FTGLBufferFont.cpp'
Compiling ==> 'FTGLExtrdFont.cpp'
Compiling ==> 'FTGLOutlineFont.cpp'
Compiling ==> 'FTGLPixmapFont.cpp'
Compiling ==> 'FTGLPolygonFont.cpp'
Compiling ==> 'FTGLTextureFont.cpp'
Compiling ==> 'FTGlyph.cpp'
Compiling ==> 'FTGlyphContainer.cpp'
Compiling ==> 'FTLibrary.cpp'
Compiling ==> 'FTOutlineGlyph.cpp'
Compiling ==> 'FTPixmapGlyph.cpp'
Compiling ==> 'FTPoint.cpp'
Compiling ==> 'FTPolyGlyph.cpp'
Compiling ==> 'FTSize.cpp'
Compiling ==> 'FTTextureGlyph.cpp'
Compiling ==> 'FTVectoriser.cpp'
Linking library ==> 'libextern_ftgl.a'
Linking program ==> 'blender'
Compiling ==> 'stubs.c'
Linking library ==> 'libblenkernel_blc.a'
Linking program ==> 'blenderplayer'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
scons: *** [/home/mohtaia/cvs-blender/build/linux2/bin/blenderplayer] Error 1
scons: building terminated because of errors.
mohtaia@mohtaia:~/cvs-blender/blender$



so any ideas ?

sorry for my english
Thanks
Last edited by moh taia on Fri Feb 09, 2007 8:14 pm, edited 1 time in total.

moh taia
Posts: 0
Joined: Mon Apr 10, 2006 12:57 am

Post by moh taia » Wed Feb 07, 2007 3:47 pm

ok
i replaced edgy with dapper drake
but i have error too

/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crt1.o: In function `_start':../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
scons: *** [/home/mohtaia/cvs-blender/build/linux2/bin/blenderplayer] Error 1
scons: building terminated because of errors.
mohtaia@mt-desktop:~/cvs-blender/blender$


whats the problem ???
any solution pleeeeeeeeeease

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Wed Feb 07, 2007 4:33 pm

If you are trying to build blender, just type
scons

By default the config file builds blender (without game engine).

moh taia
Posts: 0
Joined: Mon Apr 10, 2006 12:57 am

Post by moh taia » Fri Feb 09, 2007 12:40 pm

Thanks stiv
that's working :)

dreamkatana
Posts: 0
Joined: Sat Feb 07, 2004 1:27 am

Post by dreamkatana » Wed Oct 03, 2007 4:01 pm

What if I need to compile the blenderplayer? What to do?


Cya :shock:

dreamkatana
Posts: 0
Joined: Sat Feb 07, 2004 1:27 am

Post by dreamkatana » Thu Oct 11, 2007 3:49 pm

SOmeone? :?

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

Post by kidb » Thu Oct 11, 2007 3:59 pm

dreamkatana wrote:What if I need to compile the blenderplayer? What to do?


Cya :shock:
scons --help | grep PLAYER
scons WITH_BF_PLAYER=yes

dreamkatana
Posts: 0
Joined: Sat Feb 07, 2004 1:27 am

Post by dreamkatana » Thu Oct 11, 2007 7:50 pm

kidb wrote:
dreamkatana wrote:What if I need to compile the blenderplayer? What to do?


Cya :shock:
scons --help | grep PLAYER
scons WITH_BF_PLAYER=yes
Really? Oh god. U did not saw the hole post...my dear friend :twisted:

Someone know about this error:

Code: Select all

/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main' 
I searched and this is related with some dev libs, but I reainstalled them all and still the same. I have no clue now :roll:

CYA.

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

Post by kidb » Thu Oct 11, 2007 8:57 pm

Did you try to compile with:

scons WITH_BF_GAMEENGINE=yes WITH_BF_PLAYER=yes

dreamkatana
Posts: 0
Joined: Sat Feb 07, 2004 1:27 am

Post by dreamkatana » Fri Oct 12, 2007 5:57 am

kidb wrote:Did you try to compile with:

scons WITH_BF_GAMEENGINE=yes WITH_BF_PLAYER=yes
Hey that worked :shock:

I did not know that WITH_BF_GAMEENGINE was now disabled by default.

Thanks.

Post Reply