Help please - compiling on linux - no cycles?

Hi all,

I wonder if someone can help me? I’m afraid I’ve no experience with compiling on linux, but I saw it suggested as a way to get Cycles working. When I tried the build from graphicall.org, I see an error under Addons saying ‘Missing script files’ next to Cycles.

So, following instructions on wiki.blender.org, I compiled Blender myself from SVN. This took me days of fiddling about to get all the dependencies. Anyway, it’s built and running now - but I have exactly the same problem with cycles!

I’m running Xubuntu, x86_64. Building Blender using CMake and source from SVN.

Thanks,

Al

assume svn tree in ~/blender

mkdir blender_build
cd blender_build
cmake …/blender <some paremeters, i prefer turn off python install>
<check output for suspisious warnings>
make -j4 install
bin/blender

Hi Storm,

Thanks for your reply. As I read your instructions, they aim to make a new copy of the build files (I doubt that’s the right term) in ~/blender_build, and then make them with the ‘-j4 install’ parameters?

Well, I tried but the directory from which I’ve been running cmake (or just ‘make’) hasn’t been ~/blender, it’s been ~/blender/build/linux (this was the stucture created by SVN).

Anyway, I ran cmake …/blender/build/linux, and it executed and went through the usual ‘configuring’ but nothing appeared in ~/blender_build. So I thought I’d try your next line, and I ran ‘make -j4 install’, though I had to switch working directory into ~/blender/build/linux before it did anything.

The Make command ran, and I’ve scrolled up and down the output but I can’t see any warnings. Just a section of ‘built target’ lines, then several hundred ‘Installing’ lines, for what seem to be all the files in Blender - including references to Cycles. The resulting build works, but Cycles still shows ‘missing script files’.

Please can you advise? (Though I won’t be back online for a day or so.) Thanks.

Al

Remember, the whole idea is to not touch svn tree at all, and make any temporal and output files in separate directory, using original svn tree only as input.

Anyway, I ran cmake …/blender/build/linux, and it executed and went through the usual ‘configuring’ but nothing appeared in ~/blender_build
compare with my output:

