[Bf-cycles] Cycles standalone compiling

裴雪柯 yuzukyo at gmail.com
Mon Mar 7 20:51:57 CET 2016


you can get the stand alone cycles code form here
https://git.blender.org/cycles.git and use the lib which blender use for
link.

2016-03-07 17:53 GMT+08:00 Lin M <majcjc at gmail.com>:

> Hi Sergey,
>
> Thank you for the reply. I'm building Cycles from within Blender's sources
> and I have double checked out libraries from SVN.
>
> I only deleted the "OPTIMIZED" and "DEBUG" before entering the macro
> target_link_libraries_decoupled because I found that they will be added
> back in the macro. If I don't delete them, there would be duplicated
> "OPTIMIZED" and "DEBUG" there which leads cmake to report errors.
>
> Do you have some suggestions about my issue? Do I need to change to linux
> for example?
>
> Best,
> Lin
>
> On Mon, Mar 7, 2016 at 5:29 PM, Sergey Sharybin <sergey.vfx at gmail.com>
> wrote:
>
>> First of all ,are you building Cycles from standalone repository or from
>> within Blender's sources?
>>
>> Second of all. do you have libraries checked out from SVN?
>>
>> Other replies are inlined.
>>
>> On Mon, Mar 7, 2016 at 2:18 PM, Lin M <majcjc at gmail.com> wrote:
>>
>>>
>>> 1. when I tried to config the project by cmake, it showed errors in
>>> blender/intern/cycles/app/CMakeLists.txt (line 83) when it went
>>> to target_link_libraries_decoupled(${target} OSL_LIBRARIES). It's because
>>> the OSL_LIBRARIES was appended by unnecessary "optimized" and "debug" which
>>> would be appended again in the macro target_link_libraries_decoupled. I
>>> wrote a small function to delete them and the VS solution can be generated
>>> successfully.
>>>
>>
>> "OPTIMIZED" and "DEBUG" are not unnecessary, they are required to make it
>> possible to use different libraries for Release and Debug targets in MSVC.
>>
>> Writing  anything to get rid of such suffixes is a wrong approach to
>> solve your issue.
>>
>> 2. Then I tried to build the solution (release version). It output many
>>> similar errors when compiling the cycles project
>>>
>>> 63>LLVMAnalysis.lib(ConstantFolding.obj) : error LNK2038: mismatch
>>> detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in
>>> cycles_standalone.obj
>>>
>>
>> This exactly because your script screwed libraries up and used debug
>> libraries for release build (or vice verse).
>>
>>
>> --
>> With best regards, Sergey Sharybin
>>
>> _______________________________________________
>> Bf-cycles mailing list
>> Bf-cycles at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-cycles
>>
>>
>
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> http://lists.blender.org/mailman/listinfo/bf-cycles
>
>


-- 
裴雪柯
成都一环路东四段光明路69号
kidux Blendercg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20160308/594ee684/attachment.htm 


More information about the Bf-cycles mailing list