Scubapro/Uwatec Smartrak .slg files importing tool

Pedro Neves nevesdiver at gmail.com
Thu Nov 12 09:38:09 PST 2015


Salva:

I've set the option(SMARTTRAK_IMPORT "enable building SmartTrak divelogs 
import tool (requires glib2 and libmdb)" to ON in CMakelists.txt and 
I've installed mdbtools-dev and libglib2.0-dev on my Kubuntu system 
(15.10). When running SS build script I get the following error:

Scanning dependencies of target smtk_import
[ 69%] Building C object smtk-import/CMakeFiles/smtk_import.dir/smartrak.c.o
In file included from 
/home/paneves/Diveapps/subsurface/smtk-import/smartrak.c:31:0:
/home/paneves/Diveapps/subsurface/subsurface-core/dive.h:14:0: warning: 
"MIN" redefined
  #define MIN(x, y) ({                \
  ^
In file included from 
/usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
                  from /usr/include/glib-2.0/glib/gtypes.h:32,
                  from /usr/include/glib-2.0/glib/galloca.h:32,
                  from /usr/include/glib-2.0/glib.h:30,
                  from /usr/include/mdbtools.h:33,
                  from 
/home/paneves/Diveapps/subsurface/smtk-import/smartrak.c:28:
/usr/include/glib-2.0/glib/gmacros.h:241:0: note: this is the location 
of the previous definition
  #define MIN(a, b)  (((a) < (b)) ? (a) : (b))
  ^
In file included from 
/home/paneves/Diveapps/subsurface/smtk-import/smartrak.c:31:0:
/home/paneves/Diveapps/subsurface/subsurface-core/dive.h:20:0: warning: 
"MAX" redefined
  #define MAX(x, y) ({                \
  ^
In file included from 
/usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
                  from /usr/include/glib-2.0/glib/gtypes.h:32,
                  from /usr/include/glib-2.0/glib/galloca.h:32,
                  from /usr/include/glib-2.0/glib.h:30,
                  from /usr/include/mdbtools.h:33,
                  from 
/home/paneves/Diveapps/subsurface/smtk-import/smartrak.c:28:
/usr/include/glib-2.0/glib/gmacros.h:238:0: note: this is the location 
of the previous definition
  #define MAX(a, b)  (((a) > (b)) ? (a) : (b))
  ^
[ 69%] Building CXX object 
smtk-import/CMakeFiles/smtk_import.dir/smrtk2ssrfc_window.cpp.o
/home/paneves/Diveapps/subsurface/smtk-import/smrtk2ssrfc_window.cpp:2:35: 
fatal error: ui_smrtk2ssrfc_window.h: No such file or directory
compilation terminated.
smtk-import/CMakeFiles/smtk_import.dir/build.make:77: recipe for target 
'smtk-import/CMakeFiles/smtk_import.dir/smrtk2ssrfc_window.cpp.o' failed
make[2]: *** 
[smtk-import/CMakeFiles/smtk_import.dir/smrtk2ssrfc_window.cpp.o] Error 1
CMakeFiles/Makefile2:790: recipe for target 
'smtk-import/CMakeFiles/smtk_import.dir/all' failed
make[1]: *** [smtk-import/CMakeFiles/smtk_import.dir/all] Error 2


Am I missing anything?

Cheers:

Pedro



More information about the subsurface mailing list