[Bf-committers] cycle todo list

Paul Melis paul.melis at sara.nl
Sat Apr 30 08:36:02 CEST 2011


On 04/30/11 07:52, Michael Fox wrote:
> Use ccmake as with it you can set the paths of your includes
Perhaps a bit more detail will help :)

First, you can run make with VERBOSE=1 to check the exact compiler
command, and see the include paths actually used. It's strange that
OpenJPEG isn't found in your case, as the default search location is
under /usr, and since you have /usr/include/openjpeg.h that should be
enough.

Secondly, the top-level CMakeLists.txt file has a few OpenJPEG related
values:

option(WITH_IMAGE_OPENJPEG      "Enable OpenJpeg Support
(http://www.openjpeg.org)" ON)

...

if(WITH_IMAGE_OPENJPEG)
    if(UNIX AND NOT APPLE)
        set(OPENJPEG /usr)
        set(OPENJPEG_INC ${OPENJPEG}/include)
        set(OPENJPEG_LIB openjpeg)
        set(OPENJPEG_LIBPATH ${OPENJPEG}/lib)
    else()
        set(OPENJPEG ${CMAKE_SOURCE_DIR}/extern/libopenjpeg)
        set(OPENJPEG_INC ${OPENJPEG})
    endif()
endif()

If you don't need OpenJPEG support (don't know what it's used for) you
can set WITH_IMAGE_OPENJPEG to OFF:

~/blender-cycles-build$ cmake <cycles-source-dir>
-DWITH_IMAGE_OPENJPEG=OFF <other options you want to set>

But I see in your other reply that you already know this :)

HTH,
Paul

>
> On 30/04/11 15:27, Daniel Salazar - 3Developer.com wrote:
>> make fails in latest OpenSuSE 11.4 with this
>>
>> [ 31%] Building C object
>> source/blender/imbuf/CMakeFiles/bf_imbuf.dir/intern/jp2.c.o
>> /home/zanqdo/Storage/Blender/blender-cycles/blender/source/blender/imbuf/intern/jp2.c:43:22:
>> fatal error: openjpeg.h: No such file or directory
>> compilation terminated.
>> make[2]: *** [source/blender/imbuf/CMakeFiles/bf_imbuf.dir/intern/jp2.c.o]
>> Error 1
>> make[1]: *** [source/blender/imbuf/CMakeFiles/bf_imbuf.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> In my system that header file is located here:
>>
>> usr/include/openjpeg.h
>>
>> somehow cmake isn't finding it?
>>
>> cheers
>>
>> Daniel Salazar
>> 3Developer.com
>>
>>
>>
>> On Fri, Apr 29, 2011 at 11:09 AM, Paul Melis<paul.melis at sara.nl>  wrote:
>>> Hi,
>>>
>>> On 04/28/11 12:28, Brecht Van Lommel wrote:
>>>> Actually, anything on this list is open to be implemented by others.
>>>>> From the point of view of the core engine, if implemented well they
>>>> can fit in right away. I guess the first ones go from a couple of days
>>>> to a week, once you are familiar with the code, the big features can
>>>> take from a week to multiple months. It's quite hard to say, but if
>>>> someone is interested, they can of course contact me, and I can give
>>>> some pointers on how to go about implementing things.
>>>>
>>>> For me personally, integration, stability, performance, will likely
>>>> take up most of the time for now.
>>> How should we report build problems found? Here on the list?
>>>
>>> If so, on a Gentoo 32-bit Linux system with GCC 4.4.5 I get:
>>>
>>> [ 95%] Building CXX object
>>> intern/cycles/util/CMakeFiles/cycles_util.dir/util_system.cpp.o
>>> /home/melis/c/blender-cycles-svn/intern/cycles/util/util_system.cpp: In
>>> function 'std::string ccl::system_cpu_brand_string()':
>>> /home/melis/c/blender-cycles-svn/intern/cycles/util/util_system.cpp:63:
>>> error: can't find a register in class 'BREG' while reloading 'asm'
>>> /home/melis/c/blender-cycles-svn/intern/cycles/util/util_system.cpp:63:
>>> error: can't find a register in class 'BREG' while reloading 'asm'
>>> /home/melis/c/blender-cycles-svn/intern/cycles/util/util_system.cpp:63:
>>> error: can't find a register in class 'BREG' while reloading 'asm'
>>> /home/melis/c/blender-cycles-svn/intern/cycles/util/util_system.cpp:63:
>>> error: can't find a register in class 'BREG' while reloading 'asm'
>>> /home/melis/c/blender-cycles-svn/intern/cycles/util/util_system.cpp:63:
>>> error: 'asm' operand has impossible constraints
>>> /home/melis/c/blender-cycles-svn/intern/cycles/util/util_system.cpp:63:
>>> error: 'asm' operand has impossible constraints
>>> /home/melis/c/blender-cycles-svn/intern/cycles/util/util_system.cpp:63:
>>> error: 'asm' operand has impossible constraints
>>> /home/melis/c/blender-cycles-svn/intern/cycles/util/util_system.cpp:63:
>>> error: 'asm' operand has impossible constraints
>>> make[2]: ***
>>> [intern/cycles/util/CMakeFiles/cycles_util.dir/util_system.cpp.o] Error 1
>>> make[1]: *** [intern/cycles/util/CMakeFiles/cycles_util.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> Attached a patch (untested, but it compiles) based on the stuff in
>>> http://newbiz.github.com/cpp/2010/12/20/Playing-with-cpuid.html.
>>>
>>> Regards,
>>> Paul
>>>
>>> _______________________________________________
>>> 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
> _______________________________________________
> 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