From: K. U. <u.k...@gm...> - 2010-07-21 02:14:56
|
Hi, I made this patch (now I'm using 5-3.2), ================ --- visual-5.32_releaseORIG/src/Makefile.in 2010-01-31 05:31:57.000000000 +0900 +++ visual-5.32_release/src/Makefile.in 2010-07-21 07:27:31.000000000 +0900 @@ -43,7 +43,8 @@ # Prevent using the broken Apple C preprocessor, # silence a warning from Python 2.3, which uses a long double for padding # in an inconvient place for Apple's GCC. -OSX_CPPFLAGS = #-no-cpp-precomp -fno-common -Wno-long-double +OSX_CPPFLAGS = -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include \ + #-no-cpp-precomp -fno-common -Wno-long-double # System configuration variables for Unix-like systems GTK_LIBS = @GTK_LIBS@ @@ -115,7 +116,7 @@ # and not another one with a similar name that you happen to fancy"), but it isn't. # On Leopard (10.5), it must be used whenever you link with /usr/X11/lib/libGL.dylib # (even indirectly, for example by linking with libgtkgl-2.0.dylib)." -_OSX_SORULE = $(CXX) -v -bundle -bundle_loader $(PYTHON) \ +_OSX_SORULE = $(CXX) -v -bundle -undefined dynamic_lookup \ $(CVISUAL_LDFLAGS) $(LDFLAGS) -o $@ $^ $(CVISUAL_LIBS) $(LIBS) \ -Wl,-exported_symbols_list,$(srcdir)/osx-symbols.txt \ -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib @@ -199,7 +200,7 @@ ifeq ($(PYTHON_PLATFORM),darwin) # Special rules for OSX CVISUAL_LIBS += $(filter-out $(_FILTER_OUT), $(GTK_LIBS) \ - $(GTHREAD_LIBS) /sw/lib/libboost_python-mt.a -lboost_thread-mt -lboost_signals) + $(GTHREAD_LIBS) /opt/local/lib/libboost_python-mt.a -lboost_thread-mt -lboost_signals) CXX_RULE = $(DEFAULT_CXX_RULE) LINK_RULE = $(OSX_SORULE) PLATFORM_TARGET = cvisualmodule.so =========== and , $ ./configure --prefix=/opt/local $ make , so they work.(I attached config.log & build.log) As I try to use visual python in site-packages/ directory, $ python Python 2.6.5 (r265:79063, Jul 9 2010, 16:00:04) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import visual Traceback (most recent call last): File "<stdin>", line 1, in <module> File "visual/__init__.py", line 59, in <module> import cvisual ImportError: dlopen(./cvisualmodule.so, 2): Symbol not found: _GTK_WIDGET_NO_WINDOW Referenced from: /opt/local/lib/libgtkglext-x11-1.0.0.dylib Expected in: flat namespace in /opt/local/lib/libgtkglext-x11-1.0.0.dylib >>> . These are new error message. Did I build visual python correctly with my patch ? Can I remove the new error message ? -- K. Uebayashi |