Patrick Dähne wrote: > Hello Daniel, > >> Will an OS X version of OpenSG 1.6 be released? There are builds for >> many versions of Linux and *even* IRIX on the downloads page. As of >> now, I can build it on OS X but I can't use the compiled version >> because of gcc compile errors in the OpenSG header files.... Has >> anyone looked into this? I have seen some traffic on the list about >> OS X but it seems that nothing has been done for it. > > > I'm using OpenSG on Mac OS X 10.4 without any problems. You should post > your gcc compile error messages to this mailing list. > > Bye, > > Patrick
I had to patch OpenSG to get it to compile on OS X 10.4. I have attached the patch, which has remained unchanged during the last two months. Aside from these changes, I have to include -Ddarwin on the compile line for everything that I build against OpenSG on OS X. This has been the case for me since I first started tinkering with OpenSG on OS X back in January or February. This particular issue is something that I have pointed at least twice on this list, but it seems as though there has been some hesitation to switch OpenSG to testing for __APPLE__ or to modifying osg-config so that it adds -Ddarwin to the compiler flags by default on OS X. -Patrick -- Patrick L. Hartling | VP Engineering, Infiscape Corp. PGP: http://tinyurl.com/2msw3 | http://www.infiscape.com/
Index: CommonConf/common.libs.in
===================================================================
RCS file: /cvsroot/opensg/OpenSG/CommonConf/common.libs.in,v
retrieving revision 1.68
diff -u -r1.68 common.libs.in
--- CommonConf/common.libs.in 9 May 2005 09:06:39 -0000 1.68
+++ CommonConf/common.libs.in 22 Sep 2005 14:36:31 -0000
@@ -7,7 +7,7 @@
#Experimental "
ac_gdz_package_name_Base="Base"
-ac_gdz_package_dirs_Base="Base/Base@ Base/Field@ Base/Functors@
Base/StringConversion@ Base/Network/Base@ Base/Network/Socket@ Base/Xml@
Base/OSHelpers/[EMAIL PROTECTED]"
+ac_gdz_package_dirs_Base="Base/Base@ Base/Field@ Base/Functors@
Base/StringConversion@ Base/Network/Base@ Base/Network/Socket@ Base/Xml@ "
ac_gdz_package_inc_dep_Base="GL"
ac_gdz_package_link_dep_Base=""
ac_gdz_package_testinc_dep_Base=""
Index: CommonConf/common.powerpc-apple-darwin-c++.in
===================================================================
RCS file: /cvsroot/opensg/OpenSG/CommonConf/common.powerpc-apple-darwin-c++.in,v
retrieving revision 1.4
diff -u -r1.4 common.powerpc-apple-darwin-c++.in
--- CommonConf/common.powerpc-apple-darwin-c++.in 24 May 2004 03:34:37
-0000 1.4
+++ CommonConf/common.powerpc-apple-darwin-c++.in 22 Sep 2005 14:36:31
-0000
@@ -64,7 +64,7 @@
ifeq ($(LNK),)
#-dynamic
-COMPILER := $(COMPILER) -fno-common -fPIC -fexport-coalesced
+COMPILER := $(COMPILER) -fno-common -fPIC
endif
### Optimize / Debug ###############################################
Index: CommonConf/common.powerpc-apple-darwin-g++.in
===================================================================
RCS file: /cvsroot/opensg/OpenSG/CommonConf/common.powerpc-apple-darwin-g++.in,v
retrieving revision 1.3
diff -u -r1.3 common.powerpc-apple-darwin-g++.in
--- CommonConf/common.powerpc-apple-darwin-g++.in 24 May 2004 03:34:37
-0000 1.3
+++ CommonConf/common.powerpc-apple-darwin-g++.in 22 Sep 2005 14:36:31
-0000
@@ -62,7 +62,7 @@
COMPILER =
ifeq ($(LNK),)
-COMPILER := $(COMPILER) -fno-common -fPIC -fexport-coalesced
+COMPILER := $(COMPILER) -fno-common -fPIC
endif
### Optimize / Debug ###############################################
Index: CommonConf/common.powerpc-apple-darwin-g++3.in
===================================================================
RCS file:
/cvsroot/opensg/OpenSG/CommonConf/common.powerpc-apple-darwin-g++3.in,v
retrieving revision 1.3
diff -u -r1.3 common.powerpc-apple-darwin-g++3.in
--- CommonConf/common.powerpc-apple-darwin-g++3.in 24 May 2004 03:34:37
-0000 1.3
+++ CommonConf/common.powerpc-apple-darwin-g++3.in 22 Sep 2005 14:36:31
-0000
@@ -62,7 +62,7 @@
COMPILER =
ifeq ($(LNK),)
-COMPILER := $(COMPILER) -fno-common -fPIC -fexport-coalesced
+COMPILER := $(COMPILER) -fno-common -fPIC
endif
### Optimize / Debug ###############################################
Index: Source/Base/Network/Socket/OSGSocket.h
===================================================================
RCS file: /cvsroot/opensg/OpenSG/Source/Base/Network/Socket/OSGSocket.h,v
retrieving revision 1.4
diff -u -r1.4 OSGSocket.h
--- Source/Base/Network/Socket/OSGSocket.h 30 Jan 2004 12:01:16 -0000
1.4
+++ Source/Base/Network/Socket/OSGSocket.h 22 Sep 2005 14:36:35 -0000
@@ -142,7 +142,7 @@
/*! Socket length type. Used to hide the different interface
implementations
**/
-#if defined __linux
+#if defined __linux || defined(__APPLE__)
typedef socklen_t SocketLenT;
#else
typedef int SocketLenT;
signature.asc
Description: OpenPGP digital signature
