I posted this to the Freesurfer github site, but didn't exactly know if that 
was the most appropriate place.


The Freesurfer build fails at this command:
libtool: link: g++ -fdata-sections -ffunction-sections -Wl,--gc-sections 
-Wl,-Map -Wl,ld_map.txt -Wl,--no-demangle -o mris_show mris_show.o 
/usr/lib64/libuuid.so 
-L/home/melrobin/packages/centos6-x86_64-packages/qt/current/lib -L/usr/lib64
-L/usr/X11R6/lib64 
-L/home/melrobin/packages/centos6-x86_64-packages//mni/current/lib 
-L/home/melrobin/packages/centos6-x86_64-packages//vxl/current/lib 
-L/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit
 ../utils/libutils.a ../minc_substitute/libminc_substitute.a 
../fsgdf/libfsgdf.a ../rgb/librgb.a ../unix/libunix.a ../dicom/libdicom.a 
../hipsstubs/libhipsstubs.a ../log/liblog.a ../xml2/libxml2.a ../jpeg/libjpeg.a 
../tiff/libtiff.a ../expat/libexpat.a ../glut/libglut.a -L/lib64 -lX11 -lXmu 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libITKIO.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libITKAlgorithms.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libITKCommon.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libITKNumerics.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libITKMetaIO.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libITKniftiio.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libITKNrrdIO.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitkpng.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitksys.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitktiff.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitkv3p_netlib.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitkzlib.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitkgdcm.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitkopenjpeg.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitkjpeg8.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitkjpeg12.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libitkjpeg16.a
 
/home/melrobin/packages/centos6-x86_64-packages//itk/current/lib/InsightToolkit/libITKDICOMParser.a
 -lz -lm -lcrypt -ldl -lpthread 
/home/melrobin/packages/centos6-x86_64-packages//mni/current/lib/libvolume_io.a 
/home/melrobin/packages/centos6-x86_64-packages//mni/current/lib/libminc.a 
/home/melrobin/packages/centos6-x86_64-packages//mni/current/lib/libnetcdf.a 
-lvnl_algo -lvnl -lvcl -lnetlib -lv3p_netlib

and produces lots of these types of errors
/home/melrobin/packages/freesurfer/mris_show/mris_show.c:878: undefined 
reference to glViewport' mris_show.o: In functionspecial_key_handler':
/home/melrobin/packages/freesurfer/mris_show/mris_show.c:923: undefined 
reference to glMatrixMode' 
/home/melrobin/packages/freesurfer/mris_show/mris_show.c:937: undefined 
reference toglRotatef'
/home/melrobin/packages/freesurfer/mris_show/mris_show.c:955: undefined 
reference to glRotatef' 
/home/melrobin/packages/freesurfer/mris_show/mris_show.c:945: undefined 
reference toglRotatef'
/home/melrobin/packages/freesurfer/mris_show/mris_show.c:951: undefined 
reference to glRotatef' 
/home/melrobin/packages/freesurfer/mris_show/mris_show.c:933: undefined 
reference toglRotatef'



The build seems not to include the OpenGL libraries when building mris_show as 
you can see from the link line. I'm trying to trace this up the Autotools 
chain, but need some help. I can work a little more on a fix with a little 
guidance telling me where to look.

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Reply via email to