Help with OSX scons

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Money_YaY!
Posts: 442
Joined: Wed Oct 23, 2002 2:47 pm

Help with OSX scons

Post by Money_YaY! » Wed Jul 06, 2005 11:30 pm

Hey, I am tring with the most current cvs to build via scons, It keeps complaining that so and so .h file is missing from intern folder. But the file in in the folder one above the intern folder or in the same folder as the intern folder but not "IN' the intern folder./ Sooo if I copy in the .h file to the intern folder it works but starts again with a different intern folder...

Sooo something is wacked with my config.opts file. PLease and thank you :D

# Configuration file containing user definable options.
VERSION = '2.37a'
BUILD_BINARY = 'release'
USE_BUILDINFO = 'true'
BUILD_BLENDER_DYNAMIC = 'true'
BUILD_BLENDER_STATIC = 'false'
BUILD_BLENDER_PLAYER = 'true'
BUILD_BLENDER_PLUGIN = 'false'
BUILD_DIR = '../build/darwin/'

# Extra compiler flags can be defined here.
DEFINES = []
CCFLAGS = []
CXXFLAGS = []
LDFLAGS = []
USE_INTERNATIONAL = 'true'
BUILD_GAMEENGINE = 'true'
USE_PHYSICS = 'solid'
USE_OPENAL = 'false'
USE_FMOD = 'false'
USE_QUICKTIME = 'true'

# Compiler information.
HOST_CC = 'gcc'
HOST_CXX = 'g++'
TARGET_CC = 'gcc'
TARGET_CXX = 'g++'
TARGET_AR = 'ar'
PATH = '/bin:/sbin:/usr/bin:/usr/sbin'

# External library information.
PLATFORM_LIBS = ['stdc++']
PLATFORM_LIBPATH = ['/System/Library/Frameworks/OpenGL.framework/Libraries']
PLATFORM_LINKFLAGS = []
PYTHON_INCLUDE = ['/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3']
PYTHON_LIBPATH = ['/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config']
PYTHON_LIBRARY = []
PYTHON_LINKFLAGS = ['-u', '__dummy', '-u', '_PyMac_Error', '-framework', 'System', '-framework', 'Python', '-framework', 'CoreServices', '-framework', 'Foundation', '-framework', 'OpenGL', '-framework', 'IOKit', '-framework', 'AppKit']
SDL_CFLAGS = ['-I#../lib/darwin-6.1-powerpc/sdl/include']
SDL_INCLUDE = ['#../lib/darwin-6.1-powerpc/sdl/include']
SDL_LIBPATH = ['#../lib/darwin-6.1-powerpc/sdl/lib']
SDL_LIBRARY = ['libSDL.a']
Z_INCLUDE = []
Z_LIBPATH = []
Z_LIBRARY = ['z']
PNG_INCLUDE = ['#../lib/darwin-6.1-powerpc/png/include']
PNG_LIBPATH = ['#../lib/darwin-6.1-powerpc/png/lib']
PNG_LIBRARY = ['libpng']
JPEG_INCLUDE = ['#../lib/darwin-6.1-powerpc/jpeg/include']
JPEG_LIBPATH = ['#../lib/darwin-6.1-powerpc/jpeg/lib']
JPEG_LIBRARY = ['libjpeg']
OPENGL_INCLUDE = []
OPENGL_LIBPATH = []
OPENGL_LIBRARY = ['GL', 'GLU']
OPENGL_STATIC = []

# The following information is only necessary when you've enabled support for
# the game engine.
SOLID_INCLUDE = ['#/extern/solid']
SOLID_LIBPATH = []
SOLID_LIBRARY = []
QHULL_INCLUDE = ['#/extern/qhull/include']
QHULL_LIBPATH = []
QHULL_LIBRARY = []
ODE_INCLUDE = ['#../lib/darwin-6.1-powerpc/ode/include/ode']
ODE_LIBPATH = ['#../lib/darwin-6.1-powerpc/ode/lib']
ODE_LIBRARY = ['libode']
OPENAL_INCLUDE = ['#../lib/darwin-6.1-powerpc/openal/include']
OPENAL_LIBPATH = ['#../lib/darwin-6.1-powerpc/openal/lib']
OPENAL_LIBRARY = ['libopenal']

