Ticket #66 (assigned defect)

Opened 2 years ago

Last modified 2 years ago

OS X build broken

Reported by: dshipton Assigned to: anonymous (accepted)
Priority: critical Milestone: 2.0 Beta
Component: Build Version: 2.0
Keywords: Cc:
Completion:

Description

scons: Reading SConscript files …


WARNING: The build is currently in development.

  • It needs the svn version of scons-addons

WARNING: Building OpenSG 2.0.0-pre1 Checking for arch [ppc64] …yes Checking for arch [ia32] …yes Valid archs: ['ppc', 'ppc64', 'ia32'] Updating boost Loading initial settings for boost

BoostBaseDir? specified or cached. /usr/local/vrjuggler-deps. Boost, autofinding toolset… toolset: [darwin] Searching for correct boost include dir… found: /usr/local/vrjuggler-deps/include boost header path: /usr/local/vrjuggler-deps/include boost version: 1.33.0

Checking for: glut Checking for main() in C++ library glut… no Validation failed for option: glut Checking for: jpeg Checking for main() in C++ library jpeg… no Validation failed for option: jpeg Checking for: tiff Checking for main() in C++ library tiff… no Validation failed for option: tiff Checking for: png Checking for main() in C++ library png… no Validation failed for option: png Checking for: zlib Checking for main() in C++ library z… yes Scanning libraries: ……….. Setting stuff in OSGImageFileIO area ……………. found 12 libraries NameError?: global name 'NoClean?' is not defined:

File "SConstruct", line 453:

addScanParseSkel(common_env)

File "SConstruct", line 115:

NoClean(yfiles)

Change History

09/27/06 13:59:19 changed by allenb

  • owner changed from unassigned to anonymous.
  • status changed from new to assigned.

You need to use scons 0.96.92 or greater.

Give that a try and see if it makes it further.

09/28/06 09:53:47 changed by dshipton

It makes it further.

g++ -o build.darwin/type-debug—arch-ppc/Source/Base/Base/OSGBaseFunctions.os -c -g -I/usr/local/vrjuggler-deps/include -arch ppc -arch i386 -arch ppc64 -fPIC -D_DEBUG -DOSG_BUILD_DLL -DOSG_COMPILEBASELIB -Ibuild.darwin/instlinks/include -Ibuild.darwin/instlinks/include/OpenSG Source/Base/Base/OSGBaseFunctions.cpp In file included from Source/Base/Base/OSGBaseFunctions.cpp:43: Source/Base/Base/OSGConfig.h:130:2: error: #error Endian determination : could not guess your plattform In file included from Source/Base/Base/OSGBaseFunctions.cpp:43: Source/Base/Base/OSGConfig.h:130:2: error: #error Endian determination : could not guess your plattform In file included from Source/Base/Base/OSGBaseFunctions.cpp:43: Source/Base/Base/OSGConfig.h:130:2: error: #error Endian determination : could not guess your plattform Source/Base/Base/OSGBaseTypeTraits.h: In static member function 'static GLenum OSG::TypeTraits<GLenum>::getFromCString(const OSG::Char8*, OSG::Char8*&)': Source/Base/Base/OSGBaseTypeTraits.h:1360: error: cannot convert 'OSG::Char8*' to 'char**' for argument '2' to 'long unsigned int strtoul(const char*, char**, int)' Source/Base/Base/OSGBaseTypeTraits.h: In static member function 'static GLenum OSG::TypeTraits<GLenum>::getFromCString(const OSG::Char8*, OSG::Char8*&)': Source/Base/Base/OSGBaseTypeTraits.h:1360: error: cannot convert 'OSG::Char8*' to 'char**' for argument '2' to 'long unsigned int strtoul(const char*, char**, int)' Source/Base/Base/OSGBaseFunctions.inl: In function 'TypeT OSG::osgnextpower2(TypeT) [with TypeT = size_t]': Source/Base/Base/OSGBaseFunctions.inl:1407: warning: right shift count ≥ width of type Source/Base/Base/OSGBaseTypeTraits.h: In static member function 'static GLenum OSG::TypeTraits<GLenum>::getFromCString(const OSG::Char8*, OSG::Char8*&)': Source/Base/Base/OSGBaseTypeTraits.h:1360: error: cannot convert 'OSG::Char8*' to 'char**' for argument '2' to 'long unsigned int strtoul(const char*, char**, int)' Source/Base/Base/OSGBaseFunctions.inl: In function 'TypeT OSG::osgnextpower2(TypeT) [with TypeT = size_t]': Source/Base/Base/OSGBaseFunctions.inl:1407: warning: right shift count ≥ width of type lipo: can't figure out the architecture type of: /var/tmp//ccaut5lq.out scons: *** [build.darwin/type-debug—arch-ppc/Source/Base/Base/OSGBaseFunctions.os] Error 1 scons: building terminated because of errors.

09/28/06 10:17:39 changed by allenb

  • priority changed from major to critical.
  • milestone set to 2.0 Beta.

Looks like OpenSG2 doesn't know about OSX yet. Can you take a look at the OSGConfig.h file and tell it about OSX. You may be able to look at the OSGConfig.h file in OpenSG 1.x to get ideas of what is needed in there.

09/28/06 14:59:18 changed by dirk

Lacking a MacOS box I can't try this. Can you try replacing the defined(APPLE) in OSGConfig.h with a defined(APPLE)? I have no clue which one is the official one, but that would be worth a try. If it works, please check it in.

Thanks

Dirk

10/02/06 14:03:21 changed by dshipton

First few errors go away…but…

