Compile Problems on Ubnutu 14.04
Closed this issue · 2 comments
mbeltagy commented
After I installed OpenCV 3.2.0, OpenCV.jl
was looking for the headers in the wrong place, so I had to
sudo ln -s /usr/local/include/opencv2 /usr/include/x86_64-linux-gnu/
But then on executing using OpenCV
, I got the following errors.
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/opencv2/stitching/detail/warpers.hpp:513:
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/opencv2/stitching/detail/warpers_inl.hpp:134:36: error: too few arguments to function call, expected 3, have 2
projector_.setCameraParams(K, R);
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/opencv2/stitching/detail/warpers.hpp:501:5: note: in instantiation of member function 'cv::detail::RotationWarperBase<cv::detail::PlanePortraitProjector>::warpRoi' requested here
PlanePortraitWarper(float scale) { projector_.scale = scale; }
^
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/opencv2/stitching/detail/warpers.hpp:80:5: note: 'setCameraParams' declared here
void setCameraParams(const Mat &K = Mat::eye(3, 3, CV_32F),
^
In file included from :1:
:2:5: error: no member named 'ACCESS_READ' in namespace 'cv'
cv::ACCESS_READ;
~~~~^
:2:5: error: no member named 'ACCESS_READ' in namespace 'cv'
cv::ACCESS_READ;
~~~~^
ERROR: LoadError: LoadError: LoadError: A failure occured while parsing the function body
Stacktrace:
[1] ParseFunctionStatementBody(::Cxx.ClangCompiler, ::Cxx.CppPtr{Cxx.CxxQualType{Cxx.CppBaseType{Symbol("clang::Decl")},(false, false, false)},(false, false, false)}) at /home/elbeltagy/.julia/Cxx/src/cxxstr.jl:248
[2] #CreateFunctionWithBody#52(::Array{Any,1}, ::Symbol, ::Int64, ::Int64, ::Function, ::Cxx.ClangCompiler, ::String) at /home/elbeltagy/.julia/Cxx/src/cxxstr.jl:360
[3] (::Cxx.#kw##CreateFunctionWithBody)(::Array{Any,1}, ::Cxx.#CreateFunctionWithBody, ::Cxx.ClangCompiler, ::String) at ./<missing>:0
[4] cxxstr_impl(...) at /home/elbeltagy/.julia/Cxx/src/cxxstr.jl:699
[5] macro expansion at /home/elbeltagy/.julia/CVCore/src/const.jl:124 [inlined]
[6] anonymous at ./<missing>:?
[7] include_from_node1(::String) at ./loading.jl:539
[8] include(::String) at ./sysimg.jl:14
[9] include_from_node1(::String) at ./loading.jl:539
[10] eval(::Module, ::Any) at ./boot.jl:235
[11] require(::Symbol) at ./loading.jl:453
[12] include_from_node1(::String) at ./loading.jl:539
[13] eval(::Module, ::Any) at ./boot.jl:235
[14] require(::Symbol) at ./loading.jl:453
while loading /home/elbeltagy/.julia/CVCore/src/const.jl, in expression starting on line 70
while loading /home/elbeltagy/.julia/CVCore/src/CVCore.jl, in expression starting on line 121
while loading /home/elbeltagy/.julia/OpenCV/src/OpenCV.jl, in expression starting on line 80
maxruby commented
@kvmanohar22 . Can you help with this issue? I do not have a Linux
setup and can not test easily what it breaks on Linux OS.
mbeltagy commented
After some digging, I found that I was using the wrong OpenCV at https://github.com/JuliaOpenCV/OpenCV.jl
closing.