@eppo (eppo) posted a new topic, subject "FC15 Blender Cycles compile errors". It read:

   If this isn't appropriate here please point me at right direction…
    
    Hello!  
    Decided to follow http://wiki.blender.org/index.php/Dev:2.5/Source/Render/Cycles/Building recipe in order to see if my own Cycles build for 32 bit Fedora15 and 9800GT will beter withstand against sudden crashes but at the end of process i get this error:
    [code] 
        Linking CXX executable ../../bin/blender
        /home/user/blender-cycles/oiio/dist/linux/lib/libOpenImageIO.a(jpeg2000input.cpp.o): In function `OpenImageIO8b7c:f320:99b9:690f:4595:cd17:293a:c069v8b7c:f320:99b9:690f:4595:cd17:293a:c069jpeg2000_input_imageio_create()':
        jpeg2000input.cpp:(.text+0x3fb): undefined reference to `jas_init'
        
        
    [/code]
    
    I have jasper and jasper-devel-1.900.1-17.fc15 installed.
    
    cmake line is:
    [code] 
        cmake ../blender -DWITH_CYCLES_CUDA=ON -DCYCLES_CUDA=/usr/local/cuda -DCYCLES_CUDA_ARCH=sm_11 -DOPENIMAGEIO=../oiio/dist/linux -DBOOST=../boost -DBOOST_CUSTOM=1 -DBoost_INCLUDE_DIRS=`pwd`/../boost/include/ -DBoost_LIBRARY_DIRS=`pwd`/../boost/lib -DBoost_LIBRARIES="`pwd`/../boost/lib/libboost_date_time.a;`pwd`/../boost/lib/libboost_filesystem.a;`pwd`/../boost/lib/libboost_thread.a;`pwd`/../boost/lib/libboost_regex.a;`pwd`/../boost/lib/libboost_system.a"
        
        
    [/code]
    
    Line is combined copy/paste from web page, only modification being CUDA capabilities for 9800GT sm_11, which gives this warning:
    [code] 
        CMake Warning: The variable, 'BOOST', specified manually, was not used during the generation.
        
    [/code]
    
    So, my questions would be
    
      * if there's all correct with cmake line's -DBOOST and -DBoost parameters and
      * what could be a workaround concerning not found jasper headers at /usr/include/jasper.
    
    
    
    Main reason why i want to build this is that with latest available B2.59 Cycles version from Graphicall i got error :
    [code] 
        CUDA error:Out of memory in cuLaunchGrid(cuPathTrace,xblocks,yblocks)
        
    [/code]
    
    which leads me to device_cuda.cpp launch kernel code. I might be wrong but i suspect that 16 for xthreads, ythreads is simply too much for my card… if this is something to do with what geeks3d call ‘Multiprocessors' - i have 14 not 16 of them since 9800GT is a cut down version of 9800GTX. Anyhow, it's just my wild guess, i'm not much into coding or deeply understanding CUDA stuff.
    
    blender-svn while doing this: http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Linux/Fedora/CMake compiles and works just fine for me if what…
    
    Thank you for a help!

So @Sanne (Sanne) replied

    I also got jasper errors and just disabled it by adding  
    -DUSE_JASPER=OFF  
    to the oiio cmake command line. Then build oiio and blender again.
    
    Can't help with CUDA though, I'm building without.

Then @eppo (eppo) said

    Thanks for advice. I'll try that of course. Still, there should be something to get hold on it… Will dig.

Then @eppo (eppo) said

    Switching off jasper in in oiio helped to get blender-cycles built. This one from my garden to Sanne for a help: http://www.pasteall.org/pic/17409
    
    Still, after doing cmake on oiio, i checked what else is there:  
    <code>ccmake .<code>  
    Find that Field3d is not found on my system. Got it, compiled, installed.  
    Just to find out that now blender does not link again, this time instead of jasper, which was switched off in oiio, it was same error with Field3d.
    
    Well, looks like Field3d is dealing with woxel stuff, particles, i assume, so i'm not in pain when it's not present for me in blender currently.
    
    As stated on http://www.ece.uvic.ca/~frodo/software.html :“JasPer is tool kit for image processing that includes an implementation of the JPEG-2000 Part-1 codec.” Since i haven't seen much of JPEG-2000 images, i can live without it too.
    
    Btw OpenImageIO and Blender3d/Cycles are not listed as projects using JasPer on Michael Adams home page. He asks to let him know…
    
    Anyhow - result - i used famous glass-liquid.blend from Cycles thread:  
    http://www.pasteall.org/pic/17408
    
    Don't know yet how my 1.3 pass/sec compares to world records :)… While rendering in 3d viewport 2 out of 2 my athlon cores were kept bussy at almost 100%, ‘GPU' was chosen (should it be so?).

To which @Sanne (Sanne) replied

    Great you got it working, and thanks for the beautiful flowers. 
    
    Hehe, I made that glass-liquid.blend, nice you took it for testing. But you should get an engraved rim. The texture for that is inside the blend, you have to unpack it first though so Cycles can use it. Also, for environment lighting I used a HDR map that I couldn't distribute, so you'd need to use your own for better lighting and reflections (spherical map aka latlong aka equirectangular).
    
    Can't say anything about GPU rendering, though.

@eppo (eppo) replied

    Sanne:
    
    > … But you should get an engraved rim…
    
    oops… I remeber i saw it when i rendered it with older version of Cycles… and i feel there are more peculiarities with this build…  
    This Global illlumination thing… When i hower with mouse over it i get python command ending in complete garbage…Downloaded today, well yesterday actually. Also this 100% CPU load doesn't help very much. Rendering Pile of Garbage right now - can't even type normally.  
    I'll put it in WIP later.


{'source': 'discourse', 'url': 'https://blenderartists.org/t/fc15-blender-cycles-compile-errors/517773', 'title': 'FC15 Blender Cycles compile errors', 'views': 1642, 'has_accepted_answer': False, 'word_count': 850, 'like_count': 0, 'reply_count': 3, 'participant_count': 2, 'posts': 6, 'tags': '', 'author': '@eppo (eppo)', 'participants': '@eppo (eppo), @Sanne (Sanne)', 'image_url': [None], 'created_at': '2011-08-30T10:46:15.000Z', 'last_posted_at': '2011-09-03T16:55:12.000Z'}