gpt4 book ai didi

qt - 如何将多个外部库添加到 Qt creator .pro (ubuntu)

转载 作者:行者123 更新时间:2023-12-04 13:19:10 26 4
gpt4 key购买 nike

我想在我的 qt 应用程序中添加两个外部库,我试过了:

LIBS += -L/usr/local/lib \
-lopencv_core \
-lopencv_imgproc \
-lopencv_highgui \
-lopencv_ml \
-lopencv_video \
-lopencv_features2d \
-lopencv_calib3d \
-lopencv_objdetect \
-lopencv_contrib \
-lopencv_legacy \
-lopencv_flann

LIBS += -L/opt/intel/composer_xe_2011_sp1.9.293/ipp/lib/intel64 \

-lpthread \
-lippcv \
-lstdc++ \
-lippvc \
-liomp5 \
-lippac \
-lipps \
-lippsc \
-lippi \
-lipps \
-lippm \
-lippr \
-lippj \
-lippvm \
-lippcor

它给了我那个错误:

Parse Error ('-lippvc -liomp5 -lippac -lipps -lippsc -lippi -lipps -lippm -lippr -lippj -lippvm -lippcor')

我在网上看了一些例子,但他们中的大多数只为一个图书馆做,或者用完全不同的窗口做..

谢谢

最佳答案

这对我有用:

 LIBS += -L/usr/local/lib -L/opt/intel/composer_xe_2011_sp1.9.293/ipp/lib/intel64
-lopencv_core \
-lopencv_imgproc \
-lopencv_highgui \
-lopencv_ml \
-lopencv_video \
-lopencv_features2d \
-lopencv_calib3d \
-lopencv_objdetect \
-lopencv_contrib \
-lopencv_legacy \
-lopencv_flann
-lpthread \
-lippcv \
-lstdc++ \
-lippvc \
-liomp5 \
-lippac \
-lipps \
-lippsc \
-lippi \
-lipps \
-lippm \
-lippr \
-lippj \
-lippvm \
-lippcor

关于qt - 如何将多个外部库添加到 Qt creator .pro (ubuntu),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9563747/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com