dinghy:~/Projects/opensg2 dshipton$ scons scons: Reading SConscript files …


WARNING: The build is currently in development.

  • It needs the svn version of scons-addons

WARNING: Building OpenSG 2.0.0-pre1 Checking for arch [ppc64] …(cached) yes Checking for arch [ia32] …(cached) yes Valid archs: ['ppc', 'ppc64', 'ia32'] Updating boost Loading initial settings for boost

BoostBaseDir? specified or cached. /usr/local/vrjuggler-deps. BoostIncludeDir? specified or cached. /usr/local/vrjuggler-deps/include. Boost, autofinding toolset… toolset: [darwin] boost header path: /usr/local/vrjuggler-deps/include boost version: 1.33.0

Checking for: glut Checking for main() in C++ library glut… (cached) no Validation failed for option: glut Checking for: jpeg Checking for main() in C++ library jpeg… (cached) no Validation failed for option: jpeg Checking for: tiff Checking for main() in C++ library tiff… (cached) no Validation failed for option: tiff Checking for: png Checking for main() in C++ library png… (cached) no Validation failed for option: png Checking for: zlib Checking for main() in C++ library z… (cached) yes Scanning libraries: ……………………… found 12 libraries Using prefix: /Users/dshipton/Projects/opensg2/build.darwin/instlinks

Processing combo: type:debug, arch:ppc

OSGState missing test dep library: OSGWindowGLUT OSGRenderTraversal OSGWindow OSGFileIO OSGText missing test dep library: OSGWindowGLUT OSGGroup missing test dep library: OSGWindowGLUT OSGWindowX OSGUtil missing test dep library: OSGWindowGLUT OSGImageFileIO missing test dep library: OSGWindowGLUT OSGBase OSGSystem OSGDrawable missing test dep library: OSGWindowGLUT

Processing combo: type:optimized, arch:ppc

OSGState missing test dep library: OSGWindowGLUT OSGRenderTraversal OSGWindow OSGFileIO OSGText missing test dep library: OSGWindowGLUT OSGGroup missing test dep library: OSGWindowGLUT OSGWindowX OSGUtil missing test dep library: OSGWindowGLUT OSGImageFileIO missing test dep library: OSGWindowGLUT OSGBase OSGSystem OSGDrawable missing test dep library: OSGWindowGLUT

scons: done reading SConscript files. scons: Building targets … Install file: "Source/Base/Base/OSGConfig.h" as "build.darwin/instlinks/include/OpenSG/OSGConfig.h" g++ -o build.darwin/type-debug—arch-ppc/Source/Base/Base/OSGBaseFunctions.os -c -g -I/usr/local/vrjuggler-deps/include -arch ppc -arch i386 -arch ppc64 -fPIC -D_DEBUG -DOSG_COMPILEBASELIB -Ibuild.darwin/instlinks/include -Ibuild.darwin/instlinks/include/OpenSG Source/Base/Base/OSGBaseFunctions.cpp Source/Base/Base/OSGBaseTypeTraits.h: In static member function 'static GLenum OSG::TypeTraits<GLenum>::getFromCString(const OSG::Char8*, OSG::Char8*&)': Source/Base/Base/OSGBaseTypeTraits.h:1360: error: cannot convert 'OSG::Char8*' to 'char**' for argument '2' to 'long unsigned int strtoul(const char*, char**, int)' Source/Base/Base/OSGBaseTypeTraits.h: In static member function 'static GLenum OSG::TypeTraits<GLenum>::getFromCString(const OSG::Char8*, OSG::Char8*&)': Source/Base/Base/OSGBaseTypeTraits.h:1360: error: cannot convert 'OSG::Char8*' to 'char**' for argument '2' to 'long unsigned int strtoul(const char*, char**, int)' Source/Base/Base/OSGBaseTypeTraits.h: In static member function 'static GLenum OSG::TypeTraits<GLenum>::getFromCString(const OSG::Char8*, OSG::Char8*&)': Source/Base/Base/OSGBaseTypeTraits.h:1360: error: cannot convert 'OSG::Char8*' to 'char**' for argument '2' to 'long unsigned int strtoul(const char*, char**, int)' Source/Base/Base/OSGBaseFunctions.inl: In function 'TypeT OSG::osgnextpower2(TypeT) [with TypeT = size_t]': Source/Base/Base/OSGBaseFunctions.inl:1407: warning: right shift count ≥ width of type Source/Base/Base/OSGBaseFunctions.inl: In function 'TypeT OSG::osgnextpower2(TypeT) [with TypeT = size_t]': Source/Base/Base/OSGBaseFunctions.inl:1407: warning: right shift count ≥ width of type lipo: can't figure out the architecture type of: /var/tmp//ccoSaoNi.out scons: *** [build.darwin/type-debug—arch-ppc/Source/Base/Base/OSGBaseFunctions.os] Error 1 scons: building terminated because of errors. dinghy:~/Projects/opensg2 dshipton$

10/02/06 14:15:46 changed by dirk

Base/OSGBaseTypeTraits.h:1360: error: cannot convert 'OSG::Char8*' to 'char**' for argument '2' to 'long unsigned int strtoul(const char*, char**, int)'

That's weird. The parameter is a Char8 *&, and its address is passed, so that should be a Char8 **, which is a char **. What's the compiler version that you have?

10/02/06 20:21:17 changed by dshipton

The newest gcc that Apple ships, 4.0.1

10/06/06 15:32:13 changed by dshipton

I have gotten it to the point where it tries to link the first library. It doesn't link against the frameworks for GL and glut so Scons needs to be smarter about this.

10/11/06 09:20:30 changed by dshipton