[Marble-bugs] [marble] [Bug 362618] New: marble (from git) doesn't build with opencv 3.1 (only with opencv2)

desaparecido via KDE Bugzilla bugzilla_noreply at kde.org
Tue May 3 10:31:20 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=362618

            Bug ID: 362618
           Summary: marble (from git) doesn't build with opencv 3.1 (only
                    with opencv2)
           Product: marble
           Version: 2.0 (KDE Applications 16.08)
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: luis.davila.pc at gmail.com

from a while, I'd can't build marble, but I'd never taken the time to
investigate why, and finally after some test:
try to build marble from git with opencv 3.1 (repo version in Archlinux) I have
an error at the end of build process (see "actual results")
but downgrading opencv to 2 version (2.4.12.3 in my case) all builds fine

Reproducible: Always

Steps to Reproduce:
1.KF5 and plasma up to date to latest git commit
2.build marble from git with opencv3 > error
3.build marble from git with opencv2 > ok

Actual Results:  
[100%] Built target marbleQuick2
CMakeFiles/animation-video.dir/main.cpp.o: In function
`animatedFlight(Marble::MarbleWidget*)':
main.cpp:(.text+0x23e): undefined reference to
`cv::VideoWriter::VideoWriter(cv::String const&, int, double, cv::Size_<int>,
bool)'
main.cpp:(.text+0x577): undefined reference to `cv::VideoWriter::write(cv::Mat
const&)'
main.cpp:(.text+0x671): undefined reference to `cv::VideoWriter::write(cv::Mat
const&)'
main.cpp:(.text+0x73a): undefined reference to
`cv::VideoWriter::~VideoWriter()'
main.cpp:(.text+0x787): undefined reference to
`cv::VideoWriter::~VideoWriter()'
collect2: error: ld returned 1 exit status
examples/cpp/animation-video/CMakeFiles/animation-video.dir/build.make:133:
recipe for target 'examples/cpp/animation-video/animation-video' failed
make[2]: *** [examples/cpp/animation-video/animation-video] Error 1
CMakeFiles/Makefile2:10854: recipe for target
'examples/cpp/animation-video/CMakeFiles/animation-video.dir/all' failed
make[1]: *** [examples/cpp/animation-video/CMakeFiles/animation-video.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target marble-game
CMakeFiles/tour-preview.dir/tour-preview.cpp.o: In function
`animatedFlight(Marble::MarbleWidget*, Marble::GeoDataTour*)':
tour-preview.cpp:(.text+0x555): undefined reference to
`cv::VideoWriter::VideoWriter(cv::String const&, int, double, cv::Size_<int>,
bool)'
tour-preview.cpp:(.text+0x85d): undefined reference to
`cv::VideoWriter::write(cv::Mat const&)'
tour-preview.cpp:(.text+0x937): undefined reference to
`cv::VideoWriter::write(cv::Mat const&)'
tour-preview.cpp:(.text+0xa00): undefined reference to
`cv::VideoWriter::~VideoWriter()'
tour-preview.cpp:(.text+0xa88): undefined reference to
`cv::VideoWriter::~VideoWriter()'
collect2: error: ld returned 1 exit status
examples/cpp/tour-preview/CMakeFiles/tour-preview.dir/build.make:133: recipe
for target 'examples/cpp/tour-preview/tour-preview' failed
make[2]: *** [examples/cpp/tour-preview/tour-preview] Error 1
CMakeFiles/Makefile2:10943: recipe for target
'examples/cpp/tour-preview/CMakeFiles/tour-preview.dir/all' failed
make[1]: *** [examples/cpp/tour-preview/CMakeFiles/tour-preview.dir/all] Error
2
[100%] Built target marble_part
[100%] Built target marble
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...


Expected Results:  
build successfully marble with opencv3

Archlinux x86_64 (with [testing] repo enable)
KF5 5.22.0 (from git, latests commits)
Plasma 5.6.90 (from git, latest commits)
Qt 5.6.0

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list