# The following information is only necessary when building with
# internationalization support.
FTGL_INCLUDE = ['#extern/bFTGL/include']
FTGL_LIBPATH = []
FTGL_LIBRARY = []
FREETYPE_INCLUDE = ['#../lib/darwin-6.1-powerpc/freetype/include']
FREETYPE_LIBPATH = ['#../lib/darwin-6.1-powerpc/freetype/lib']
FREETYPE_LIBRARY = ['libfreetype']
GETTEXT_INCLUDE = ['#../lib/darwin-6.1-powerpc/gettext/include']
GETTEXT_LIBPATH = ['#../lib/darwin-6.1-powerpc/gettext/lib']
GETTEXT_LIBRARY = ['libintl']

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude » Thu Jul 07, 2005 3:37 pm

We need the actual error messages to actually figure out what needs
fixing.

Money_YaY!
Posts: 442
Joined: Wed Oct 23, 2002 2:47 pm

Post by Money_YaY! » Thu Jul 07, 2005 5:25 pm

Last login: Thu Jul 7 09:46:18 on console
Welcome to Darwin!
ravens-power-mac-g5:~ raven$ cd /Users/raven/bl/blender/
ravens-power-mac-g5:~/bl/blender raven$ /System/Library/Frameworks/Python.framework/Versions/2.3/bin/scons
scons: Reading SConscript files ...
targets = []
arguments = {}
Using config file: config.opts
externs...
bftgl
scons: done reading SConscript files.
scons: Building targets ...
gcc -pipe -fPIC -funsigned-char -ffast-math -mpowerpc -mtune=G4 -O2 -Wall -D_THREAD_SAFE -DWITH_QUICKTIME -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DNDEBUG -DBUILD_TIME='"11:12:45"' -DBUILD_DATE='"2005-07-07"' -DBUILD_TYPE='"dynamic"' -DNAN_BUILDINFO -DBUILD_PLATFORM='"darwin"' -c -o /Users/raven/bl/build/darwin/source/creator/dynamic_buildinfo.o source/creator/buildinfo.c
g++ -pipe -fPIC -funsigned-char -ffast-math -mpowerpc -mtune=G4 -O2 -Wall -D_THREAD_SAFE -DWITH_QUICKTIME -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DNDEBUG -I/Users/raven/bl/build/darwin/intern/ghost -Iintern -Iintern -I/Users/raven/bl/build/darwin/intern/string -Iintern/string -Iintern/string -c -o /Users/raven/bl/build/darwin/intern/ghost/intern/GHOST_C-api.o intern/ghost/intern/GHOST_C-api.cpp
intern/ghost/intern/GHOST_C-api.cpp:47:32: error: intern/GHOST_Debug.h: No such file or directory
intern/ghost/intern/GHOST_C-api.cpp:52:48: error: intern/GHOST_CallbackEventConsumer.h: No such file or directory
intern/ghost/intern/GHOST_C-api.cpp: In function `GHOST_EventConsumerHandle__* GHOST_CreateEventConsumer(int (*)(GHOST_EventHandle__*, void*), void*)':
intern/ghost/intern/GHOST_C-api.cpp:79: error: expected primary-expression before ')' token
intern/ghost/intern/GHOST_C-api.cpp:79: error: expected %<;%> before "new"
intern/ghost/intern/GHOST_C-api.cpp:79: error: expected type-specifier before "GHOST_CallbackEventConsumer"
intern/ghost/intern/GHOST_C-api.cpp:79: error: expected `;' before "GHOST_CallbackEventConsumer"
intern/ghost/intern/GHOST_C-api.cpp: In function `GHOST_TSuccess GHOST_DisposeEventConsumer(GHOST_EventConsumerHandle__*)':
intern/ghost/intern/GHOST_C-api.cpp:85: error: 'GHOST_CallbackEventConsumer' was not declared in this scope
intern/ghost/intern/GHOST_C-api.cpp:85: error: expected primary-expression before ')' token
intern/ghost/intern/GHOST_C-api.cpp:85: error: expected `)' before "consumerhandle"
intern/ghost/intern/GHOST_C-api.cpp: In function `GHOST_TSuccess GHOST_AddEventConsumer(GHOST_SystemHandle__*, GHOST_EventConsumerHandle__*)':
intern/ghost/intern/GHOST_C-api.cpp:259: error: 'GHOST_CallbackEventConsumer' was not declared in this scope
intern/ghost/intern/GHOST_C-api.cpp:259: error: expected primary-expression before ')' token
intern/ghost/intern/GHOST_IWindow.h: At global scope:
intern/ghost/intern/GHOST_IWindow.h:196: warning: inline function `virtual void* GHOST_IWindow::getUserData() const' used but never defined
intern/ghost/intern/GHOST_ITimerTask.h:70: warning: inline function `virtual void (* GHOST_ITimerTask::getTimerProc() const)(GHOST_ITimerTask*, GHOST_TUns64)' used but never defined
intern/ghost/intern/GHOST_ITimerTask.h:76: warning: inline function `virtual void GHOST_ITimerTask::setTimerProc(void (*)(GHOST_ITimerTask*, GHOST_TUns64))' used but never defined
intern/ghost/intern/GHOST_ITimerTask.h:82: warning: inline function `virtual void* GHOST_ITimerTask::getUserData() const' used but never defined
intern/ghost/intern/GHOST_IWindow.h:82: warning: inline function `virtual GHOST_TDrawingContextType GHOST_IWindow::getDrawingContextType()' used but never defined
scons: *** [/Users/raven/bl/build/darwin/intern/ghost/intern/GHOST_C-api.o] Error 1
scons: building terminated because of errors.
ravens-power-mac-g5:~/bl/blender raven$





