<div dir="ltr">Dirk,<div><br></div><div>I need to get back on this, please see below</div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-07 14:30 GMT+02:00 Dirk Hohndel <span dir="ltr"><<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Oct 07, 2015 at 02:09:18PM +0200, Guido Lerch wrote:<br>
> 2015-10-07 13:42 GMT+02:00 Lubomir I. Ivanov <<a href="mailto:neolit123@gmail.com">neolit123@gmail.com</a>>:<br>
><br>
> > On 7 October 2015 at 14:39, Guido Lerch <<a href="mailto:guido.lerch@gmail.com">guido.lerch@gmail.com</a>> wrote:<br>
> > ><br>
> > ><br>
> > > 2015-10-07 13:27 GMT+02:00 Dirk Hohndel <<a href="mailto:dirk@hohndel.org">dirk@hohndel.org</a>>:<br>
> > >><br>
> > >> On Wed, Oct 07, 2015 at 01:23:12PM +0200, Guido Lerch wrote:<br>
> > >> > All,<br>
> > >> > Tried to get a Track account but got rejected :-(<br>
> > >><br>
> > >> Interesting. Can you tell me more what you tried and what happened? We<br>
> > >> have people create trac accounts several times a week and it turns to<br>
> > work<br>
> > >> quite well - we do a minimal captcha to get rid of some of the spam<br>
> > bots,<br>
> > >> but it should reject you :-)<br>
> > >><br>
> > >> > Printing on a MAC iOS 10.9.5 does not print the dive meta data, the<br>
> > >> > profiles are printed but<br>
> > >> > in a really bad quality.<br>
> > >> ><br>
> > >> > Printed an example to a PDF, attached.<br>
> > >><br>
> > >> Is this built from source or with the Beta 3 / latest daily build?<br>
> > >> The reason I'm asking is that there is a bit of black magic involved to<br>
> > >> really get the bundle to work exactly as intended and it can easily pick<br>
> > >> up incorrect libraries if you aren't careful...<br>
> > ><br>
> > ><br>
> > > With Beta-3 is works ! Now is the question on how I can reproducible<br>
> > build<br>
> > > from<br>
> > > source using the correct libraries.<br>
> > > Next test is to use the build script.<br>
> > >><br>
> ><br>
> > which Qt version are you using to build locally?<br>
> > we encourage 5.5, or the latest possible...<br>
> ><br>
><br>
> I am using 5.5 but frankly have tons of questions and ask myself if I have<br>
> set this up properly - I am still a newbie to this.<br>
><br>
> For example:<br>
> - I am getting messages that the build is done in the source tree and that<br>
> that is not recommended, however build.sh does build in the source tree<br>
> itself ...<br>
<br>
</div></div>No it doesn't and no you really shouldn't build in the source tree.<br>
<br>
build.sh does this:<br>
<br>
cd $SRC/subsurface<br>
mkdir -p build<br>
cd build<br>
export CMAKE_PREFIX_PATH=$INSTALL_ROOT/lib/cmake<br>
cmake -DCMAKE_BUILD_TYPE=Debug .. \<br>
        -DLIBGIT2_INCLUDE_DIR=$INSTALL_ROOT/include \<br>
        -DLIBGIT2_LIBRARIES=$INSTALL_ROOT/lib/libgit2.$SH_LIB_EXT \<br>
        -DLIBDIVECOMPUTER_INCLUDE_DIR=$INSTALL_ROOT/include \<br>
        -DLIBDIVECOMPUTER_LIBRARIES=$INSTALL_ROOT/lib/libdivecomputer.a \<br>
        -DMARBLE_INCLUDE_DIR=$INSTALL_ROOT/include \<br>
        -DMARBLE_LIBRARIES=$INSTALL_ROOT/lib/libssrfmarblewidget.$SH_LIB_EXT \<br>
        -DNO_PRINTING=OFF \<br>
        -DUSE_LIBGIT23_API=1<br></blockquote><div><br></div><div>I get that part but it builds within subsurface/build, correct ?</div><div>If I am not mistaken, this is an in source tree build ...</div><div><br></div><div>On my El Captain machine QT complains about nor being able to create shadow builds if the build</div><div>is done within the source tree.</div><div><br></div><div>Also the build.log when running build.sh complains about in source tree build.</div><div><br></div><div>I don't want to mess around with the build script but believe the build should be done under</div><div>src/<buildname> instead of src/subsurface/build </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
if [ $PLATFORM = Darwin ] ; then<br>
        rm -rf Subsurface.app<br>
fi<br>
<br>
LIBRARY_PATH=$INSTALL_ROOT/lib make -j4<br>
<br>
if [ $PLATFORM = Darwin ] ; then<br>
        LIBRARY_PATH=$INSTALL_ROOT/lib make install<br>
fi<br>
<br>
it creates subsurface/build and then cds into that directory and calls<br>
cmake pointing to the sources in the parent directory.<br>
<br>
And on Darwin (i.e., Mac) it always runs make install so it builds a<br>
(mostly) valid bundle.<br>
<span class=""><br>
> - Trying to move the build location gives issues as the makefiles and the<br>
> cmake stuff is not in the new location ...<br>
<br>
</span>You can easily build in a different directory. Just do a similar<br>
invocation of cmake that references the source directory<br>
<span class=""><br>
> As said I am new and somehow hesitant to ask those questions as the cracks<br>
> might think I am a complete dummy ...<br>
<br>
</span>We all started there somewhere (well, OK, Linus didn't, he was always<br>
brilliant). A community can't grow and thrive if it can't bring in new<br>
people and make them feel comfortable.<br>
<br>
Keep asking. As long as you listen and try, we'll keep answering :-)<br>
And just to avoid email based misunderstanding as even with a smiley it's<br>
often unclear what I mean... you are doing great. You are extremely<br>
receptive to feedback and suggestions. We're happy to have you here.<br>
And I have great hope that once you are more comfortable you will help us<br>
get our automated testing to be much more useful.<br>
<span class=""><br>
> So far I always got stuff to work but I am not confident at all that<br>
> everything is setup 100% correctly, hence I might<br>
> see weird behaviour like marble woking one pull but not at the next or<br>
> printing works with Beta-3 but not when building<br>
> with the last master.<br>
<br>
</span>Yes, building in the sources is something I should simply prohibit. Things<br>
simply are set up for out of tree build and I don't think anyone ever<br>
tests in tree builds (except, apparently, you). So just don't do this.<br>
<br>
Fundamentally that's why we created build.sh. In theory it should allow<br>
you to run a simple script and get a consistent, sane setup. Why that<br>
didn't work in your case is something I'd love to figure out so we can<br>
make the script more robust and make it easier for the next person who<br>
wants to get involved (and I may have talked a rock star developer into<br>
joining the Subsurface team... we'll see).<br>
<span class="HOEnZb"><font color="#888888"><br>
/D<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Best regards,<div>Guido</div></div></div>
</div></div>