problem compiling 4.4.0

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

problem compiling 4.4.0

Wybo
running bootstrap.linus in trusty I got stuck with:

  CMake Error at /usr/local/share/OpenCV/OpenCVModules.cmake:117 (message):
   The imported target "opencv_core" references the file

      "/usr/local/lib/libopencv_core.so.2.4.9"

   but this file does not exist.  Possible reasons include:

   * The file was deleted, renamed, or moved to another location.

   * An install or uninstall procedure did not complete successfully.

   * The installation package was faulty and contained

      "/usr/local/share/OpenCV/OpenCVModules.cmake"

   but not all the files it references.

Call Stack (most recent call first):
   /usr/local/share/OpenCV/OpenCVConfig.cmake:49 (include)
   extra/libkface/cmake/modules/MacroOpenCV.cmake:27 (FIND_PACKAGE)
   extra/libkface/CMakeLists.txt:50 (DETECT_OPENCV)


-- Configuring incomplete, errors occurred!
See also "/home/wybo/Downloads/digikam-4.4.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/wybo/Downloads/digikam-4.4.0/build/CMakeFiles/CMakeError.log".

The latter says:

/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status

What am I missing?
--
Wybo
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: problem compiling 4.4.0

Gilles Caulier-4
It's clear. Your OpenCV shared library install is broken on your system...

Gilles Caulier

2014-10-11 11:07 GMT+02:00 Wybo <[hidden email]>:

> running bootstrap.linus in trusty I got stuck with:
>
>  CMake Error at /usr/local/share/OpenCV/OpenCVModules.cmake:117 (message):
>   The imported target "opencv_core" references the file
>
>      "/usr/local/lib/libopencv_core.so.2.4.9"
>
>   but this file does not exist.  Possible reasons include:
>
>   * The file was deleted, renamed, or moved to another location.
>
>   * An install or uninstall procedure did not complete successfully.
>
>   * The installation package was faulty and contained
>
>      "/usr/local/share/OpenCV/OpenCVModules.cmake"
>
>   but not all the files it references.
>
> Call Stack (most recent call first):
>   /usr/local/share/OpenCV/OpenCVConfig.cmake:49 (include)
>   extra/libkface/cmake/modules/MacroOpenCV.cmake:27 (FIND_PACKAGE)
>   extra/libkface/CMakeLists.txt:50 (DETECT_OPENCV)
>
>
> -- Configuring incomplete, errors occurred!
> See also
> "/home/wybo/Downloads/digikam-4.4.0/build/CMakeFiles/CMakeOutput.log".
> See also
> "/home/wybo/Downloads/digikam-4.4.0/build/CMakeFiles/CMakeError.log".
>
> The latter says:
>
> /usr/bin/ld: cannot find -lpthreads
> collect2: error: ld returned 1 exit status
>
> What am I missing?
> --
> Wybo
> _______________________________________________
> 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: problem compiling 4.4.0

Wybo
On 2014-10-11 11:25, Gilles Caulier wrote:
> It's clear. Your OpenCV shared library install is broken on your system...
> Gilles Caulier

A reinstall of every opencv package did not help, but I now see that
libopencv_core.so.2.4.9 is looked for in /usr/local/lib/, while it is in
/usr/lib/x86_64-linux-gnu/.

How do I tell bootstrap.linux to look there?

>
> 2014-10-11 11:07 GMT+02:00 Wybo<[hidden email]>:
>> >running bootstrap.linus in trusty I got stuck with:
>> >
>> >  CMake Error at /usr/local/share/OpenCV/OpenCVModules.cmake:117 (message):
>> >   The imported target "opencv_core" references the file
>> >
>> >      "/usr/local/lib/libopencv_core.so.2.4.9"
>> >
>> >   but this file does not exist.  Possible reasons include:

--
Wybo
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: problem compiling 4.4.0

Gilles Caulier-4
There are few cmake args to pass using -Dxxx to indicate where OpenCV
is installed.

When you run bootstrap.linux script, cmake report errors with relevant
cmake argument to pass while configuration (typically the opencv lib
path)

Gilles Caulier

2014-10-11 12:18 GMT+02:00 Wybo <[hidden email]>:

> On 2014-10-11 11:25, Gilles Caulier wrote:
>>
>> It's clear. Your OpenCV shared library install is broken on your system...
>> Gilles Caulier
>
>
> A reinstall of every opencv package did not help, but I now see that
> libopencv_core.so.2.4.9 is looked for in /usr/local/lib/, while it is in
> /usr/lib/x86_64-linux-gnu/.
>
> How do I tell bootstrap.linux to look there?
>
>>
>> 2014-10-11 11:07 GMT+02:00 Wybo<[hidden email]>:
>>>
>>> >running bootstrap.linus in trusty I got stuck with:
>>> >
>>> >  CMake Error at /usr/local/share/OpenCV/OpenCVModules.cmake:117
>>> > (message):
>>> >   The imported target "opencv_core" references the file
>>> >
>>> >      "/usr/local/lib/libopencv_core.so.2.4.9"
>>> >
>>> >   but this file does not exist.  Possible reasons include:
>
>
> --
> Wybo
> _______________________________________________
> 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