<div dir="ltr">Good night Pedro.<br><div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-12 18:38 GMT+01:00 Pedro Neves <span dir="ltr"><<a href="mailto:nevesdiver@gmail.com" target="_blank">nevesdiver@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Salva:<br>
<br>
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:<br>
<br>
Scanning dependencies of target smtk_import<br>
[ 69%] Building C object smtk-import/CMakeFiles/smtk_import.dir/smartrak.c.o<br>
In file included from /home/paneves/Diveapps/subsurface/smtk-import/smartrak.c:31:0:<br>
/home/paneves/Diveapps/subsurface/subsurface-core/dive.h:14:0: warning: "MIN" redefined<br>
 #define MIN(x, y) ({                \<br>
 ^<br>
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,<br>
                 from /usr/include/glib-2.0/glib/gtypes.h:32,<br>
                 from /usr/include/glib-2.0/glib/galloca.h:32,<br>
                 from /usr/include/glib-2.0/glib.h:30,<br>
                 from /usr/include/mdbtools.h:33,<br>
                 from /home/paneves/Diveapps/subsurface/smtk-import/smartrak.c:28:<br>
/usr/include/glib-2.0/glib/gmacros.h:241:0: note: this is the location of the previous definition<br>
 #define MIN(a, b)  (((a) < (b)) ? (a) : (b))<br>
 ^<br>
In file included from /home/paneves/Diveapps/subsurface/smtk-import/smartrak.c:31:0:<br>
/home/paneves/Diveapps/subsurface/subsurface-core/dive.h:20:0: warning: "MAX" redefined<br>
 #define MAX(x, y) ({                \<br>
 ^<br>
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,<br>
                 from /usr/include/glib-2.0/glib/gtypes.h:32,<br>
                 from /usr/include/glib-2.0/glib/galloca.h:32,<br>
                 from /usr/include/glib-2.0/glib.h:30,<br>
                 from /usr/include/mdbtools.h:33,<br>
                 from /home/paneves/Diveapps/subsurface/smtk-import/smartrak.c:28:<br>
/usr/include/glib-2.0/glib/gmacros.h:238:0: note: this is the location of the previous definition<br>
 #define MAX(a, b)  (((a) > (b)) ? (a) : (b))<br>
 ^<br></blockquote><div><br></div><div>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.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[ 69%] Building CXX object smtk-import/CMakeFiles/smtk_import.dir/smrtk2ssrfc_window.cpp.o<br>
/home/paneves/Diveapps/subsurface/smtk-import/smrtk2ssrfc_window.cpp:2:35: fatal error: ui_smrtk2ssrfc_window.h: No such file or directory<br>
compilation terminated.<br>
smtk-import/CMakeFiles/smtk_import.dir/build.make:77: recipe for target 'smtk-import/CMakeFiles/smtk_import.dir/smrtk2ssrfc_window.cpp.o' failed<br>
make[2]: *** [smtk-import/CMakeFiles/smtk_import.dir/smrtk2ssrfc_window.cpp.o] Error 1<br>
CMakeFiles/Makefile2:790: recipe for target 'smtk-import/CMakeFiles/smtk_import.dir/all' failed<br>
make[1]: *** [smtk-import/CMakeFiles/smtk_import.dir/all] Error 2<br>
<br>
<br></blockquote><div>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.<br></div><div>As I'm not a QT guy, I'm coppying Tomaz in this mail, he will probably have a solution.<br><br></div><div>I apologize for this inconvenience.<br><br></div><div>Regards.<br><br></div><div>Salva<br></div></div></div></div></div>