summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2011-12-17 01:33:31 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2011-12-17 01:33:31 (GMT)
commitb6a01a76b98377983a562b36a757483a01d3cfa2 (patch)
tree128404b42f41c48a7e715dbe06dee3b27e7bfcdb
parentb8be38ce8b2a146e48cbadaddef3cba4475c03e4 (diff)
fix compilation on Fedora: boost, flex, and OPENSCAD_LIBRARIES
-rw-r--r--boost.pri34
-rw-r--r--flex.pri10
-rw-r--r--openscad.pro8
3 files changed, 41 insertions, 11 deletions
diff --git a/boost.pri b/boost.pri
index 46cbb83..168e64c 100644
--- a/boost.pri
+++ b/boost.pri
@@ -9,18 +9,34 @@ boost {
win32:QMAKE_LIBDIR += -L$$BOOST_DIR/lib
}
+ ORIGINAL_LIBS_VALUE = $$LIBS
+
+ win32 {
+ LIBS += -llibboost_thread-vc90-mt-s-1_46_1 -llibboost_program_options-vc90-mt-s-1_46_1
+ }
+
+ exists(/usr/lib64/libboost*thread-mt*) {
+ LIBS += -lboost_thread-mt -lboost_program_options-mt
+ BOOST_IS_MT = true
+ }
+
+ exists(/usr/lib/libboost*thread-mt*) {
+ LIBS *= -lboost_thread-mt -lboost_program_options-mt
+ BOOST_IS_MT = true
+ }
+
+ isEmpty(BOOST_IS_MT) {
+ unix|macx {
+ LIBS += -lboost_thread -lboost_program_options
+ }
+ }
+
CONFIG(mingw-cross-env) {
+ LIBS = $$ORIGINAL_LIBS_VALUE # erase, start over
DEFINES += BOOST_STATIC
DEFINES += BOOST_THREAD_USE_LIB
DEFINES += Boost_USE_STATIC_LIBS
LIBS += -lboost_thread_win32-mt -lboost_program_options-mt
- } else {
- win32 {
- LIBS += -llibboost_thread-vc90-mt-s-1_46_1 -llibboost_program_options-vc90-mt-s-1_46_1
- } else {
- # some platforms have only '-mt' versions. uncomment if needed.
- # LIBS += -lboost_thread-mt -lboost_program_options-mt
- LIBS += -lboost_thread -lboost_program_options
- }
- }
+ }
+
}
diff --git a/flex.pri b/flex.pri
index ef0b742..ce78b98 100644
--- a/flex.pri
+++ b/flex.pri
@@ -10,6 +10,16 @@ win32 {
}
unix:freebsd-g++ {
+ # on bsd /usr/bin/bison is outdated, dont use it
QMAKE_LEX = /usr/local/bin/flex
QMAKE_YACC = /usr/local/bin/bison
}
+
+unix:linux* {
+ exists(/usr/bin/flex) {
+ QMAKE_LEX = /usr/bin/flex
+ }
+ exists(/usr/bin/bison) {
+ QMAKE_YACC = /usr/bin/bison
+ }
+}
diff --git a/openscad.pro b/openscad.pro
index 60870be..80687f0 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -40,8 +40,8 @@ INCLUDEPATH += src
# Used when manually installing 3rd party libraries
OPENSCAD_LIBDIR = $$(OPENSCAD_LIBRARIES)
!isEmpty(OPENSCAD_LIBDIR) {
- INCLUDEPATH = $$OPENSCAD_LIBDIR/include $$INCLUDEPATH
- QMAKE_LIBDIR = $$OPENSCAD_LIBDIR/lib $$QMAKE_LIBDIR
+ QMAKE_INCDIR_QT = $$OPENSCAD_LIBDIR/include $$QMAKE_INCDIR_QT
+ QMAKE_LIBDIR_QT = $$OPENSCAD_LIBDIR/lib $$QMAKE_LIBDIR_QT
}
else {
macx {
@@ -77,6 +77,10 @@ win32 {
CONFIG += qt
QT += opengl
+linux*:exists(/usr/lib64/libGLU*)|linux*:exists(/usr/lib/libGLU*) {
+ LIBS += -lGLU # Fedora + DSO
+}
+
# Application configuration
macx:CONFIG += mdi
CONFIG += cgal
contact: Jan Huwald // Impressum