SIVICLab / sivic

SIVIC is an open-source, standards-based software framework and application suite for processing and visualizing DICOM MR Spectroscopy data. Through the use of DICOM, SIVIC aims to facilitate the application of MRS in medical imaging studies. The SIVIC code repository lives on github but our user portal is on sourceforge.
https://sourceforge.net/p/sivic/sivicwiki/Home/
Other
29 stars 14 forks source link

Additional App issues SIVIC #85

Closed jedchan closed 6 months ago

jedchan commented 6 months ago

Command Line tools options - the ones in bold are working. need to verify others.

BUILD_APPS ON BUILD_CLAPACK ON BUILD_CREATE_RAW ON BUILD_EPIC OFF BUILD_EXAMPLES OFF BUILD_GE_CONSOLE OFF BUILD_ITK ON BUILD_LIBRARY ON BUILD_OSIRIX OFF BUILD_PROFILER OFF BUILD_SIVIC ON BUILD_SLICER OFF BUILD_TESTING OFF BUILD_TESTS OFF BUILD_VIZ_LIBRARY ON UCSF_INTERNAL ON

jedchan commented 6 months ago

Needed for VTK 6.0 https://stackoverflow.com/a/28761703

The solution is to define GLX_GLXEXT_LEGACY during the build. This is done but commented in the file Rendering/vtkXOpenGLRenderWindow.cxx for VTK 5.x or Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx for VTK 6.x.

Either uncomment the line (this is for example an ArchLinux patch for the package):

--- a/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx.orig  2014-11-23 22:16:50.000000000 +0100
+++ b/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx   2014-11-23 22:16:59.000000000 +0100
@@ -27,7 +27,7 @@

 // define GLX_GLXEXT_LEGACY to prevent glx.h to include glxext.h provided by
 // the system
-//#define GLX_GLXEXT_LEGACY
+#define GLX_GLXEXT_LEGACY
 #include "GL/glx.h"

 #include "vtkgl.h"

Or, if you don't want to be invasive on the source code, you can add the flags to the compiler command line. For example by adding -DCMAKE_C_FLAGS=-DGLX_GLXEXT_LEGACY -DCMAKE_CXX_FLAGS=-DGLX_GLXEXT_LEGACY to your cmake command line. Your cmake command will look like:

cmake -DCMAKE_C_FLAGS=-DGLX_GLXEXT_LEGACY -DCMAKE_CXX_FLAGS=-DGLX_GLXEXT_LEGACY -Wno-dev ../VTK
jedchan commented 6 months ago

Need to Identify these BUILD options for SIVIC

BUILD_EPIC OFF <- This fails to build. Fails at linker stage when linking ITK 4.4.1 library. Probably Important. BUILD_EXAMPLES OFF <- ???? Not Needed ??? BUILD_GE_CONSOLE OFF <- This fails to build. Probably Important.

BUILD_OSIRIX OFF <- Osirix plugin? This fails to build. i386 has been removed from newer versions of OSX. BUILD_PROFILER OFF <- ???? Not Needed ??? For Debug ????

BUILD_SLICER OFF <- Slicer Plugin? This fails to build. BUILD_TESTING OFF <- ???. This fails to build BUILD_TESTS OFF <- ??>. This fails to build.

jedchan commented 6 months ago

BUILD_EPIC - linker error with ITK-4.4.1. BUILD_GE_CONSOLE - Requires SIVIC test data folder and GE build tools.

jedchan commented 6 months ago

So far all the internal tools are completely built. closing for now.