[vtkusers] UnsatisfiedLinkError corrected ... new problem appears

Clayton Springer csprin at ca.sandia.gov
Wed Oct 25 19:55:19 EDT 2000


Dear Java vtkers,

I had the UnsatisfiedLinkError problem. 

I got rid of that error by changing the Makefile in /java


libvtkJava$(SHLIB_SUFFIX): 
	$(CXX) ${CXX_FLAGS} ${VTK_SHLIB_BUILD_FLAGS} \
	-o libvtkJava$(SHLIB_SUFFIX) -L. ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext  -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm ${JAVA_CXX_LIB}

install: all
	@echo "Installing libvtkJava$(SHLIB_SUFFIX)"
	${INSTALL} -m 555 libvtkJava$(SHLIB_SUFFIX) $(LIB_INSTALL_DIR)/vtk/java


Changing the install script makes very nervous.

I used this by typing 'gmake' in the java directory.

------------ Part 2 ------------

I am able to compile and run Regression, but the cone only flashes for a moment.
And sphere.java core dumps.

Does anybody have the equilivant of Cone, or Mace around?


------------- Part 3 -----------


I still can't get it to work using the --with-java

when I do that I get these errors:

../common/libVTKCommon.so: undefined reference to `pthread_create'
/usr/local/lib/libMesaGL.so: undefined reference to `pthread_getspecific'
/usr/local/lib/libMesaGL.so: undefined reference to `pthread_once'
/usr/local/lib/libMesaGL.so: undefined reference to `pthread_key_create'
../common/libVTKCommon.so: undefined reference to `pthread_join'
/usr/local/lib/libMesaGL.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
gmake[1]: *** [vtk] Error 1
gmake[1]: Leaving directory `/home/csprin/downloads/vtk/vtk31/tcl'
gmake: *** [build_tcl] Error 2



My system:

RedHat 6.2, running Mesa3.0




More information about the vtkusers mailing list