I'm building the head [https://github.com/tpaviot/oce.git] on an up-to-date Mac system [10.8.3].
The directions in the wiki [https://github.com/tpaviot/oce/wiki/Build-%28Mac-OSX%29] tell you to modify your system by adding a symlink from X11 into /usr/local. I respectfully suggest that's a bad idea, and that OCE should work without modifying the system.
All that's missing for CMake to find the X11 includes is:
INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
It could go in a number of places, all the way up to the top CMakeLists.txt (after FIND_PACKAGE X11)
The patch below is where I decided to put it. Please add it where you deem appropriate. (I'll test on my X11-symlink-free McSystem.)
I'd like to see pythonocc be included in MacPorts. This is an early step toward that goal.
Thanks,
-Greg
diff --git a/adm/cmake/BuildToolkit.cmake b/adm/cmake/BuildToolkit.cmake
index 3327d08..ecacd1f 100644
--- a/adm/cmake/BuildToolkit.cmake
+++ b/adm/cmake/BuildToolkit.cmake
@@ -161,6 +161,8 @@ FOREACH(MODULE ${TOOLKIT_MODULES})
IF (WIN32)
# For compilers under Windows a define must be set per file to c
ADD_DEFINITIONS("-D__${MODULE}_DLL")
+ ELSE(WIN32)
+ INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
ENDIF(WIN32)
SOURCE_GROUP (${MODULE} FILES ${source_files})
--
You received this message because you are subscribed to the Google Groups "oce-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oce-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I'm building the head [https://github.com/tpaviot/oce.git] on an up-to-date Mac system [10.8.3].
The directions in the wiki [https://github.com/tpaviot/oce/wiki/Build-%28Mac-OSX%29] tell you to modify your system by adding a symlink from X11 into /usr/local. I respectfully suggest that's a bad idea, and that OCE should work without modifying the system.
All that's missing for CMake to find the X11 includes is:
INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
It could go in a number of places, all the way up to the top CMakeLists.txt (after FIND_PACKAGE X11)
The patch below is where I decided to put it. Please add it where you deem appropriate. (I'll test on my X11-symlink-free McSystem.)
I'd like to see pythonocc be included in MacPorts. This is an early step toward that goal.
Thanks,
-Greg
diff --git a/adm/cmake/BuildToolkit.cmake b/adm/cmake/BuildToolkit.cmake
index 3327d08..ecacd1f 100644
--- a/adm/cmake/BuildToolkit.cmake
+++ b/adm/cmake/BuildToolkit.cmake
@@ -161,6 +161,8 @@ FOREACH(MODULE ${TOOLKIT_MODULES})
IF (WIN32)
# For compilers under Windows a define must be set per file to c
ADD_DEFINITIONS("-D__${MODULE}_DLL")
+ ELSE(WIN32)
+ INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
ENDIF(WIN32)
SOURCE_GROUP (${MODULE} FILES ${source_files})
I'm fairly familiar with MacPorts, and think I could contribute "ports" such that someone could type...
$ sudo port install py27-pythonocc
... to compile and install pythonocc and its dependencies.
I've never used the binaries feature, but suspect that's not much effort once MacPorts can compile the packages. [I didn't think binaries were new.]
I'm willing to continue to investigate MacPorts-ifying OCE/pyocc in my "free time". :)