diff --git a/Makefile b/Makefile index 7184cfab2..04db0a97a 100644 --- a/Makefile +++ b/Makefile @@ -147,7 +147,11 @@ include $(ROOT_DIR)/make/tools.mk # We almost need to consider autoconf/automake instead of this ifeq ($(UNAME), Linux) - QT_SPEC := linux-g++ + ifeq ($(ARCH), x86_64) + QT_SPEC := linux-g++-64 + else + QT_SPEC := linux-g++-32 + endif UAVOBJGENERATOR := $(BUILD_DIR)/uavobjgenerator/uavobjgenerator else ifeq ($(UNAME), Darwin) QT_SPEC := macx-g++ diff --git a/ground/gcs/copydata.pro b/ground/gcs/copydata.pro index 957b81363..4fb80f27c 100644 --- a/ground/gcs/copydata.pro +++ b/ground/gcs/copydata.pro @@ -28,10 +28,12 @@ equals(copyqt, 1) { libQt5QuickParticles.so.5 \ libQt5XcbQpa.so.5 \ libQt5X11Extras.so.5 \ - libqgsttools_p.so.1 \ libicui18n.so.54 \ libicuuc.so.54 \ libicudata.so.54 + *-64 { + QT_LIBS += libqgsttools_p.so.1 + } for(lib, QT_LIBS) { addCopyFileTarget($${lib},$$[QT_INSTALL_LIBS],$${GCS_QT_LIBRARY_PATH}) } @@ -43,11 +45,16 @@ equals(copyqt, 1) { imageformats/libqmng.so \ imageformats/libqsvg.so \ imageformats/libqtiff.so \ - mediaservice/libgstaudiodecoder.so \ - mediaservice/libgstmediaplayer.so \ platforms/libqxcb.so \ xcbglintegrations/libqxcb-glx-integration.so \ sqldrivers/libqsqlite.so + *-32 { + QT_PLUGINS += mediaservice/libqtmedia_audioengine.so + } + *-64 { + QT_PLUGINS += mediaservice/libgstaudiodecoder.so \ + mediaservice/libgstmediaplayer.so + } } win32 { diff --git a/ground/gcs/src/libs/osgearth/copydata.pro b/ground/gcs/src/libs/osgearth/copydata.pro index 85e77482c..bd93a4fe1 100644 --- a/ground/gcs/src/libs/osgearth/copydata.pro +++ b/ground/gcs/src/libs/osgearth/copydata.pro @@ -9,10 +9,10 @@ equals(copyosg, 1) { # copy osg libraries data_copy.commands += $(MKDIR) $${GCS_LIBRARY_PATH}/osg $$addNewline() - exists( $${OSG_SDK_DIR}/lib64 ) { + *-64 { data_copy.commands += $(COPY_DIR) $$shell_quote($$OSG_SDK_DIR/lib64/)* $$shell_quote($$GCS_LIBRARY_PATH/osg/) } - else { + *-32 { data_copy.commands += $(COPY_DIR) $$shell_quote($$OSG_SDK_DIR/lib/)* $$shell_quote($$GCS_LIBRARY_PATH/osg/) } diff --git a/make/3rdparty/osgearth/osgearth.mk b/make/3rdparty/osgearth/osgearth.mk index eecff9bb1..4f03c216d 100644 --- a/make/3rdparty/osgearth/osgearth.mk +++ b/make/3rdparty/osgearth/osgearth.mk @@ -69,7 +69,7 @@ ################################ # TODO should be discovered -QT_VERSION := 5.4.1 +QT_VERSION := 5.5.1 ################################ # diff --git a/make/tools.mk b/make/tools.mk index dfefe7ab5..881813c99 100644 --- a/make/tools.mk +++ b/make/tools.mk @@ -166,9 +166,9 @@ QT_SDK_PREFIX := $(QT_SDK_DIR) # ############################## -BUILD_SDK_TARGETS := arm_sdk qt_sdk +BUILD_SDK_TARGETS := arm_sdk qt_sdk osg ifeq ($(UNAME), Windows) - BUILD_SDK_TARGETS += osg sdl nsis mesawin openssl ccache + BUILD_SDK_TARGETS += sdl nsis mesawin openssl ccache endif ALL_SDK_TARGETS := $(BUILD_SDK_TARGETS) gtest uncrustify doxygen