From 5ed3e28b7a2e3eccb084cd582e4148a7aebb3b86 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 3 Oct 2013 23:34:59 -0400 Subject: Mac build fix for openscad_nogui diff --git a/src/EventFilter.h b/src/EventFilter.h index c3942b5..c883bfd 100644 --- a/src/EventFilter.h +++ b/src/EventFilter.h @@ -1,6 +1,8 @@ #ifndef FILTER_H_ #define FILTER_H_ +#ifdef OPENSCAD_QTGUI + #include #include #include "MainWindow.h" @@ -25,4 +27,6 @@ protected: } }; +#endif // OPENSCAD_QTGUI + #endif diff --git a/src/openscad.cc b/src/openscad.cc index 6f85c0d..a8bb24a 100644 --- a/src/openscad.cc +++ b/src/openscad.cc @@ -518,7 +518,7 @@ int gui(vector &inputFiles, const fs::path &original_path, int argc, cha } #else // OPENSCAD_QTGUI bool QtUseGUI() { return false; } -int gui(const vector &inputFiles, int argc, char ** argv) +int gui(const vector &inputFiles, const fs::path &original_path, int argc, char ** argv) { fprintf(stderr,"Error: compiled without QT, but trying to run GUI\n"); return 1; @@ -648,7 +648,7 @@ int main(int argc, char **argv) } else { fprintf(stderr, "Requested GUI mode but can't open display!\n"); - return 1; + help(argv[0]); } Builtins::instance(true); -- cgit v0.10.1