[storm@fast16 blender-build]$ rm -rf *
[storm@fast16 blender-build]$ cmake ../blender -DWITH_PYTHON_INSTALL=OFF -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 4.7.0
-- The CXX compiler identification is GNU 4.7.0
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test SUPPORT_SSE_BUILD
-- Performing Test SUPPORT_SSE_BUILD - Success
-- SSE Support: detected.
-- Performing Test SUPPORT_SSE2_BUILD
-- Performing Test SUPPORT_SSE2_BUILD - Success
-- SSE2 Support: detected.
-- Found JPEG: /usr/lib64/libjpeg.so  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.5") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.5.10") 
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.4.8") 
-- Found PythonLibsUnix: /usr/lib64/libpython3.2mu.so  
-- Found OpenEXR: /usr/lib64/libHalf.so;/usr/lib64/libIex.so;/usr/lib64/libIlmImf.so;/usr/lib64/libIlmThread.so;/usr/lib64/libImath.so  
-- Found OpenJPEG: /usr/lib64/libopenjpeg.so  
-- Found TIFF: /usr/lib64/libtiff.so (found version "3.9.6") 
-- Found OpenAL: /usr/lib64/libopenal.so  
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL: /usr/lib64/libSDL.so;-lpthread  
-- Found Spacenav: /usr/lib64/libspnav.so  
-- Boost version: 1.48.0
-- Found the following Boost libraries:
--   filesystem
--   regex
--   system
--   thread
-- Found OpenImageIO: /usr/lib64/libOpenImageIO.so  
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found OpenGL: /usr/lib64/libGL.so  
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp  
-- Performing Test C_WARN_ALL
-- Performing Test C_WARN_ALL - Success
-- Performing Test C_WARN_CAST_ALIGN
-- Performing Test C_WARN_CAST_ALIGN - Success
-- Performing Test C_WARN_ERROR_DECLARATION_AFTER_STATEMENT
-- Performing Test C_WARN_ERROR_DECLARATION_AFTER_STATEMENT - Success
-- Performing Test C_WARN_ERROR_IMPLICIT_FUNCTION_DECLARATION
-- Performing Test C_WARN_ERROR_IMPLICIT_FUNCTION_DECLARATION - Success
-- Performing Test C_WARN_ERROR_RETURN_TYPE
-- Performing Test C_WARN_ERROR_RETURN_TYPE - Success
-- Performing Test C_WARN_STRICT_PROTOTYPES
-- Performing Test C_WARN_STRICT_PROTOTYPES - Success
-- Performing Test C_WARN_NO_CHAR_SUBSCRIPTS
-- Performing Test C_WARN_NO_CHAR_SUBSCRIPTS - Success
-- Performing Test C_WARN_NO_UNKNOWN_PRAGMAS
-- Performing Test C_WARN_NO_UNKNOWN_PRAGMAS - Success
-- Performing Test C_WARN_POINTER_ARITH
-- Performing Test C_WARN_POINTER_ARITH - Success
-- Performing Test C_WARN_UNUSED_PARAMETER
-- Performing Test C_WARN_UNUSED_PARAMETER - Success
-- Performing Test C_WARN_WRITE_STRINGS
-- Performing Test C_WARN_WRITE_STRINGS - Success
-- Performing Test C_WARN_NO_ERROR_UNUSED_BUT_SET_VARIABLE
-- Performing Test C_WARN_NO_ERROR_UNUSED_BUT_SET_VARIABLE - Success
-- Performing Test CXX_WARN_ALL
-- Performing Test CXX_WARN_ALL - Success
-- Performing Test CXX_WARN_NO_INVALID_OFFSETOF
-- Performing Test CXX_WARN_NO_INVALID_OFFSETOF - Success
-- Performing Test CXX_WARN_NO_SIGN_COMPARE
-- Performing Test CXX_WARN_NO_SIGN_COMPARE - Success
-- Performing Test C_WARN_NO_DEPRECATED_DECLARATIONS
-- Performing Test C_WARN_NO_DEPRECATED_DECLARATIONS - Success
-- Performing Test C_WARN_NO_UNUSED_PARAMETER
-- Performing Test C_WARN_NO_UNUSED_PARAMETER - Success
-- Blender Skipping: (bf_collada;bf_intern_utfconv;extern_openjpeg;extern_redcode)
-- Found Subversion: /usr/bin/svn (found version "1.7.5") 
-- RPM Build Found: /usr/bin/rpmbuild

* Blender Configuration *

  Build Options:
   * WITH_GAMEENGINE            ON
   * WITH_PLAYER                OFF
   * WITH_BULLET                ON
   * WITH_IK_ITASC              ON
   * WITH_OPENCOLLADA           OFF
   * WITH_FFTW3                 OFF
   * WITH_INTERNATIONAL         ON
   * WITH_INPUT_NDOF            ON
   * WITH_CYCLES                ON

  Compiler Options:
   * WITH_BUILDINFO             ON
   * WITH_OPENMP                ON
   * WITH_RAYOPTIMIZATION       ON

  System Options:
   * WITH_INSTALL_PORTABLE      ON
   * WITH_X11_XF86VMODE         ON
   * WITH_X11_XINPUT            ON
   * WITH_MEM_JEMALLOC          OFF
   * WITH_SYSTEM_GLEW           ON
   * WITH_SYSTEM_OPENJPEG       ON

  Image Formats:
   * WITH_IMAGE_CINEON          ON
   * WITH_IMAGE_DDS             ON
   * WITH_IMAGE_HDR             ON
   * WITH_IMAGE_OPENEXR         ON
   * WITH_IMAGE_OPENJPEG        ON
   * WITH_IMAGE_REDCODE         OFF
   * WITH_IMAGE_TIFF            ON

  Audio:
   * WITH_OPENAL                ON
   * WITH_SDL                   ON
   * WITH_JACK                  OFF
   * WITH_CODEC_FFMPEG          OFF
   * WITH_CODEC_SNDFILE         OFF

  Compression:
   * WITH_LZMA                  ON
   * WITH_LZO                   ON

  Python:
   * WITH_PYTHON_INSTALL        OFF
   * WITH_PYTHON_INSTALL_NUMPY  ON
   * WITH_PYTHON_MODULE         OFF
   * WITH_PYTHON_SAFETY         OFF

  Modifiers:
   * WITH_MOD_BOOLEAN           ON
   * WITH_MOD_REMESH            ON
   * WITH_MOD_DECIMATE          ON
   * WITH_MOD_FLUID             ON
   * WITH_MOD_OCEANSIM          OFF

  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/storm/projects/blender-build
