opendx: does not launch + Warning: violation by /opt/local/dx

Cédric Ody cedric.ody at
Thu Feb 5 04:51:39 PST 2009


I have succeeded in installing dx from the macports.

However, it can not launch and I have the following comment

 > dx
Error: attempt to add non-widget child "dsm" to parent "startupui"  
which supports only widgets

Also, I had the following comments in the building of dx:
bash-3.2$ sudo port install opendx
--->  Fetching opendx
--->  Verifying checksum(s) for opendx
--->  Extracting opendx
--->  Configuring opendx
--->  Building opendx
--->  Staging opendx into destroot
Warning: violation by /opt/local/dx
Warning: opendx violates the layout of the ports-filesystems!
Warning: Please fix or indicate this misbehavior (if it is intended),  
it will be an error in future releases!
--->  Installing opendx @4.4.4_1+darwin_9
--->  Activating opendx @4.4.4_1+darwin_9
--->  Cleaning opendx

Thanks by advance,


PS: It is the first time I use macports so I may have done something  
wrong. Note also that I have used this Portfile found on the macports  

# $Id: Portfile 40515 2008-10-04 23:18:28Z jmr at $

PortSystem 1.0
name		opendx
version		4.4.4
revision	1
categories	science
maintainers	gwright at
platforms	darwin

description	IBM's Open Visualization Data Explorer
long_description	\
		OpenDX is a uniquely powerful, full-featured software	\
		package for the visualization of scientific,		\
		engineering and analytical data: Its open system design	\
		is built on familiar standard interface environments.	\
		And its sophisticated data model provides users with	\
		great flexibility in creating visualizations.


checksums	md5 6da0c4cd21d3c08f97b7662e3aee5b7b

distname	dx-${version}

depends_lib	port:netcdf		\
		port:cdf		\
		port:cosmoplayer	\
		port:opendx-java40	\
		port:ImageMagick	\

platform darwin 9 {
     configure.cppflags-append -D_UINT64 -D_UINT32 -D_UINT16 -D_UINT8
     configure.ldflags-append 	-dylib_file \

variant no_java	{
		  depends_lib-delete	port:cosmoplayer
		  depends_lib-delete	port:opendx-java40
		  configure.args-delete --with-jni-path=/System/Library/Frameworks/ 
		  configure.args-delete --with-java40jar-path=${prefix}/share/java/ 
		  configure.args-delete --with-cosmojar-path=${prefix}/share/java/ 
		  configure.args-append	--without-javadx

# The configure.env variables are to make sure we use Apple's  
# java; the kaffe port will not work to build JavaDX.
configure.javac         /usr/bin/javac
configure.env-append	JAVA_HOME=/Library/Java/Home	\
		JAVA=/usr/bin/java		\
		JAVAH=/usr/bin/javah		\
configure.args	--x-includes=${x11prefix}/include	\
		--x-libraries=${x11prefix}/lib	\
		--with-jni-path=/System/Library/Frameworks/JavaVM.framework/Headers	\
		--with-java40jar-path=${prefix}/share/java/java40.jar	\

post-destroot	{
		  set fixers [ exec find ${destroot}${prefix} -type f | xargs grep - 
l /usr/lpp ]
		  foreach fil ${fixers} {
			reinplace "s|/usr/lpp|${prefix}|g" ${fil}

More information about the macports-users mailing list