[vtkusers] linux build error
David Gobbi
david.gobbi at gmail.com
Sun Jun 19 00:27:27 EDT 2011
This is a follow up, because if one package was missing, others might be, too.
On ubuntu, there is a tool for finding the packages for missing files,
it's called "apt-file". After you install it, you run it like so:
sudo apt-file update (only do this once, not every time)
apt-file search StringDefs.h
libxt-dev: /usr/include/X11/StringDefs.h
It tells you what package to install, and where the package will put the file.
- David
On Sat, Jun 18, 2011 at 10:14 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> Hi Mark,
>
> Some other people have reported issues with 11.04 related to OpenGL
> drivers, but from the info in your email, I think you are missing some
> of the -dev packages for X11.
>
> Have you tried doing a "find" for the file?
>
> find /usr/include -name StringDefs.h
>
> You can try installing the dev package it belongs to:
>
> sudo apt-get install libxt-dev
>
> - David
>
>
> On Sat, Jun 18, 2011 at 9:58 PM, Mark Roden <mmroden at gmail.com> wrote:
>> Hi all,
>>
>> I get the following linux build error from code synced ~6 hours ago:
>>
>> [ 69%] Building CXX object
>> Rendering/CMakeFiles/vtkRendering.dir/vtkGraphicsFactory.cxx.o
>> In file included from
>> /home/mmroden/src/vtk/VTK/Rendering/vtkGraphicsFactory.cxx:66:0:
>> /home/mmroden/src/vtk/VTK/Rendering/vtkXRenderWindowInteractor.h:37:74:
>> fatal error: X11/StringDefs.h: No such file or directory
>> compilation terminated.
>> make[2]: *** [Rendering/CMakeFiles/vtkRendering.dir/vtkGraphicsFactory.cxx.o]
>> Error 1
>> make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
>> make: *** [all] Error 2
>>
>>
>> This is on ubuntu 11.04 with Qt 4.7.2 installed, and trying to install
>> the Qt version of VTK. I'm pretty sure that the error here has
>> nothing to do with Qt, though.
>>
>> I'm attaching my CMakeCache.txt, in case I've hit some odd build configuration.
>>
>> Any ideas on the fix?
>>
>> Thanks,
>> Mark
>
More information about the vtkusers
mailing list