Page MenuHome

Building blender as a python module is broken in trunk
Closed, ResolvedPublic

Description

--- Operating System, Graphics card ---
Ubuntu 13.04 beta

--- Blender version with error, and version that worked ---
my last build of this was somewhere in the 2.65 series

--- Short description of error ---
building of a clean checkout as described in http://wiki.blender.org/index.php/User:Ideasman42/BlenderAsPyModule

/usr/bin/c++ -DHAVE_STDBOOL_H -DNDEBUG -DPy_ENABLE_SHARED -DWITH_BOOL_COMPAT -DWITH_HEADLESS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__ -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wuninitialized -Wundef -Wmissing-declarations -fopenmp -msse2 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -O2 -DNDEBUG -I/home/mberger/src/blender/blender/intern/ghost -I/home/mberger/src/blender/blender/intern/string -I/home/mberger/src/blender/blender/source/blender/imbuf -I/home/mberger/src/blender/blender/source/blender/makesdna -MMD -MT intern/ghost/CMakeFiles/bf_intern_ghost.dir/intern/GHOST_ISystem.cpp.o -MF "intern/ghost/CMakeFiles/bf_intern_ghost.dir/intern/GHOST_ISystem.cpp.o.d" -o intern/ghost/CMakeFiles/bf_intern_ghost.dir/intern/GHOST_ISystem.cpp.o -c /home/mberger/src/blender/blender/intern/ghost/intern/GHOST_ISystem.cpp
FAILED: /usr/bin/c++ -DHAVE_STDBOOL_H -DNDEBUG -DPy_ENABLE_SHARED -DWITH_BOOL_COMPAT -DWITH_HEADLESS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__ -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wuninitialized -Wundef -Wmissing-declarations -fopenmp -msse2 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -O2 -DNDEBUG -I/home/mberger/src/blender/blender/intern/ghost -I/home/mberger/src/blender/blender/intern/string -I/home/mberger/src/blender/blender/source/blender/imbuf -I/home/mberger/src/blender/blender/source/blender/makesdna -MMD -MT intern/ghost/CMakeFiles/bf_intern_ghost.dir/intern/GHOST_ISystem.cpp.o -MF "intern/ghost/CMakeFiles/bf_intern_ghost.dir/intern/GHOST_ISystem.cpp.o.d" -o intern/ghost/CMakeFiles/bf_intern_ghost.dir/intern/GHOST_ISystem.cpp.o -c /home/mberger/src/blender/blender/intern/ghost/intern/GHOST_ISystem.cpp
In file included from /home/mberger/src/blender/blender/intern/ghost/intern/GHOST_ISystem.cpp:42:0:
/home/mberger/src/blender/blender/intern/ghost/intern/GHOST_SystemNULL.h: In member function ‘GHOST_IWindow* GHOST_SystemNULL::createWindow(const STR_String&, GHOST_TInt32, GHOST_TInt32, GHOST_TUns32, GHOST_TUns32, GHOST_TWindowState, GHOST_TDrawingContextType, bool, GHOST_TUns16, GHOST_TEmbedderWindowID)’:
/home/mberger/src/blender/blender/intern/ghost/intern/GHOST_SystemNULL.h:82:112: error: cannot allocate an object of abstract type ‘GHOST_WindowNULL’
In file included from /home/mberger/src/blender/blender/intern/ghost/intern/GHOST_SystemNULL.h:34:0,
from /home/mberger/src/blender/blender/intern/ghost/intern/GHOST_ISystem.cpp:42:
/home/mberger/src/blender/blender/intern/ghost/intern/GHOST_WindowNULL.h:38:7: note: because the following virtual functions are pure within ‘GHOST_WindowNULL’:
In file included from /home/mberger/src/blender/blender/intern/ghost/GHOST_ISystem.h:40:0,
from /home/mberger/src/blender/blender/intern/ghost/intern/GHOST_ISystem.cpp:39:
/home/mberger/src/blender/blender/intern/ghost/GHOST_IWindow.h:309:25: note: virtual GHOST_TSuccess GHOST_IWindow::beginFullScreen() const
/home/mberger/src/blender/blender/intern/ghost/GHOST_IWindow.h:310:25: note: virtual GHOST_TSuccess GHOST_IWindow::endFullScreen() const
/home/mberger/src/blender/blender/intern/ghost/intern/GHOST_ISystem.cpp: In static member function ‘static GHOST_TSuccess GHOST_ISystem::createSystem()’:
/home/mberger/src/blender/blender/intern/ghost/intern/GHOST_ISystem.cpp:68:35: error: cannot allocate an object of abstract type ‘GHOST_SystemNULL’
In file included from /home/mberger/src/blender/blender/intern/ghost/intern/GHOST_ISystem.cpp:42:0:
/home/mberger/src/blender/blender/intern/ghost/intern/GHOST_SystemNULL.h:38:7: note: because the following virtual functions are pure within ‘GHOST_SystemNULL’:
In file included from /home/mberger/src/blender/blender/intern/ghost/intern/GHOST_ISystem.cpp:39:0:
/home/mberger/src/blender/blender/intern/ghost/GHOST_ISystem.h:251:25: note: virtual GHOST_IWindow* GHOST_ISystem::createWindow(const STR_String&, GHOST_TInt32, GHOST_TInt32, GHOST_TUns32, GHOST_TUns32, GHOST_TWindowState, GHOST_TDrawingContextType, bool, bool, GHOST_TUns16, GHOST_TEmbedderWindowID)


--- Steps for others to reproduce the error (preferably based on attached .blend file) ---


Event Timeline

I tracked down commit that breaks building headless / as a modules for me.

from r54806 and onwards the build is broken.

Attached a patch that fixes the issue for me with trunk

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Apr 8 2013, 7:02 AM