Comment 8 for bug 1242111

Revision history for this message
Martin Uhrin (martin-uhrin) wrote : Re: [Bug 1242111] Re: CGALConfig.cmake contains incorrect boost libraries path

Interesting. It might be worth checking exactly what CGAL is linking to:

ldd /usr/lib/libCGAL.so

and using the correct ones from here in the config file. Could you
paste a copy of the error message you're getting?

On 16 January 2014 15:33, José Ignacio Carmona Villegas
<email address hidden> wrote:
> 2) Already thought of that. I purged all cmake generated files from the project and regenerated them after changing the aforementioned entry.
>
> 1) I've been searching for the .so files corresponding to the libboost
> and are the following:
>
> ~$ apt-file search /usr/lib/libboost_thread.so
> libboost-thread1.49-dev: /usr/lib/libboost_thread.so
> libboost-thread1.49.0: /usr/lib/libboost_thread.so.1.49.0
> libboost-thread1.54-dev: /usr/lib/libboost_thread.so
> libboost-thread1.54.0: /usr/lib/libboost_thread.so.1.54.0
> libboost1.49-dbg: /usr/lib/debug/usr/lib/libboost_thread.so.1.49.0
>
> ~$ apt-file search /usr/lib/x86_64-linux-gnu/libboost_thread.so
> libboost-thread1.53-dev: /usr/lib/x86_64-linux-gnu/libboost_thread.so
> libboost-thread1.53.0: /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.53.0
>
>
> Apparently I have two versions of them in /usr/lib, and one version in /usr/lib/x86_64-linux-gnu
>
> I could try purging them all and installing only one of them, Do you
> think that would work?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1242111
>
> Title:
> CGALConfig.cmake contains incorrect boost libraries path
>
> Status in “cgal” package in Ubuntu:
> Confirmed
>
> Bug description:
> The CGAL CMake config file (/usr/lib/CGAL/CGALConfig.cmake) contains
> the pre-saucy boost library paths. Specifically line 53:
>
> set(CGAL_3RD_PARTY_LIBRARIES
> "/usr/lib/libboost_thread.so;/usr/lib/libboost_system.so;/usr/lib/x86_64
> -linux-gnu/libpthread.so" )
>
> On 64-bit systems, the boost libraries now reside in /usr/lib/x86_64
> -linux-gnu
>
> so the line should read:
>
> set(CGAL_3RD_PARTY_LIBRARIES "/usr/lib/x86_64-linux-
> gnu/libboost_thread.so;/usr/lib/x86_64-linux-
> gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libpthread.so" )
>
> There may be other problems with the cmake config files but
> regenerating them all from CMake on a 13.10 system should fix all the
> issues.
>
> Tested on: Ubuntu 13.10
>
> Expected: When using FindCGAL in a project it should build correctly.
>
> What happens: The compiler complains that it can't find
> /usr/lib/libboost_thread.so at link time.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/cgal/+bug/1242111/+subscriptions

--
Are you worried by the NHS reforms being put through by the coalition
government at the moment? Check out whosupportsnhsreforms.org.uk for
a snapshot of the debate.