Problems compiling beta5 on Debian sid

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems compiling beta5 on Debian sid

Bugzilla from tobias@schula.org
Hi!

When trying to compile the current beta, make stops at 9%, complaining about
opencv. I have the libcv from the debian repos (libcv-dev_2.1.0-4_amd64.deb)
installed and digikam 1.9 compiles and installes fine. Here are the error
messages make gives me:

[  8%] Built target kface_automoc
[  9%] Building CXX object
extra/libkface/libkface/CMakeFiles/kface.dir/kfaceutils.cpp.o
In file included from /usr/include/opencv/cxcore.h:1826:0,                                                      
                 from /usr/include/opencv/cv.h:58,
                 from /usr/local/src/digikam/digikam-2.0.0-
beta5/extra/libkface/libkface/kfaceutils.h:35,
                 from /usr/local/src/digikam/digikam-2.0.0-
beta5/extra/libkface/libkface/kfaceutils.cpp:30:
/usr/include/opencv/cxcore.hpp:177:13: error: ‘ptrdiff_t’ does not name a type
In file included from /usr/include/opencv/cxcore.hpp:2307:0,
                 from /usr/include/opencv/cxcore.h:1826,
                 from /usr/include/opencv/cv.h:58,
                 from /usr/local/src/digikam/digikam-2.0.0-
beta5/extra/libkface/libkface/kfaceutils.h:35,
                 from /usr/local/src/digikam/digikam-2.0.0-
beta5/extra/libkface/libkface/kfaceutils.cpp:30:
/usr/include/opencv/cxoperations.hpp:2043:15: error: ‘ptrdiff_t’ does not name
a type
/usr/include/opencv/cxoperations.hpp:2591:31: error: ‘ptrdiff_t’ does not name
a type
In file included from /usr/include/opencv/cxcore.hpp:2308:0,
                 from /usr/include/opencv/cxcore.h:1826,
                 from /usr/include/opencv/cv.h:58,
                 from /usr/local/src/digikam/digikam-2.0.0-
beta5/extra/libkface/libkface/kfaceutils.h:35,
                 from /usr/local/src/digikam/digikam-2.0.0-
beta5/extra/libkface/libkface/kfaceutils.cpp:30:
/usr/include/opencv/cxmat.hpp: In member function ‘void
cv::Mat::locateROI(cv::Size&, cv::Point&) const’:
/usr/include/opencv/cxmat.hpp:387:5: error: ‘ptrdiff_t’ was not declared in
this scope
/usr/include/opencv/cxmat.hpp:387:5: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:  
‘std::ptrdiff_t’
/usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:  
‘std::ptrdiff_t’
/usr/include/opencv/cxmat.hpp:387:15: error: expected ‘;’ before ‘delta1’
/usr/include/opencv/cxmat.hpp:389:9: error: ‘delta1’ was not declared in this
scope
/usr/include/opencv/cxmat.hpp:398:31: error: ‘delta2’ was not declared in this
scope
/usr/include/opencv/cxmat.hpp: In member function ‘cv::Point
cv::MatConstIterator_<_Tp>::pos() const’:
/usr/include/opencv/cxmat.hpp:3459:9: error: ‘ptrdiff_t’ was not declared in
this scope
/usr/include/opencv/cxmat.hpp:3459:9: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:  
‘std::ptrdiff_t’
/usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:  
‘std::ptrdiff_t’
/usr/include/opencv/cxmat.hpp:3459:19: error: expected ‘;’ before ‘ofs’
/usr/include/opencv/cxmat.hpp:3460:23: error: ‘ofs’ was not declared in this
scope
/usr/include/opencv/cxmat.hpp:3460:66: error: expected ‘)’ before ‘y’
/usr/include/opencv/cxmat.hpp:3465:9: error: ‘ptrdiff_t’ was not declared in
this scope
/usr/include/opencv/cxmat.hpp:3465:9: note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:  
‘std::ptrdiff_t’
/usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:  
‘std::ptrdiff_t’
/usr/include/opencv/cxmat.hpp:3465:19: error: expected ‘;’ before ‘ofs’
/usr/include/opencv/cxmat.hpp:3466:23: error: ‘ofs’ was not declared in this
scope
make[2]: *** [extra/libkface/libkface/CMakeFiles/kface.dir/kfaceutils.cpp.o]
Fehler 1
make[1]: *** [extra/libkface/libkface/CMakeFiles/kface.dir/all] Fehler 2
make: *** [all] Fehler 2
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling beta5 on Debian sid

Philip Johnsson
libcv-dev is just one part of opencv you will also need to install
libcvaux-dev and libhighgui-dev which are the other parts of opencv
development packages on debian/ubuntu systems.

/Philip


On Tue, May 10, 2011 at 1:44 PM, Tobias Schula <[hidden email]> wrote:

