Building Blender 2.64 with CMake on Mac

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

oriyo
Posts: 11
Joined: Thu Oct 11, 2012 4:17 am

Building Blender 2.64 with CMake on Mac

Postby oriyo » Thu Oct 11, 2012 4:22 am

Hi!
I am trying to build blender on a MacBook Pro with OSX 10.6.
Every time I try to build Blender using CMake it gives me the error:
-----------------------------------------------------

/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c:665: error: ‘BLENDERFILE’ undeclared (first use in this function)
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c:665: error: (Each undeclared identifier is reported only once
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c:665: error: for each function it appears in.)
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c: In function ‘file_extension_type’:
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c:774: error: ‘BLENDERFILE’ undeclared (first use in this function)
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c:777: error: ‘BLENDERFILE_BACKUP’ undeclared (first use in this function)
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c: In function ‘ED_file_extension_icon’:
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c:820: error: ‘BLENDERFILE’ undeclared (first use in this function)
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c:820: error: ‘BLENDERFILE_BACKUP’ undeclared (first use in this function)
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c: In function ‘thumbnails_startjob’:
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c:1303: error: ‘BLENDERFILE’ undeclared (first use in this function)
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c: In function ‘thumbnails_start’:
/Users/oriyo/blender-build/blender/source/blender/editors/space_file/filelist.c:1360: error: ‘BLENDERFILE’ undeclared (first use in this function)
make[2]: *** [source/blender/editors/space_file/CMakeFiles/bf_editor_space_file.dir/filelist.c.o] Error 1
make[1]: *** [source/blender/editors/space_file/CMakeFiles/bf_editor_space_file.dir/all] Error 2
make: *** [all] Error 2
----------------------------------------
How do I compile Blender successfully?

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

Postby stiv » Thu Oct 11, 2012 2:39 pm

When fixing compile problems, the FIRST error is the important one. I am betting that is not it.

dustractor
Posts: 15
Joined: Mon Dec 10, 2007 1:52 am
Location: arkansas

I think i got those errors once...

Postby dustractor » Sat Oct 13, 2012 7:46 pm

Just to make sure we're on the same page here are the steps I take to compile with cmake on osx,

cd Build/blender

svn update blender

svn update lib/...

mkdir 54321

cd 54321

cmake ../blender

ccmake .

make -j5

make install

open ./bin/blender.app



most of the nitty gritty is in the ccmake step where you pick build options.
I wonder what options you are picking here. We have mostly the same laptop so I should be able to help but first just wanted to get more details.

oriyo
Posts: 11
Joined: Thu Oct 11, 2012 4:17 am

Re: I think i got those errors once...

Postby oriyo » Wed Oct 17, 2012 10:06 pm

dustractor wrote:Just to make sure we're on the same page here are the steps I take to compile with cmake on osx,

cd Build/blender

svn update blender

svn update lib/...

mkdir 54321

cd 54321

cmake ../blender

ccmake .

make -j5

make install

open ./bin/blender.app



most of the nitty gritty is in the ccmake step where you pick build options.
I wonder what options you are picking here. We have mostly the same laptop so I should be able to help but first just wanted to get more details.


I think I got stuck in the "cmake ../blender" part. What version of XCode do you have?

dustractor
Posts: 15
Joined: Mon Dec 10, 2007 1:52 am
Location: arkansas

Postby dustractor » Sat Oct 20, 2012 1:30 am

xcode 4.2. 4.4 won't work.

oriyo
Posts: 11
Joined: Thu Oct 11, 2012 4:17 am

Postby oriyo » Sat Oct 20, 2012 5:25 am

dustractor wrote:xcode 4.2. 4.4 won't work.

Then what version do you have?
What else do you need?

By the way, thanks for your recent help because I am just a beginner and I am new to coding.


Return to “Coding Blender”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest