调整arm64的编译文件
This commit is contained in:
parent
d562458dba
commit
f9abf4eaef
|
@ -18,9 +18,9 @@ RC_ICONS = ../../../../app/scanner/image_rsc/logo/logo.ico
|
||||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
LIBS += -L../../../../../Release/bin/uos/aarch64 -lHGBase -lHGImgFmt -lHGImgProc -lpdf -lmupdf -lhgdriver -lsane-hgsane
|
LIBS += -L../../../../../release/uos/aarch64 -lHGBase -lHGImgFmt -lHGImgProc -lpdf -lmupdf -lhgdriver -lsane-hgsane
|
||||||
CONFIG(release, debug|release) {
|
CONFIG(release, debug|release) {
|
||||||
DESTDIR = ../../../../../Release/bin/uos/aarch64/
|
DESTDIR = ../../../../../release/uos/aarch64/
|
||||||
}
|
}
|
||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
|
|
||||||
|
@ -29,8 +29,7 @@ unix {
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/../../../../ui/
|
INCLUDEPATH += $$PWD/../../../../ui/
|
||||||
INCLUDEPATH += $$PWD/../../../../app/scanner/
|
INCLUDEPATH += $$PWD/../../../../app/scanner/
|
||||||
INCLUDEPATH += $$PWD/../../../../../Release/include/
|
INCLUDEPATH += $$PWD/../../../../../sdk/include/
|
||||||
INCLUDEPATH += $$PWD/../../../../../Release/include/sane/
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
../../../../app/scanner/dialog_aquireinto.cpp \
|
../../../../app/scanner/dialog_aquireinto.cpp \
|
||||||
|
@ -133,7 +132,8 @@ FORMS += \
|
||||||
../../../../app/scanner/dialog_imageeditor.ui
|
../../../../app/scanner/dialog_imageeditor.ui
|
||||||
|
|
||||||
TRANSLATIONS += \
|
TRANSLATIONS += \
|
||||||
../../../../app/scanner/Scanner_zh_CN.ts
|
../../../../app/scanner/Scanner_zh_CN.ts \
|
||||||
|
../../../../app/scanner/qt_zh_CN.ts
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
../../../../app/scanner/Scanner_resource.qrc
|
../../../../app/scanner/Scanner_resource.qrc
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</Compiler>
|
</Compiler>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release">
|
<Target title="Release">
|
||||||
<Option output="../../../../../Release/bin/uos/aarch64/HGBase" prefix_auto="1" extension_auto="1" />
|
<Option output="../../../../../release/uos/aarch64/HGBase" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="obj/Release/" />
|
<Option object_output="obj/Release/" />
|
||||||
<Option type="3" />
|
<Option type="3" />
|
||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</Compiler>
|
</Compiler>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release">
|
<Target title="Release">
|
||||||
<Option output="../../../../../Release/bin/uos/aarch64/HGImgFmt" prefix_auto="1" extension_auto="1" />
|
<Option output="../../../../../release/uos/aarch64/HGImgFmt" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="obj/Release/" />
|
<Option object_output="obj/Release/" />
|
||||||
<Option type="3" />
|
<Option type="3" />
|
||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
<Add option="-L../../../../third_party/libzip/uos/aarch64/lib -lzip" />
|
<Add option="-L../../../../third_party/libzip/uos/aarch64/lib -lzip" />
|
||||||
<Add option="-L../../../../third_party/tinyxml2/uos/aarch64/lib -ltinyxml2" />
|
<Add option="-L../../../../third_party/tinyxml2/uos/aarch64/lib -ltinyxml2" />
|
||||||
<Add option="-L../../../../third_party/zlib/uos/aarch64/lib -lz" />
|
<Add option="-L../../../../third_party/zlib/uos/aarch64/lib -lz" />
|
||||||
<Add option="-L../../../../../Release/bin/uos/aarch64 -lHGBase -lmupdf -lpdf" />
|
<Add option="-L../../../../../release/uos/aarch64 -lHGBase -lmupdf -lpdf" />
|
||||||
<Add option="-Wl,--exclude-libs,ALL" />
|
<Add option="-Wl,--exclude-libs,ALL" />
|
||||||
<Add option="-z defs" />
|
<Add option="-z defs" />
|
||||||
<Add option="-B direct" />
|
<Add option="-B direct" />
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</Compiler>
|
</Compiler>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release">
|
<Target title="Release">
|
||||||
<Option output="../../../../../Release/bin/uos/aarch64/HGImgProc" prefix_auto="1" extension_auto="1" />
|
<Option output="../../../../../release/uos/aarch64/HGImgProc" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="obj/Release/" />
|
<Option object_output="obj/Release/" />
|
||||||
<Option type="3" />
|
<Option type="3" />
|
||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
<Add option="-lopencv_core" />
|
<Add option="-lopencv_core" />
|
||||||
<Add option="-littnotify" />
|
<Add option="-littnotify" />
|
||||||
<Add option="-lzlib" />
|
<Add option="-lzlib" />
|
||||||
<Add option="-L../../../../../Release/bin/uos/aarch64 -lHGBase" />
|
<Add option="-L../../../../../release/uos/aarch64 -lHGBase" />
|
||||||
<Add option="-ldl" />
|
<Add option="-ldl" />
|
||||||
<Add option="-lpthread" />
|
<Add option="-lpthread" />
|
||||||
<Add option="-Wl,--exclude-libs,ALL" />
|
<Add option="-Wl,--exclude-libs,ALL" />
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</Compiler>
|
</Compiler>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release">
|
<Target title="Release">
|
||||||
<Option output="../../../../../Release/bin/uos/aarch64/HGSaneUser" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Release/HGSaneUser" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="obj/Release/" />
|
<Option object_output="obj/Release/" />
|
||||||
<Option type="3" />
|
<Option type="3" />
|
||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<Add option="-Wall" />
|
<Add option="-Wall" />
|
||||||
</Compiler>
|
</Compiler>
|
||||||
<Linker>
|
<Linker>
|
||||||
<Add option="-L../../../../../Release/bin/uos/aarch64/" />
|
<Add option="-L../../../../../release/uos/aarch64/" />
|
||||||
<Add option="-lHGBase" />
|
<Add option="-lHGBase" />
|
||||||
<Add option="-lHGImgFmt" />
|
<Add option="-lHGImgFmt" />
|
||||||
<Add option="-lmupdf" />
|
<Add option="-lmupdf" />
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</Compiler>
|
</Compiler>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release">
|
<Target title="Release">
|
||||||
<Option output="../../../../../Release/bin/uos/aarch64/HGWebService" prefix_auto="1" extension_auto="1" />
|
<Option output="../../../../../release/uos/aarch64/HGWebService" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="obj/Release/" />
|
<Option object_output="obj/Release/" />
|
||||||
<Option type="1" />
|
<Option type="1" />
|
||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
|
@ -34,13 +34,12 @@
|
||||||
<Add directory="../../../../third_party/sha1" />
|
<Add directory="../../../../third_party/sha1" />
|
||||||
<Add directory="../../../../third_party/base64" />
|
<Add directory="../../../../third_party/base64" />
|
||||||
<Add directory="../../../../third_party/sane" />
|
<Add directory="../../../../third_party/sane" />
|
||||||
<Add directory="../../../../../Release/include" />
|
<Add directory="../../../../../sdk/include" />
|
||||||
<Add directory="../../../../third_party/libzip/uos/aarch64/include" />
|
<Add directory="../../../../third_party/libzip/uos/aarch64/include" />
|
||||||
<Add directory="../../../../third_party/json" />
|
<Add directory="../../../../third_party/json" />
|
||||||
<Add directory="../../../../../Release/include/sane/" />
|
|
||||||
</Compiler>
|
</Compiler>
|
||||||
<Linker>
|
<Linker>
|
||||||
<Add option="-L../../../../../Release/bin/uos/aarch64" />
|
<Add option="-L../../../../../release/uos/aarch64" />
|
||||||
<Add option="-lHGBase" />
|
<Add option="-lHGBase" />
|
||||||
<Add option="-lHGImgFmt" />
|
<Add option="-lHGImgFmt" />
|
||||||
<Add option="-lmupdf" />
|
<Add option="-lmupdf" />
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
echo "Build QT base components require tool 'cbp2make' ..."
|
||||||
|
sudo apt-get install cbp2make
|
||||||
|
|
||||||
|
cd ./build/uos/aarch64/HGBase
|
||||||
|
cbp2make -in HGBase.cbp -out makefile
|
||||||
|
make
|
||||||
|
sudo mv ../../../../../release/uos/aarch64/HGBase.so ../../../../../release/uos/aarch64/libHGBase.so
|
||||||
|
sudo rm -rf ./bin
|
||||||
|
sudo rm -rf ./obj
|
||||||
|
sudo rm -f makefile
|
||||||
|
|
||||||
|
cd ../HGImgFmt
|
||||||
|
cbp2make -in HGImgFmt.cbp -out makefile
|
||||||
|
make
|
||||||
|
sudo mv ../../../../../release/uos/aarch64/HGImgFmt.so ../../../../../release/uos/aarch64/libHGImgFmt.so
|
||||||
|
sudo rm -rf ./bin
|
||||||
|
sudo rm -rf ./obj
|
||||||
|
sudo rm -f makefile
|
||||||
|
|
||||||
|
cd ../HGImgProc
|
||||||
|
cbp2make -in HGImgProc.cbp -out makefile
|
||||||
|
make
|
||||||
|
sudo mv ../../../../../release/uos/aarch64/HGImgProc.so ../../../../../release/uos/aarch64/libHGImgProc.so
|
||||||
|
sudo rm -rf ./bin
|
||||||
|
sudo rm -rf ./obj
|
||||||
|
sudo rm -f makefile
|
||||||
|
|
||||||
|
cd ../HGWebService
|
||||||
|
cbp2make -in HGWebService.cbp -out makefile
|
||||||
|
make
|
||||||
|
sudo rm -rf ./bin
|
||||||
|
sudo rm -rf ./obj
|
||||||
|
sudo rm -f makefile
|
||||||
|
|
||||||
|
cd ../../../../build-qt/uos/aarch64/HGSolution
|
||||||
|
qmake -makefile HGScanner.pro
|
||||||
|
make
|
||||||
|
sudo rm -f *.o
|
||||||
|
sudo rm -f *.h
|
||||||
|
sudo rm -f *.cpp
|
||||||
|
sudo rm -f .qmake.stash
|
||||||
|
sudo rm -f Makefile
|
Loading…
Reference in New Issue