[vtkusers] Fwd: Building VTK: undefined reference to `vtkXOpenGLRenderWindow::SetDisplayId(_XDisplay*)

pat marion pat.marion at kitware.com
Wed Jun 8 12:31:50 EDT 2011


It's a CMake + Ubuntu 11.04 issue.  In the latest version of Ubuntu (Debian
actually) they included multiarch support.  Many libraries are no longer
located in /usr/lib, now they are in /usr/lib/x86_64-linux-gnu.  This causes
cmake to fail when it searches for things like X11.

To solve this, I edited UnixPaths.cmake in my cmake 2.8.4 install and
appended the path /usr/lib/x86_64-linux-gnu to the variables
CMAKE_SYSTEM_LIBRARY_PATH and CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES.


Here is the cmake bug report:
http://public.kitware.com/Bug/view.php?id=12037

Pat


On Tue, Jun 7, 2011 at 7:13 PM, Andrew Maclean <andrew.amaclean at gmail.com>wrote:

> Like you I have searched the web and asked on the VTK developers group to
> no avail. I have not found a solution at all.
> NVidia 270.4106 is the one that is currently in use for Ubuntu 11.04.
>
> Oddly enough if you download the paraview binary it works Ok, clearly it
> hasn't been compiled under Ubuntu 11.04.
>
> So I am now driven to writing a filter that builds a polydata structure
> saving it as a vtp file and then using ParaView.
>
>
> Regards
>    Andrew
>
> On Wed, Jun 8, 2011 at 1:12 AM, Jennifer Horsman <jlhorsman at lbl.gov>wrote:
>
>> Andrew,
>>
>> Did you ever find a solution to the problem of building VTK in Ubuntu
>> 11.04? I am getting the same errors as you and have tried everyone's
>> solutions, but nothing works. Originally, I had just done an upgrade from
>> 10.10 to 11.04 and VTK worked fine. I was having other issues that prompted
>> me to start over with a clean install and now I am having troubles. Perhaps
>> there are issues with some of the newer packages.
>>
>> Also, Nvidia did come out recently with new drivers for Ubuntu 11.04
>> (actually, I think they are just for any Linux) that apparently fix some
>> problems with the X server:
>>
>>
>> http://news.softpedia.com/news/New-Nvidia-Linux-Driver-Supports-Ubuntu-11-04-196264.shtml
>>
>> Thanks,
>> Jennifer
>>
>
>
>
> --
> ___________________________________________
> Andrew J. P. Maclean
> Australian Centre for Field Robotics (ACFR)
> The Rose Street Building J04
> The University of Sydney  2006  NSW
> AUSTRALIA
> Ph: +61 2 9351 3283
> Fax: +61 2 9351 7474
> URL: http://www.acfr.usyd.edu.au/
> ___________________________________________
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110608/4e7443c3/attachment.htm>


More information about the vtkusers mailing list