2017-02-16 38 views
0

私のubuntoマシンでopenCVをコンパイルしようとしました。 私は武装させるコンパイルするとき、私は下のリンクエラー取得しています: uiEscoreDrv.o:機能main': uiEscoreDrv.cpp:(.text+0x2a8): undefined reference to CVで:: namedWindow(STD ::文字列のconst &、INT「) uiEscoreDrv.cpp :(テキスト+ 0x33c):未定義の。cv::_InputArray::_InputArray(cv::Mat const&)' uiEscoreDrv.cpp:(.text+0x3a0): undefined reference to CV ::関数imshow(STD ::文字列のconst &に未定義の参照、CV :: _ InputArray:cv::_InputArray::_InputArray(cv::Mat const&)' uiEscoreDrv.cpp:(.text+0x34c): undefined reference toのcv :: _ OutputArray :: _ OutputArray(CV ::マット&「) uiEscoreDrv.cpp :(テキスト+ 0x390)への参照constの& ') uiEscoreDrv.cpp :(テキスト+ 0x4de):。cv::destroyWindow(std::string const&)' uiEscoreDrv.o: In function displayCoreOutput(escore_output &への未定義参照)':。 uiEscoreDrv.cpp :(テキスト+ 0x1304):cv::putText(cv::Mat&, std::string const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)' uiEscoreDrv.cpp:(.text+0x1358): undefined reference toのcv :: putText(CVへの未定義の参照: :&、std :: string const &、cv :: Point_、int、double、cv :: Scalar_、int、int、bool) ' uiEscoreDrv.cpp :(。テキスト+ 0x13ac):未定義cv::putText(cv::Mat&, std::string const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)' uiEscoreDrv.cpp:(.text+0x1452): undefined reference toへの参照cv: :putText(cv :: Mat &、std :: string const &、cv :: Point_、int、double、cv :: Scalar_、int、int、bool) ' uiEscoreDrv.cpp :(。テキスト+ 0x1482):未定義機能displayAnalytics(escore_output&)': uiEscoreDrv.cpp:(.text+0x1b44): undefined reference to CV ::矩形(CV ::マット&において、CV ::ポイント、CV:cv::_InputArray::_InputArray(cv::Mat const&)' uiEscoreDrv.cpp:(.text+0x1492): undefined reference to CV ::関数imshow(スタンダード::文字列CONST &、CV :: InputArrayのCONST &)」 uiEscoreDrv.oを参照:: Point_、cv :: Scalar_ const &、int、int、int) ' uiEscoreDr v.cpp :(。テキスト+ 0x1be0):未定義参照へcv::putText(cv::Mat&, std::string const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)' uiEscoreDrv.cpp:(.text+0x1cb6): undefined reference to cv :: rectangle(cv :: mat)&、cv :: Point_、cv :: Point_、cv :: Scalar_ const &、int、int、int) ' uiEscoreDrv.cpp :(。テキスト+ 0x1e58):未定義参照cv::rectangle(cv::Mat&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)' uiEscoreDrv.cpp:(.text+0x1e88): undefined reference toへcv :: _ InputArray :: _ InputArray(cv :: Mat const &) ' uiEscoreDrv.cpp :(。テキスト+ 0x1e98):未定義の `cv: :関数imshow(STD ::文字列のconst &、CV :: _ InputArrayのconstの&「) collect2は:エラー:ldは、1つの終了ステータス ubuntuでARM用openCVをクロスコンパイル

私は通常のLinuxにコンパイル

を返された私は、この問題を得るいけません。

私からすべての手順を行っている:私は私のMakefileに以下追加した http://docs.opencv.org/2.4/doc/tutorials/introduction/crosscompilation/arm_crosscompile_with_cmake.html

: LDFLAGS + = -L./ -Lは/ usr/local/libの-lutils pkg-config --cflags --libs --static opencv

コンパイル後、以下のステップを実行しました。 cd/usr/local/lib sudo cp -rf /home/user/eyeSight_projects/opencv-3.2.0/platforms/linux/build_hardfp/install/lib/*。

しかし、私はまだ、このエラーを取得しています...

間違っている可能性がどのような任意のアイデア

おかげで、 オレン

答えて

0

それは私がコンパイル行に-Iを追加didntの :-)コンパイルの問題でした:

LOCAL_INCLUDE_FLAGS = -Iは/ usr/local/-Iが含まれます。.. /../api/ -I ../../ $(CROSS_COMPILE)g ++ -std = C++ 11 -lsdtC++ -fPIC -c -o uiEscoreDrv.o -fPIC $(CFLAGS)$(LOCAL_INCLUDE_FLAGS)uiEscoreDrv。cpp

関連する問題