Scubapro/Uwatec Smartrak .slg files importing tool

Salvador Cuñat salvador.cunat at gmail.com
Thu Nov 12 15:12:28 PST 2015


Good night Pedro.

2015-11-12 18:38 GMT+01:00 Pedro Neves <nevesdiver at gmail.com>:

> 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))
>  ^
>

These are normal,  glib-2.0 has defined MIN and MAX macros which are also
defined in in dive.h, no problem with them, I think subsurface's macros are
pretty better tha glib's.

[ 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
>
>
> This never happened to me before.  I can easily reproduce it running
build.sh on a brand new subsurface repo, so I think I never got it because
I'm building in-source tree.
As I'm not a QT guy, I'm coppying Tomaz in this mail, he will probably have
a solution.

I apologize for this inconvenience.

Regards.

Salva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151113/ee8b74de/attachment.html>


More information about the subsurface mailing list