This:
intern/ghost/intern/GHOST_C-api.cpp:47:32: error: intern/GHOST_Debug.h: No such file or directory

I see a lot and the file is living in the same folder as the intern folder BUT not "in"

Money_YaY!
Posts: 442
Joined: Wed Oct 23, 2002 2:47 pm

Post by Money_YaY! » Thu Jul 07, 2005 6:58 pm

new cvs gives this

\

ravens-power-mac-g5:~/bl/blender raven$ /System/Library/Frameworks/Python.framework/Versions/2.3/bin/scons
scons: Reading SConscript files ...
targets = []
arguments = {}
Using config file: config.opts
externs...
OSError: [Errno 2] No such file or directory: '/Users/raven/bl/build/darwin/extern':
File "SConstruct", line 1031:
SConscript (bs_globals.root_build_dir+'extern/SConscript')
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/scons/SCons/Script/SConscript.py", line 534:
return apply(method, args, kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/scons/SCons/Script/SConscript.py", line 471:
return apply(_SConscript, [self.fs,] + files, {'exports' : exports})
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/scons/SCons/Script/SConscript.py", line 217:
exec _file_ in call_stack[-1].globals
File "extern/SConscript", line 7:
SConscript(['qhull/SConscript',
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/scons/SCons/Script/SConscript.py", line 534:
return apply(method, args, kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/scons/SCons/Script/SConscript.py", line 471:
return apply(_SConscript, [self.fs,] + files, {'exports' : exports})
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/scons/SCons/Script/SConscript.py", line 233:
os.chdir(frame.prev_dir.rdir().get_abspath())
ravens-power-mac-g5:~/bl/blender raven$

Money_YaY!
Posts: 442
Joined: Wed Oct 23, 2002 2:47 pm

Post by Money_YaY! » Mon Jul 11, 2005 8:21 pm

anyone ??? :(

osxrules
Posts: 0
Joined: Wed Jun 02, 2004 6:34 pm

Post by osxrules » Mon Jul 11, 2005 11:39 pm

Why not use the xcode project that's in the CVS instead? After messing about with the project settings, I got a clean compile with a binary smaller than the release but the same performance.

Money_YaY!
Posts: 442
Joined: Wed Oct 23, 2002 2:47 pm

Post by Money_YaY! » Tue Jul 12, 2005 12:47 am

heh I had forgotten that was supported :P

I get
makesdna has exited with status 1.
[Session started at 2005-07-11 18:37:07 -0400.]
Usage: /Users/raven/bl/blender/make/xc_blender/build/makesdna outfile.c

makesdna has exited with status 1.

Post Reply