Geomview port does not work with xorg-libs of MacPorts

Raphael Straub raphael at ira.uka.de
Tue Jan 27 02:34:05 PST 2009


Jeremy Huddleston wrote:
> On Jan 22, 2009, at 11:30, Raphael Straub wrote:
>
>> Yes, some libraries in ${prefix}/lib are still linked against /usr/ 
>> X11/lib/*. For example, libXm.4.0.1.dylib (openmotif) and libXaw3d. 
>> 8.0.dylib (Xaw3d). In both cases a complete rebuild of these  
>> libraries does not help.
>
> Those ports have now been updated to link against the libs in  
> $prefix rather than $x11prefix

Thanks, Jeremy!

Now, I have a geomview version that uses only MacPorts' X11 libraries:

 > otool -L /opt/local/geomview/gvx
/client/libexec/geomview/gvx:
	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ 
libGL.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libXm.4.dylib (compatibility version 5.0.0, current  
version 5.1.0)
	/opt/local/lib/libXp.6.dylib (compatibility version 9.0.0, current  
version 9.0.0)
	/opt/local/lib/libXft.2.dylib (compatibility version 4.0.0, current  
version 4.13.0)
	/opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0,  
current version 5.0.0)
	/opt/local/lib/libfontconfig.1.dylib (compatibility version 5.0.0,  
current version 5.0.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current  
version 7.0.0)
	/opt/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current  
version 7.2.0)
	/opt/local/lib/libfreetype.6.dylib (compatibility version 10.0.0,  
current version 10.19.0)
	/opt/local/lib/libjpeg.62.dylib (compatibility version 63.0.0,  
current version 63.0.0)
	/opt/local/lib/libpng12.0.dylib (compatibility version 35.0.0,  
current version 35.0.0)
	/opt/local/lib/libXmu.6.dylib (compatibility version 9.0.0, current  
version 9.0.0)
	/opt/local/lib/libgeomview-1.9.4.dylib (compatibility version 0.0.0,  
current version 0.0.0)
	/opt/local/lib/libGL.1.dylib (compatibility version 1.2.0, current  
version 1.2.0)
	/opt/local/lib/libGLU.1.dylib (compatibility version 1.3.0, current  
version 1.3.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current  
version 1.2.3)
	/opt/local/lib/libXt.6.dylib (compatibility version 7.0.0, current  
version 7.0.0)
	/opt/local/lib/libSM.6.dylib (compatibility version 7.0.0, current  
version 7.0.0)
	/opt/local/lib/libICE.6.dylib (compatibility version 10.0.0, current  
version 10.0.0)
	/opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current  
version 11.0.0)
	/opt/local/lib/libX11.6.dylib (compatibility version 9.0.0, current  
version 9.0.0)
	/opt/local/lib/libXau.6.dylib (compatibility version 7.0.0, current  
version 7.0.0)
	/opt/local/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current  
version 7.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current  
version 111.1.3)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current  
version 1.0.0)

But geomview still doesn't work. Starting geomview with the "-gdb"  
option gives the following error:

Warning: Widget must be a VendorShell.
Error: attempt to add non-widget child "dsm" to parent "gvx" which  
supports only widgets

This is a message from openmotif and it seems to be related to <http://trac.macports.org/ticket/18114 
 >. The Motif FAQ <http://www.faqs.org/faqs/motif-faq/part9/section-29.html 
 > says that this error comes from linking the libraries in the wrong  
order, but I don't see that this is the case here as libXm is the  
first library.

I linked geomview against the GL libraries provided by the mesa port,  
because they use libX11 from MacPorts and not /usr/X11/lib/ 
libX11.dylib like the GL libraries in /usr/X11. But I assume that mesa  
does not use hardware accelerated OpenGL as it does not use the OpenGL  
system framework. How can I use hardware accelerated OpenGL in X11  
applications?

Regards,
	Raphael
-- 
Raphael Straub                              E-Mail: raphael at ira.uka.de
Universität Karlsruhe                       Tel.  : +49 721 608-4383
Institut für Betriebs- und Dialogsysteme    Fax   : +49 721 608-8330
Am Fasanengarten 5, 76128 Karlsruhe         Geb. 50.34, Raum 127



More information about the macports-dev mailing list