Cross compilation openCV application

前端 未结 2 1754
误落风尘
误落风尘 2020-12-11 12:18

Hi guys I am doing an application in c++ for ARM. I have a application prototype which I compiled with cross compilation and it works very nice in the ARM. What I did was th

相关标签:
2条回答
  • 2020-12-11 13:06

    It seems that you need to set include path to your cross OpenCV installation:

    arm-linux-g++ -I/path/to/opencv/include IPCamera.cpp -o tru2
    

    When you call pkg-config it reports settings for you host system not for your arm cross toolchain.

    0 讨论(0)
  • 2020-12-11 13:13

    As @dennisfen suggest you may need to set include path as well as the library path to your cross OpenCV with the libraries you are using as follows:

    arm-linux-g++ -I/path/to/opencv/include -L/path/to/library IPCamera.cpp -o tru2 -lopencv_core -pthread
    
    0 讨论(0)
提交回复
热议问题