[llvm-dev] Opencv tutorial code compilation with clang
Corda, S. via llvm-dev
llvm-dev at lists.llvm.org
Wed Oct 16 10:21:38 PDT 2019
Hi all,
I'm trying to compile the following code using clang++:
https://github.com/opencv/opencv/blob/master/samples/cpp/tutorial_code/ImgProc/Morphology_1.cpp
With g++ I don't have problem I just did:
g++ Morphology_1.cpp -I /workspace/opencv/modules/core/include/ -I /workspace/opencv/modules/imgproc/include/ -I /workspace/opencv/modules/core/include/ -I /workspace/opencv/include/opencv2/ -I /workspace/opencv/build/ -I /workspace/opencv/modules/highgui/include/ -I /workspace/opencv/modules/imgcodecs/include/ -I /workspace/opencv/modules/videoio/include/ -L /workspace/opencv/build/lib/ -std=c++11 -o Morphology -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_imgcodecs
cp ../../../data/LinuxLogo.jpg LinuxLogo.jpg
sudo ldconfig -v
Thanks,
Stefano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191016/32a52918/attachment.html>
More information about the llvm-dev
mailing list