[storm@fast16 blender-build]$ 

now i have files in build directory:

[storm@fast16 blender-build]$ ll
итого 164
drwxrwxr-x.  2 storm storm  4096 июля   7 00:58 bin
-rw-rw-r--.  1 storm storm 50772 июля   7 00:58 CMakeCache.txt
drwxrwxr-x.  7 storm storm  4096 июля   7 00:58 CMakeFiles
-rw-rw-r--.  1 storm storm  2046 июля   7 00:58 cmake_install.cmake
-rw-r--r--.  1 storm storm  3365 июля   7 00:58 CPackConfig.cmake
-rw-r--r--.  1 storm storm  3767 июля   7 00:58 CPackSourceConfig.cmake
-rw-rw-r--.  1 storm storm   347 июля   7 00:58 CTestTestfile.cmake
drwxrwxr-x. 12 storm storm  4096 июля   7 00:58 extern
drwxrwxr-x. 22 storm storm  4096 июля   7 00:58 intern
drwxrwxr-x.  2 storm storm  4096 июля   7 00:58 lib
-rw-rw-r--.  1 storm storm 68460 июля   7 00:58 Makefile
drwxrwxr-x.  7 storm storm  4096 июля   7 00:58 source
drwxrwxr-x.  2 storm storm  4096 июля   7 00:58 tests
[storm@fast16 blender-build]$ 

now you can type make -j4 install to actually compile and install it.

The resulting build works, but Cycles still shows ‘missing script files’.
Never see that before, are you sure that svn tree is correct ? What svn status say? (of course in your blender svn root, e.g cd ~/blender/build/linux; svn status)

Hi again,

Sorry it’s been a while since I’ve been able to try this again. Anyway. I started again, deleted what I’d got and made a new ~/blender-svn. Ran svn as per instructions on wiki.blender.org.

If I do svn status, I get this:

?       log1.txt
X       release/datafiles/locale
X       release/scripts/addons
X       release/scripts/addons_contrib

Performing status on external item at 'release/scripts/addons'

Performing status on external item at 'release/scripts/addons_contrib'

Performing status on external item at 'release/datafiles/locale'

(Note that log1.txt is my compile log file)

I’ve tried comparing it with your log file, and it looks similar, though yours seems to have a lot of different options (if that’s the right term). But I can’t see any errors in mine. When it comes to the ‘blender configuration’ section, ‘WITH_CYCLES’ was showing as on.

I redirected the output of ‘make’ to a log file, and while I couldn’t upload it to the forum, I’ve pasted it here:
http://pastebin.com/Vw1uhsm1

I’d really appreciate some further help with this.

Thanks,

Al

have no linux box to compare, just to be sure rename or remove any old ~/.blender hidden directory, maybe you have very old strange addon that clash with new 2.6 format.

Fixed it! :slight_smile:

It was nothing to do with the compile, actually. I feel silly for wasting your time with it, sorry!

When, until recently, I’ve used Blender on Windows, I had an older version installed via the installer, then I’d downloaded the build with cycles from graphicall, and ran that from its own directory. Well, I was doing the same on linux. But for some reason, when I’d built the new version in its own folder, even running ./blender in the correct directory, it was actually executing the old version which was installed via the package manager.

It was your suggestion to delete the .blender folder that made me think to clear out everything old-blender related, which meant uninstalling the package manager version. As soon as I did this - the new build is running, with Cycles! :slight_smile:

Thanks again for your help.

Al