mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
Fixed linking of VOIP plugin for msys2
This commit is contained in:
parent
7a0dfbcda9
commit
1ee38877ca
@ -65,73 +65,40 @@ win32 {
|
|||||||
DEPENDPATH += . $$INC_DIR
|
DEPENDPATH += . $$INC_DIR
|
||||||
INCLUDEPATH += . $$INC_DIR
|
INCLUDEPATH += . $$INC_DIR
|
||||||
|
|
||||||
OPENCV_VERSION = "341"
|
|
||||||
USE_PRECOMPILED_LIBS =
|
USE_PRECOMPILED_LIBS =
|
||||||
for(lib, RS_LIB_DIR) {
|
for(lib, RS_LIB_DIR) {
|
||||||
#message(Scanning $$lib)
|
#message(Scanning $$lib)
|
||||||
exists( $$lib/opencv/libopencv_core$${OPENCV_VERSION}.a) {
|
isEmpty(USE_PRECOMPILED_LIBS) {
|
||||||
isEmpty(USE_PRECOMPILED_LIBS) {
|
exists($$lib/opencv/libopencv_core.a) {
|
||||||
message(Get pre-compiled opencv $$OPENCV_VERSION libraries here:)
|
message(Get pre-compiled opencv libraries here:)
|
||||||
message($$lib)
|
message($$lib/opencv)
|
||||||
LIBS += -L"$$lib/opencv"
|
LIBS += -L"$$lib/opencv"
|
||||||
LIBS += -lopencv_core$$OPENCV_VERSION -lopencv_highgui$$OPENCV_VERSION -lopencv_imgproc$$OPENCV_VERSION -lopencv_videoio$$OPENCV_VERSION -lopencv_imgcodecs$$OPENCV_VERSION -llibwebp
|
|
||||||
USE_PRECOMPILED_LIBS = 1
|
USE_PRECOMPILED_LIBS = 1
|
||||||
}
|
}
|
||||||
}
|
exists($$lib/libopencv_core.dll.a) {
|
||||||
exists( $$lib/opencv/libopencv_core.a) {
|
|
||||||
isEmpty(USE_PRECOMPILED_LIBS) {
|
|
||||||
message(Get pre-compiled opencv libraries here:)
|
message(Get pre-compiled opencv libraries here:)
|
||||||
message($$lib)
|
message($$lib)
|
||||||
LIBS += -L"$$lib/opencv"
|
LIBS += -L"$$lib"
|
||||||
LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc
|
|
||||||
USE_PRECOMPILED_LIBS = 1
|
USE_PRECOMPILED_LIBS = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exists( $$lib/libopencv_core.dll.a) {
|
|
||||||
isEmpty(USE_PRECOMPILED_LIBS) {
|
|
||||||
message(Get pre-compiled opencv libraries here:)
|
|
||||||
message($$lib)
|
|
||||||
LIBS += -L"$$lib/opencv"
|
|
||||||
LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc
|
|
||||||
USE_PRECOMPILED_LIBS = 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
exists( $$lib/opencv/libopencv_videoio.a) {
|
|
||||||
message(videoio found in opencv libraries.)
|
|
||||||
message($$lib)
|
|
||||||
LIBS += -lopencv_videoio
|
|
||||||
}
|
|
||||||
exists( $$lib/libopencv_videoio.dll.a) {
|
|
||||||
message(videoio found in opencv libraries.)
|
|
||||||
message($$lib)
|
|
||||||
LIBS += -lopencv_videoio
|
|
||||||
}
|
|
||||||
exists( $$lib/opencv/libopencv_imgcodecs.a) {
|
|
||||||
message(videoio found in opencv libraries.)
|
|
||||||
message($$lib)
|
|
||||||
LIBS += -lopencv_imgcodecs
|
|
||||||
}
|
|
||||||
exists( $$lib/opencv/liblibwebp.a) {
|
|
||||||
message(videoio found in opencv libraries.)
|
|
||||||
message($$lib)
|
|
||||||
LIBS += -llibwebp
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
isEmpty(USE_PRECOMPILED_LIBS) {
|
isEmpty(USE_PRECOMPILED_LIBS) {
|
||||||
message(Use system opencv libraries.)
|
message(Use system opencv libraries.)
|
||||||
LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc
|
|
||||||
}
|
}
|
||||||
LIBS += -lole32 -loleaut32 -luuid -lvfw32
|
|
||||||
LIBS += -lavifil32 -lavicap32 -lavcodec -lavutil -lswresample
|
|
||||||
|
|
||||||
# Check for msys2
|
LIBS += -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_videoio -lopencv_imgcodecs -llibwebp -llibtiff -llibpng -llibopenjp2 -lIlmImf
|
||||||
!isEmpty(PREFIX_MSYS2) {
|
LIBS += -lole32 -loleaut32 -luuid -lvfw32
|
||||||
message(Use msys2 opencv4.)
|
|
||||||
INCLUDEPATH += "$${PREFIX_MSYS2}/include/opencv4"
|
# Check for msys2
|
||||||
}
|
!isEmpty(PREFIX_MSYS2) {
|
||||||
|
message(Use msys2 opencv4.)
|
||||||
|
INCLUDEPATH += "$${PREFIX_MSYS2}/include/opencv4"
|
||||||
|
} else {
|
||||||
|
LIBS += -llibjpeg-turbo -lzlib
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#################################### MacOSX #####################################
|
#################################### MacOSX #####################################
|
||||||
|
|
||||||
macx {
|
macx {
|
||||||
|
Loading…
Reference in New Issue
Block a user