From: K. U. <u.k...@gm...> - 2010-07-21 02:14:56
Attachments:
config.log.bz2
build.log.bz2
|
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 |
From: K. U. <u.k...@gm...> - 2010-07-24 07:46:51
|
Hi, I found same problem in macports ticket . https://svn.macports.org/ticket/25782 It said " gtkglext @1.2.0_4 is not compatible with gtk2 @2.20.1_0 as revealed in ticket:25160. See the thread at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585155 for further info. " I'm try to build locally with debian patch. -- K. Uebayashi |
From: K. U. <u.k...@gm...> - 2010-07-24 14:17:40
Attachments:
python.log.bz2
|
Hi, Used this patch, https://build.opensuse.org/package/view_file?file=gtkglext-deprecated_macros.patch&package=gtkglext&project=home%3Acwh , I fixed gtkglext @1.2.0_4(MacPorts) bug in my local MacOSX. The bug(https://svn.macports.org/ticket/25160) is removed, so ghemical runs. # Although removing the gtkglext bug, Visualpython does not run with my patch for OSX_CPPFLAGS & $(GTHREAD_LIBS) visual-5.32_release has been build, but in the build directory(visual-5.32_release/site-packages) I can not import visual. When I import visual in python prompt, python is clashed. Is it the only way to use source-built visualpython in MacOSX? I attached "python -v" log after importing visual. -- K. Uebayashi |
From: Bruce S. <bas...@nc...> - 2010-07-24 20:23:33
|
I'm not competent to comment on the other issues you raise, but the answer to the question below is no, you can run VPython on MacOSX by installing the binaries available on the Mac download page at vpython.org. Or you can use the packages available in fink. It is not necessary to build from source to be able to use VPython on the Mac. Bruce Sherwood On Sat, Jul 24, 2010 at 8:17 AM, K. Uebayashi <u.k...@gm...> wrote: > > Is it the only way to use source-built visualpython in MacOSX? > |
From: K. U. <u.k...@gm...> - 2010-08-01 14:47:46
|
Hi, all I summarize my situation. # I can NOT use fink package because of proxy. 0. Using packages from macports gtkglext @1.2.0_4 (active) gtkglextmm @1.2.0_0 (active) py26-numpy @1.4.1_1+gcc44+no_atlas (active) python26 @2.6.5_3+universal (active) 1. Using visual-5.32_release.tar.gz 2. Adding the patch. (attached [patch.txt]; these is some change before) 3. Executing "./configure --prefix=/opt/local && make"", I have built cvisualmodule.so in site-packages. 4. "cd site-packages" and "import visual" in python prompt cause the crash(attached [py.log with 'python -vv']); $ python Python 2.6.5 (r265:79063, Jul 24 2010, 17:00:40) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import visual Python(62032) malloc: *** error for object 0x1030cf6c0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap 6. the situation is same as in cvs source. Could I avoid this crush with using macports ? Where should I check ? thanks, 2010/7/25 Bruce Sherwood <bas...@nc...>: > I'm not competent to comment on the other issues you raise, but the > answer to the question below is no, you can run VPython on MacOSX by > installing the binaries available on the Mac download page at > vpython.org. Or you can use the packages available in fink. It is not > necessary to build from source to be able to use VPython on the Mac. > > Bruce Sherwood > > On Sat, Jul 24, 2010 at 8:17 AM, K. Uebayashi <u.k...@gm...> wrote: > >> >> Is it the only way to use source-built visualpython in MacOSX? >> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > -- K. Uebayashi |