linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
452 stars 73 forks source link

build error : can't find -lchameleon ... #3562

Open ahmedmoselhi opened 1 year ago

ahmedmoselhi commented 1 year ago

SUMMARY | 问题概要

i got build error on manajro linux

STEPS TO REPRODUCE | 复现步骤

install package from aur

OBSERVED RESULT | 观察到的结果

g++ -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -pipe -fno-access-control -g -Wall -fprofile-arcs -ftest-coverage -O0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=4 -fno-fat-lto-objects -fuse-linker-plugin -Wl,-rpath,/home/ahmed/tmp/deepin-qt5integration-git/src/deepin-qt5integration-git/tests/styleplugins/chameleon/../../../bin/plugins/styles -fPIC -o tests ut_builtinengine.o ut_qsvgiconengine.o ut_dciiconengine.o ut_chameleonstyle.o ut_qsvgiohandler.o ut_qdciiohandler.o dbuiltiniconengine.o dciiconengine.o qsvgiconengine.o qsvgiohandler.o qdciiohandler.o chameleonstyle.o main.o qrc_theme-icons.o qrc_icons.o qrc_dtk_dci_test_res.o qrc_dci_test_files.o   -lgtest -L/home/ahmed/tmp/deepin-qt5integration-git/src/deepin-qt5integration-git/tests/styleplugins/chameleon/../../../bin/plugins/styles -lchameleon /usr//usr/lib/libdtkwidget.so /usr/lib/libdtkgui.so /usr/lib/libQt5PrintSupport.so /usr/lib/libQt5Widgets.so /usr/lib/libQt5X11Extras.so /usr/lib/libQt5Gui.so /usr/lib/libdtkcore.so /usr/lib/libQt5DBus.so /usr/lib/libQt5Xml.so /usr/lib/libQt5Network.so /usr/lib/libQt5Concurrent.so /usr/lib/libQt5Core.so -lGL -lpthread   
/usr/bin/ld: cannot find -lchameleon: No such file or directory
/usr/bin/ld: cannot find /usr//usr/lib/libdtkwidget.so: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:329: tests] Error 1
make[1]: Leaving directory '/home/ahmed/tmp/deepin-qt5integration-git/src/deepin-qt5integration-git/tests'
make: *** [Makefile:151: sub-tests-make_first] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

EXPECTED RESULT | 期望的结果

No response

SOFTWARE/OS VERSIONS | 软件/系统版本信息

distribution : manjaro linux 19 package : deepin-qt5integration-git

ADDITIONAL INFORMATION | 额外补充

No response

BLumia commented 1 year ago

@justforlxz could you check if deepin-qt5integration-git declared the proper dependencies?

felixonmars commented 1 year ago

I had to use -j1 on Arch to avoid similar errors. The Makefile may be missing a target dependency somewhere.

kegechen commented 1 year ago

try append tests.depends += styleplugins to qt5integration.pro