Addition to the includes: Every file in hugin1 *except Executor.cpp* which needs MAC_SELF_CONTAINED_BUNDLE already includes <config.h>, whose only content is #include "hugin_config." So the only needed change would be to include <config.h>:
diff -r a297297b1beb src/hugin1/base_wx/Executor.cpp --- a/src/hugin1/base_wx/Executor.cpp Tue May 17 18:58:10 2016 +0200 +++ b/src/hugin1/base_wx/Executor.cpp Wed May 18 18:53:12 2016 +0200 @@ -22,6 +22,7 @@ */ #include "Executor.h" +#include <config.h> #include <iostream> #include <wx/utils.h> Niklas Am Mittwoch, 18. Mai 2016 18:23:55 UTC+2 schrieb Niklas Mischkulnig: > > Hi Thomas, > > A few questions concerning changes I made while updating the self >>> contained cmake build: >>> What do you think about PTBatcherGui and HuginStitchProject opening >>> files (see my post from 17:10)? >>> >> >> Does this referring to calling PTBatcherGUI and HuginStitchProject from >> Hugin or direct from the bundle? >> > > So that you can open a file by right-clicking on it in the file-browser > and then choosing "Open with..." (see Image). > (This would be more useful with StitchProject than with PTBatcherGui) > > >> Are these missing endl's in Executor.cpp intentional (see attached patch)? >>> >> I don't see an attached patch. >> > Oops, now? > > Can I include "hugin_config.h" in src/hugin1/base_wx/wxPlatform.h to >>> include the MAC_SELF_CONTAINED_BUNDLE definition in files like Executor.cpp? >>> >> >> I would prefer to include "hugin_config.h" into the source files >> directly. Use it in the headers only when you need the variables in the >> header. >> > Should I include <hugin_config.h> or "hugin_config.h" ? I have seen both > in the code. > > Niklas > -- A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ --- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/db37968a-1961-4683-aa7c-8082a9756412%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
