Hi, I’ve responded to your issue via the GitHub page, but I’ll post my response here for the records:
It looks like your compilation is missing the -lGLU -lGL library flags. You should check mris_show/Makefile to make sure that GL_LIBS and GLU_LIBS have been set: grep -e GLU_LIBS -e GL_LIBS mris_show/Makefile If not, it's possible that you just need to install these libs with "yum install mesa-libGL-devel mesa-libGLU-devel" and reconfigure. You can also check this by inspecting the configure output for "GL found" and "GLu found" best, Andrew On Dec 22, 2017, at 12:04 PM, Melvin Robinson <[email protected]<mailto:[email protected]>> wrote: 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 [email protected]<mailto:[email protected]> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
_______________________________________________ Freesurfer mailing list [email protected] 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.
