[Bf-committers] Building the latest trunk/master on Mac

Varanda - CG Labs cglabs at mail.com
Thu May 1 23:37:31 CEST 2014

Thanks Jens,

It is not clear yet to me: shouldn’t turning off WITH_OPENMP in ccmake makes the build happy ?
How can I override gcc in CMakeLists.txt to point to clang-imp? There is no visible ease line likes setting CC or CXX = ABC

The closest definition regarding to the compiler there is:

			# Xcode 4 defaults to the Apple LLVM Compiler.
			# Override the default compiler selection because Blender only compiles with gcc up to xcode 4.2
			set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvmgcc42")
			message(STATUS "Setting compiler to: " ${CMAKE_XCODE_ATTRIBUTE_GCC_VERSION})

I am not familiar with cmake though. Some more digested information would be very welcome.

Thanks a lot,

On May 1, 2014, at 4:28 PM, Jens Verwiebe <info at jensverwiebe.de> wrote:

> Use the clang-omp  i provided in libs. ( instructions in README ).
> Apple clang does not support openmp, but someone made it ON by default, which is not sufficient.
> Jens
> Am 01.05.2014 um 22:05 schrieb Varanda - CG Labs <cglabs at mail.com>:
>> Hello,
>> I am having problems to build Blender for MacOSX (Mavericks) using the very latest trunk/Master in my MacBook.
>> A couple months ago the entire process worked perfectly for my Mac desktop also with Mavericks.
>> The build complain about a missing lib: I guess libgompo, the logged error line is:
>> $ make
>> Scanning dependencies of target datatoc
>> [  0%] Building C object source/blender/datatoc/CMakeFiles/datatoc.dir/datatoc.c.o
>> clang: warning: argument unused during compilation: '-fopenmp'
>> Linking C executable ../../../bin/datatoc
>> ld: library not found for -lgomp
>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>> Disabling OpenMP on ccmake (WITH_OPENMP off) does not do any good.
>> Thanks in advance,
>> Varanda
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers

More information about the Bf-committers mailing list