compile against libcgal fails: cannot find libX11.so

Bug #788104 reported by fvila
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cgal (Ubuntu)
New
Undecided
Unassigned

Bug Description

When using compiling a program using CGAL and Qt4 components, linking fails with:

make[2]: *** No rule to make target `/usr/lib/libX11.so', needed by `PCA_demo'. Stop.
make[1]: *** [CMakeFiles/PCA_demo.dir/all] Error 2
make: *** [all] Error 2

Same code, and same CMakeList.txt files worked on maverick.

Compiling an example (without Qt) works fine.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libcgal5 3.6.1-2ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Wed May 25 14:39:26 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cgal
UpgradeStatus: Upgraded to natty on 2011-05-02 (22 days ago)

Revision history for this message
fvila (francesc-vila) wrote :
Revision history for this message
fvila (francesc-vila) wrote :

In fact, downloading the apt sources, and compiling makes it work. Maybe there has been some compiler/libraries/paths changes on the update from maverick to natty.

Revision history for this message
fvila (francesc-vila) wrote :

To check if I have some kind of conflict on packages when updating, I have installed a clean copy of ubuntu 11.04 on a virtual machine. This time is the 32bits version.

On the machine I have installed cmake, libcgal-demo, libcgal-dev and build-essential. This installs Qt4 and boost dependencies.

Trying to compile the PCA demo (using Qt components of CGAL) results on the same linking error (not finding /usr/lib/libX11.so and /usr/lib/libXext.so). When recompiling the deb package, the demo links correctly.

Thanks,

Francesc

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.