> Hi!
>
> When trying to compile the current beta, make stops at 9%, complaining about
> opencv. I have the libcv from the debian repos (libcv-dev_2.1.0-4_amd64.deb)
> installed and digikam 1.9 compiles and installes fine. Here are the error
> messages make gives me:
>
> [  8%] Built target kface_automoc
> [  9%] Building CXX object
> extra/libkface/libkface/CMakeFiles/kface.dir/kfaceutils.cpp.o
> In file included from /usr/include/opencv/cxcore.h:1826:0,
>                 from /usr/include/opencv/cv.h:58,
>                 from /usr/local/src/digikam/digikam-2.0.0-
> beta5/extra/libkface/libkface/kfaceutils.h:35,
>                 from /usr/local/src/digikam/digikam-2.0.0-
> beta5/extra/libkface/libkface/kfaceutils.cpp:30:
> /usr/include/opencv/cxcore.hpp:177:13: error: ‘ptrdiff_t’ does not name a type
> In file included from /usr/include/opencv/cxcore.hpp:2307:0,
>                 from /usr/include/opencv/cxcore.h:1826,
>                 from /usr/include/opencv/cv.h:58,
>                 from /usr/local/src/digikam/digikam-2.0.0-
> beta5/extra/libkface/libkface/kfaceutils.h:35,
>                 from /usr/local/src/digikam/digikam-2.0.0-
> beta5/extra/libkface/libkface/kfaceutils.cpp:30:
> /usr/include/opencv/cxoperations.hpp:2043:15: error: ‘ptrdiff_t’ does not name
> a type
> /usr/include/opencv/cxoperations.hpp:2591:31: error: ‘ptrdiff_t’ does not name
> a type
> In file included from /usr/include/opencv/cxcore.hpp:2308:0,
>                 from /usr/include/opencv/cxcore.h:1826,
>                 from /usr/include/opencv/cv.h:58,
>                 from /usr/local/src/digikam/digikam-2.0.0-
> beta5/extra/libkface/libkface/kfaceutils.h:35,
>                 from /usr/local/src/digikam/digikam-2.0.0-
> beta5/extra/libkface/libkface/kfaceutils.cpp:30:
> /usr/include/opencv/cxmat.hpp: In member function ‘void
> cv::Mat::locateROI(cv::Size&, cv::Point&) const’:
> /usr/include/opencv/cxmat.hpp:387:5: error: ‘ptrdiff_t’ was not declared in
> this scope
> /usr/include/opencv/cxmat.hpp:387:5: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:
> ‘std::ptrdiff_t’
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:
> ‘std::ptrdiff_t’
> /usr/include/opencv/cxmat.hpp:387:15: error: expected ‘;’ before ‘delta1’
> /usr/include/opencv/cxmat.hpp:389:9: error: ‘delta1’ was not declared in this
> scope
> /usr/include/opencv/cxmat.hpp:398:31: error: ‘delta2’ was not declared in this
> scope
> /usr/include/opencv/cxmat.hpp: In member function ‘cv::Point
> cv::MatConstIterator_<_Tp>::pos() const’:
> /usr/include/opencv/cxmat.hpp:3459:9: error: ‘ptrdiff_t’ was not declared in
> this scope
> /usr/include/opencv/cxmat.hpp:3459:9: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:
> ‘std::ptrdiff_t’
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:
> ‘std::ptrdiff_t’
> /usr/include/opencv/cxmat.hpp:3459:19: error: expected ‘;’ before ‘ofs’
> /usr/include/opencv/cxmat.hpp:3460:23: error: ‘ofs’ was not declared in this
> scope
> /usr/include/opencv/cxmat.hpp:3460:66: error: expected ‘)’ before ‘y’
> /usr/include/opencv/cxmat.hpp:3465:9: error: ‘ptrdiff_t’ was not declared in
> this scope
> /usr/include/opencv/cxmat.hpp:3465:9: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:
> ‘std::ptrdiff_t’
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:
> ‘std::ptrdiff_t’
> /usr/include/opencv/cxmat.hpp:3465:19: error: expected ‘;’ before ‘ofs’
> /usr/include/opencv/cxmat.hpp:3466:23: error: ‘ofs’ was not declared in this
> scope
> make[2]: *** [extra/libkface/libkface/CMakeFiles/kface.dir/kfaceutils.cpp.o]
> Fehler 1
> make[1]: *** [extra/libkface/libkface/CMakeFiles/kface.dir/all] Fehler 2
> make: *** [all] Fehler 2
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling beta5 on Debian sid

Bugzilla from tobias@schula.org
Am Dienstag, 10. Mai 2011, 14:18:13 schrieb Philip Johnsson:
> libcv-dev is just one part of opencv you will also need to install
> libcvaux-dev and libhighgui-dev which are the other parts of opencv
> development packages on debian/ubuntu systems.

Already installed:

root@tobias-desktop:/home/tobias# apt-get install libhighgui-dev libcv-dev
libcvaux-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libcv-dev is already the newest version.
libcvaux-dev is already the newest version.
libhighgui-dev is already the newest version.


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users