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?
When fixing compile problems, the FIRST error is the important one. I am betting that is not it.
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.
xcode 4.2. 4.4 won't work.