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

Campbell Barton ideasman42 at gmail.com
Thu May 1 23:54:55 CEST 2014


@Varanda, setting WITH_OPENMP should disable OpenMP no matter what
configuration you build on.

>From searching CMakeLists.txt files, I can't see anywhere that would
enable this option, once disabled.

On Fri, May 2, 2014 at 7:37 AM, Varanda - CG Labs <cglabs at mail.com> wrote:
> 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:
>
>                 if(${XCODE_VERSION} VERSION_EQUAL 4 OR ${XCODE_VERSION} VERSION_GREATER 4 AND ${XCODE_VERSION} VERSION_LESS 4.3)
>                         # 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})
>                 endif()
>
> I am not familiar with cmake though. Some more digested information would be very welcome.
>
> Thanks a lot,
> Varanda
>
> 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
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



-- 
- Campbell


More information about the Bf-committers mailing list