Unsolved Can not compile android package
-
How can I solve this issue? -
Hi and welcome to devnet forum
You need to give more details on what you are trying to achieve.
How are you trying to compile?
What OS?
Are you using Qt creator?
Are you using a .pro file? -
os:macos 10.14.4
IDE:Qt creator 4.9.0And this is I compile project to android platform firstly, it can be normally complied into other os binary.
-
For Qt creator you should have also a .pro file. At least you seem to use one based on the error message.
Probably you should post the content of this file for anybody to help you.Unfortunately I am a windows user without any experience on mac. However, other mac users are around in the forum.
-
@koahnig said in Can not compile android package:
I am a windows user without any experience on mac. However, other mac users are around in the forum.
I will post the pro file content.Thanks,guy.
-
The main pro file was
# ----------------------------------------------------------- # Studio/Lite Project File # ----------------------------------------------------------- message("Creating Inspire makefile...") # Bring in settings common to all Inspire projects include( $(ASDIR)/src/common.pri ) include( $(ASDIR)/3rdparty.pri) QT += multimedia xml network svg opengl ubuntu1404 | ubuntu1604: { CONFIG += qdbus } TEMPLATE = app TARGET=Inspire CONFIG += mobility MOBILITY = CONFIG += c++11 PHONON_LIB_PATH=$(ASDIR)/3rdparty/phonon COPYFILES_PATH=$(ASDIR)/src/studio/ #PORT QT4 TO QT5 win32:{ QT += axcontainer webenginewidgets } linux:!mac{ !android{ QT += x11extras }else{ QT += printsupport } } mac|unix { CONFIG(debug, debug|release) { POST_TARGETDEPS += $(ASDIR)/debug/libascore_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libascoregui_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libasgraphlib_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libmkvectorfill_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libasexcel_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libxlslib_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libasspellchecker_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libasgroups_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libastransitionlib_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libasquestionmaster_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libashandwriting_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libaslrsgui_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libpwidgets_debug.a POST_TARGETDEPS += $(ASDIR)/debug/libadditional_debug.a } CONFIG(release, debug|release) { POST_TARGETDEPS += $(ASDIR)/release/libascore.a POST_TARGETDEPS += $(ASDIR)/release/libascoregui.a POST_TARGETDEPS += $(ASDIR)/release/libasgraphlib.a POST_TARGETDEPS += $(ASDIR)/release/libmkvectorfill.a POST_TARGETDEPS += $(ASDIR)/release/libasexcel.a POST_TARGETDEPS += $(ASDIR)/release/libxlslib.a POST_TARGETDEPS += $(ASDIR)/release/libasspellchecker.a POST_TARGETDEPS += $(ASDIR)/release/libasgroups.a POST_TARGETDEPS += $(ASDIR)/release/libastransitionlib.a POST_TARGETDEPS += $(ASDIR)/release/libasquestionmaster.a POST_TARGETDEPS += $(ASDIR)/release/libashandwriting.a POST_TARGETDEPS += $(ASDIR)/release/libaslrsgui.a POST_TARGETDEPS += $(ASDIR)/release/libpwidgets.a POST_TARGETDEPS += $(ASDIR)/release/libadditional.a } } INCLUDEPATH += . \ $(ASDIR)/src \ $(ASDIR)/src/core \ $(ASDIR)/src/coregui \ $(ASDIR)/inc \ $(QTDIR)/src/3rdparty/zlib \ $${APPFRAMEWORK_DIR}/include DEPENDPATH += . RESOURCES = main.qrc win32: { RC_FILE = studio.rc HEADERS += qtlockedfile_win.cpp LIBS += -L$${ACTIVSYSTEM_DIR}/lib -L$(ASDIR)/3rdparty/libs -L$(ASDIR)/3rdparty/libs/win -LC:/WinDDK/7600.16385.1/lib/wxp/i386 -ldsound -lXpdfRasterizer user32.lib Shell32.lib winspool.lib advapi32.lib Secur32.lib LIBS += -L$(ASDIR)/3rdparty/libs/win -lnanomsg } else:mac { CONFIG += app_bundle LIBS += /usr/lib/libz.1.dylib ICON=inspire.icns HEADERS += qtlockedfile_unix.cpp LIBS += -L$(ASDIR)/3rdparty/libs -framework CoreAudio -framework Quartz -framework QuartzCore -framework OpenGL -framework ApplicationServices -framework CoreFoundation -framework SystemConfiguration -framework Cocoa -framework CoreGraphics -framework Foundation } else:linux:!android { CONFIG += x11 LIBS += -L$${ACTIVSYSTEM_DIR}/lib -L$(ASDIR)/3rdparty/libs -L$(ASDIR)/3rdparty/libs/linux -L/usr/lib/i386-linux-gnu -L/lib/i386-linux-gnu HEADERS += qtlockedfile_unix.cpp QMAKE_LFLAGS_RPATH = -Wl,-rpath=./,-rpath, # I don't get the point of these; a) WHY burn in the rpath of the build dir, what has that got to do with runtime, RPATH_LINK might be it??? # QMAKE_RPATH += -Wl,-rpath=$(ASDIR)/3rdparty/libs/linux,-rpath, # What lives here? # QMAKE_LFLAGS += -W1,-rpath=/usr/local/lib/promethean # QMAKE_LFLAGS += -Wl,-rpath=/usr/local/lib # Common on! # QMAKE_LFLAGS += -Wl,-rpath=$${APPFRAMEWORK_DIR}/bin/debug -Wl,-rpath=$${APPFRAMEWORK_DIR}/bin/release } ## CONFIG DEBUG ## CONFIG(debug, debug|release) { DESTDIR = $(ASDIR)/debug MOC_DIR = debug/moc OBJECTS_DIR = debug/obj UI_DIR = debug/ui linux:!android{ LIBS += -L$(ASDIR)/debug LIBS += -lascommon_debug -lascore_debug -lasprint_debug -lequations_debug -lascoregui_debug -lasgraphlib_debug -lmkvectorfill_debug -lasexcel_debug -lxlslib_debug -laslocale_debug -lasspellchecker_debug -lasgroups_debug -laslrsgui_debug -lastransitionlib_debug -lasquestionmaster_debug -lashandwriting_debug -ladditional_debug -lpwidgets_debug -lasatlasobjects_debug LIBS += -L$${APPFRAMEWORK_DIR}/linux/x64/debug/lib -latlascommsd -lqtatlascommsd -lappcontrollerd LIBS += -lpromessaging_debug -ljsoncpp_debug LIBS += -L$$PHONON_LIB_PATH/linux/x64/release/lib -lphonon4qt5 -lphonon4qt5experimental LIBS += -L$${CLASSFLOWCLIENT_DIR}/linux/x64/debug/lib -lclassflowclient LIBS += -L$${ACTIVSYSTEM_DIR}/linux/x64/debug/lib -lactivsystemd # LIBS+=-L/home/yumingqi/work/phonon4qt5/lib -lphonon4qt5 -lphonon4qt5experimental } else:mac { LIBS += -L$(ASDIR)/debug -lascommon_debug -lascore_debug -lasprint_debug -lequations_debug -lascoregui_debug -lasgraphlib_debug -lmkvectorfill_debug LIBS += -lasexcel_debug -lxlslib_debug -laslocale_debug -lasspellchecker_debug -lasgroups_debug -laslrsgui_debug -lastransitionlib_debug LIBS += -lasquestionmaster_debug -lashandwriting_debug -ladditional_debug -lpwidgets_debug -lasatlasobjects_debug LIBS += -lpromessaging_debug -ljsoncpp_debug LIBS += -L$(ASDIR)/3rdparty/libs/mac/x64 -lnanomsg.5.1.0 LIBS += -L$${PHONON_LIB_PATH}/mac -lphonon4qt5 -lphonon4qt5experimental LIBS += -L$${CLASSFLOWCLIENT_DIR}/mac/debug -lclassflowclient LIBS += -L$${APPFRAMEWORK_DIR}/mac/debug -latlascommsd -lqtatlascommsd -lappcontrollerd LIBS += -L$${ACTIVSYSTEM_DIR}/mac/debug -lactivsystemd2 #-framework Breakpad } else:win32{ # Windows ;) LIBS += -L$(ASDIR)/debug LIBS += -lascommond -lascored -lasprintd -lequationsd -lascoreguid -lasgraphlibd -lmkvectorfilld -lasexceld -lxlslibd -laslocaled -lasspellcheckerd -lasgroupsd -laslrsguid -lastransitionlibd -lasquestionmasterd -lashandwritingd -ladditionald -lpwidgetsd -lasatlasobjectsd LIBS += -ljsoncppd -lpromessagingd LIBS += -L$${APPFRAMEWORK_DIR}/win/x86/debug/lib -lappcontrollerd1 LIBS += -L$$PHONON_LIB_PATH/win/x86/debug/lib -lphonon4qt5 -lphonon4qt5experimental -lphononwidgets LIBS += -L$${CLASSFLOWCLIENT_DIR}/win/x86/debug/lib -lclassflowclient LIBS += -L$${ACTIVSYSTEM_DIR}/win/x86/debug/lib -lactivsystemd2 }else:linux:android{ LIBS += -L$(ASDIR)/debug -lascommon_debug -lascore_debug -lasprint_debug -lequations_debug -lascoregui_debug -lasgraphlib_debug -lmkvectorfill_debug -lasexcel_debug -lxlslib_debug -laslocale_debug -lasspellchecker_debug -lasgroups_debug -laslrsgui_debug -lastransitionlib_debug -lasquestionmaster_debug -lashandwriting_debug -ladditional_debug -lpwidgets_debug -lasatlasobjects_debug LIBS += -L$${APPFRAMEWORK_DIR}/android/x64/debug/lib -latlascommsd -lqtatlascommsd -lappcontrollerd LIBS += -lpromessaging_debug -ljsoncpp_debug LIBS += -L$$PHONON_LIB_PATH/android/x64/debug/lib -lphonon4qt5 -lphonon4qt5experimental LIBS += -L$${CLASSFLOWCLIENT_DIR}/android/x64/debug/lib -lclassflowclient LIBS += -L$${ACTIVSYSTEM_DIR}/android/x64/debug/lib -lactivsystemd } win32:{ } else:mac { } else:linux:!android{ # Linux only ubuntu1404 | ubuntu1604: { LIBS += -lasound -lXpdfRasterizer -lXmu -lscreenrec -ldl -lz LIBS += -lgstreamer-1.0 -lglib-2.0 -lgobject-2.0 LIBS += `pkg-config --libs gstreamer-video-1.0` LIBS += $(ASDIR)/3rdparty/libs/linux/libnng.so.1.1.0 } else { LIBS += -lasound -lXpdfRasterizer -lXmu -lscreenrec } } #LIBS += -L$(ASDIR)/debug -lactivsystemd2 TARGET = $$member(TARGET, 0)d win32: { QMAKE_PRE_LINK += $${COPYFILES_PATH}copyfiles_pre debug& QMAKE_POST_LINK+= $${COPYFILES_PATH}/copyfiles debug } else:mac { QMAKE_INFO_PLIST = studiod.plist QMAKE_PRE_LINK = $${COPYFILES_PATH}/copyfiles_pre debug mac QMAKE_POST_LINK = $${COPYFILES_PATH}/postlink.mac.sh debug x64 } else:linux:!android{ LIBS += -L$${APPFRAMEWORK_DIR}/lib/debug -lappcontrollerd ubuntu1404 | ubuntu1604 { QMAKE_POST_LINK = $${COPYFILES_PATH}/copyfiles debug linux postubuntu1204 } else { QMAKE_POST_LINK = $${COPYFILES_PATH}/postlink.linux_desktop.sh debug } QMAKE_PRE_LINK = $${COPYFILES_PATH}/copyfiles_pre debug linux } } ## CONFIG RELEASE ## CONFIG(release, debug|release) { DESTDIR = $(ASDIR)/release MOC_DIR = release/moc OBJECTS_DIR = release/obj UI_DIR = release/ui LIBS += -L$(ASDIR)/release LIBS += -lascommon -lascore -lasprint -lequations -lascoregui -lasgraphlib -lmkvectorfill -lasexcel -lxlslib -laslocale -lasspellchecker -lasgroups -laslrsgui -lastransitionlib -lasquestionmaster -lashandwriting -ladditional -lpwidgets -lasatlasobjects LIBS += -lpromessaging -ljsoncpp linux: { LIBS += -L$${APPFRAMEWORK_DIR}/linux/x64/release/lib -latlascomms -lqtatlascomms -lappcontroller LIBS += -L$$PHONON_LIB_PATH/linux/x64/release/lib -lphonon4qt5 -lphonon4qt5experimental LIBS += -L$${CLASSFLOWCLIENT_DIR}/linux/x64/release/lib -lclassflowclient LIBS += -L$${ACTIVSYSTEM_DIR}/linux/x64/release/lib -lactivsystem } else:mac{ LIBS += -L$(ASDIR)/3rdparty/libs/mac/x64 -lnanomsg.5.1.0 LIBS += -L$${PHONON_LIB_PATH}/mac -lphonon4qt5 -lphonon4qt5experimental LIBS += -L$${CLASSFLOWCLIENT_DIR}/mac/release -lclassflowclient LIBS += -L$${APPFRAMEWORK_DIR}/mac/release -latlascomms -lqtatlascomms -lappcontroller LIBS += -L$${ACTIVSYSTEM_DIR}/mac/release -lactivsystem2 } else:win32{ LIBS += -L$${CLASSFLOWCLIENT_DIR}/win/x86/release/lib -lclassflowclient LIBS += -L$${APPFRAMEWORK_DIR}/win/x86/release/lib -lappcontroller1 LIBS += -L$$PHONON_LIB_PATH/win/x86/release/lib -lphonon4qt5 -lphonon4qt5experimental -lphononwidgets LIBS += -L$${ACTIVSYSTEM_DIR}/win/x86/release/lib -lactivsystem2 }else:linux:android{ LIBS += -L$(ASDIR)/release LIBS += -lascommon -lascore -lasprint -lequations -lascoregui -lasgraphlib -lmkvectorfill \ -lasexcel -lxlslib -laslocale -lasspellchecker -lasgroups -laslrsgui -lastransitionlib \ -lasquestionmaster -lashandwriting -ladditional -lpwidgets -lasatlasobjects LIBS += -L$${APPFRAMEWORK_DIR}/android/x64/release/lib -latlascomms -lqtatlascomms -lappcontroller LIBS += -lpromessaging -ljsoncpp LIBS += -L$$PHONON_LIB_PATH/android/x64/release/lib -lphonon4qt5 -lphonon4qt5experimental LIBS += -L$${CLASSFLOWCLIENT_DIR}/android/x64/release/lib -lclassflowclient LIBS += -L$${ACTIVSYSTEM_DIR}/android/x64/release/lib -lactivsystem } win32:{ } else:mac { } else:linux:!android { # Linux only ubuntu1404 | ubuntu1604: { LIBS += -lasound -lXpdfRasterizer -lXmu -lscreenrec -ldl -lz LIBS += -lgstreamer-1.0 -lglib-2.0 -lgobject-2.0 LIBS += `pkg-config --libs gstreamer-video-1.0` LIBS += $(ASDIR)/3rdparty/libs/linux/libnng.so.1.1.0 } else { LIBS += -lasound -lXmu -ldl -lz # LIBS += -L$$(ASDIR)/3rdparty/libs/linux -lXpdfRasterizer LIBS += -L$$(ASDIR)/3rdparty/ScreenRecorder/linux/x64/debug/lib -lscreenrec } } !win32:DEFINES += QT_NO_DEBUG_OUTPUT win32:{ QMAKE_POST_LINK = $${COPYFILES_PATH}/copyfiles release QMAKE_PRE_LINK = $${COPYFILES_PATH}/copyfiles_pre release QMAKE_CFLAGS_RELEASE += /Zi QMAKE_CXXFLAGS_RELEASE += /Zi QMAKE_LFLAGS_RELEASE += /DEBUG /OPT:REF /OPT:ICF } else:mac { QMAKE_INFO_PLIST=studio.plist QMAKE_PRE_LINK = $${COPYFILES_PATH}/copyfiles_pre release mac QMAKE_POST_LINK = $${COPYFILES_PATH}/postlink.mac.sh release x64 }else:linux:!android{ ubuntu1404 | ubuntu1604 { QMAKE_POST_LINK = $${COPYFILES_PATH}/postlink.linux_desktop.sh release postubuntu1204 } else { QMAKE_POST_LINK = $${COPYFILES_PATH}/postlink.linux_desktop.sh release } QMAKE_PRE_LINK = $${COPYFILES_PATH}/copyfiles_pre release linux } } #Source file(s) SOURCES += ./main.cpp \ ./asstudiowrapper.cpp \ ./qtsingleapplication.cpp \ ./qtlocalpeer.cpp \ ./qtlockedfile.cpp # QApplication HEADERS += ./qtsingleapplication.h \ ./qtlocalpeer.h \ ./qtlockedfile.h \ ./asstudiowrapper.h
[Edit: added missing coding tags SGaist]