Hi Campbell:
   I added a print and found the cycles CMakeLists.txt has done it, somehow, 
the Xcode does not take it and cause the link error.
 
   The added print line is like this:
—————————————
--- a/intern/cycles/blender/CMakeLists.txt
+++ b/intern/cycles/blender/CMakeLists.txt
@@ -57,6 +57,7 @@ blender_add_lib(bf_intern_cycles "${SRC}" "${INC}" 
"${INC_SYS}")
 # avoid link failure with clang 3.4 debug
 if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT ${CMAKE_C_COMPILER_VERSION} 
VERSION_LESS '3.4')
        set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -gline-tables-only")
+       message("in cycles CMakelists.txt, CMAKE_CXX_FLAGS_DEBUG = 
${CMAKE_CXX_FLAGS_DEBUG}")
 endif()
—————————————
   And the observed output is:
...
in cycles CMakelists.txt, CMAKE_CXX_FLAGS_DEBUG = -fno-strict-aliasing -g 
-gline-tables-only
…
—————————————
  The compiler flag has -gline-tables-only as we expect, the problem may be 
caused by Xcode NOT translating it correctly to its project settings,
  it has to take more investigations to know why.

Tom Sun


> tom <[email protected]> 於 2015年10月19日 下午10:36 寫道:
> 
> Hi Campbell:
>   I have patched CMake and test with it:
>   either set CMAKE_BUILD_TYPE to “RelWithDebInfo” or  “Debug” does not work.
>   I use CMake 3.3.0 (GUI) to configure, Xcode 7.0.
> Tom Sun  
>   
> 
>> 
>> 
>> 寄件人: Campbell Barton <[email protected] <mailto:[email protected]>>
>> 日期: 2015年10月17日 GMT+8 下午10:07:51
>> 收件人: bf-blender developers <[email protected] 
>> <mailto:[email protected]>>
>> 標題: Re: [Bf-committers] Compile Blender with cycles with Debug configuration
>> 
>> 
>> Heres a patch for CMake (untested).
>> https://developer.blender.org/P272 <https://developer.blender.org/P272>
>> 
>> This is removing debug info, so more of a workaround.
>> Nevertheless its probably worth applying unless someone can
>> investigate whats going on.
>> 
>> Could someone see if this is needed for CMAKE_BUILD_TYPE set to
>> "RelWithDebInfo" too?
>> 
>> On Sun, Oct 18, 2015 at 12:39 AM, Smells Like Donkey
>> <[email protected]> wrote:
>>> You’re very welcome! I didn’t have time to figure out how to make cmake 
>>> automatically put those flags into the generated project so there’s still 
>>> more to do!
>>> 
>>> Take care,
>>> Tod.
>>> 
>>>> On Oct 15, 2015, at 11:53 PM, Ching-Ping Sun <[email protected]> wrote:
>>>> 
>>>> Hi Tod:
>>>> It works like a charm. Very appreciate for your hint.
>>>> Jpsun
>>>> _______________________________________________
>>>> Bf-committers mailing list
>>>> [email protected]
>>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>> 
>>> 
>>> _______________________________________________
>>> Bf-committers mailing list
>>> [email protected]
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>> 
>> 
>> 
>> -- 
>> - Campbell
>> 
>> 
>> 
> 

_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to