[vtkusers] Build error for vtk-5.10.1

TANWEER RASHID trash001 at odu.edu
Tue Oct 7 21:03:20 EDT 2014


Problem resolved.
Basically, the problem occurred because I used third party drivers (from
amd.com) to install my AMD graphics card. Most Ubuntu forums recommend that
you install repository drivers from the "Additional Drivers" tab/option in
Ubuntu Settings. Third party drivers apparently somehow
destroy/damage/corrupt the libGL.so link.

It is probably possible to somehow repair/reinstall libgl.so and other
relevant files, but in my case, I did a clean install of Ubuntu, and then
installed the drivers from "Additional Drivers". After that, VTK building
and installation gave me no problems.

- - - TR


On Tue, Oct 7, 2014 at 11:59 AM, David Gobbi <david.gobbi at gmail.com> wrote:

> So, this isn't specifically related to VTK anymore, but here are the
> things that might be wrong with your system:
>
> - you might be missing the libgl1-mesa-glx package, which
>    provides /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2
>
> - the links might have been broken during the installation of
>    third-party OpenGL drivers (in which case you should
>    hunt down all the broken links and fix them as best you can).
>
> If you discover exactly what was wrong, please post your solution
> on the list in case other linux users encounter similar problems.
>
>  - David
>
>
> On Tue, Oct 7, 2014 at 9:43 AM, TANWEER RASHID <trash001 at odu.edu> wrote:
> > Yes, the link appears to be broken.
> >
> > - - - TR
> >
> >
> >
> > On Tuesday, October 7, 2014, David Gobbi <david.gobbi at gmail.com> wrote:
> >>
> >> And is it a broken link?  Does the file that it is pointing to exist?
> >>
> >>
> >> On Tue, Oct 7, 2014 at 8:09 AM, TANWEER RASHID <trash001 at odu.edu>
> wrote:
> >> > This is what I get for "ls -l /usr/lib/x86_64-linux-gnu/libGL.so"
> >> >
> >> > lrwxrwxrwx 1 root root 13 May 15 05:41
> >> > /usr/lib/x86_64-linux-gnu/libGL.so ->
> >> > mesa/libGL.so
> >> >
> >> > On Tue, Oct 7, 2014 at 10:02 AM, David Gobbi <david.gobbi at gmail.com>
> >> > wrote:
> >> >>
> >> >> So, if I can ask the obvious question, what do you get when you do
> >> >> this:
> >> >>
> >> >> ls -l /usr/lib/x86_64-linux-gnu/libGL.so
> >> >>
> >> >> Is it missing?  Is it a broken link?
> >> >>
> >> >>
> >> >> On Tue, Oct 7, 2014 at 7:58 AM, TANWEER RASHID <trash001 at odu.edu>
> >> >> wrote:
> >> >> > Hi David,
> >> >> >
> >> >> > Thanks, but I already have libgl1-mesa-dev installed.
> >> >> >
> >> >> > - - - TR
> >> >> >
> >> >> >
> >> >> > On Mon, Oct 6, 2014 at 10:49 PM, David Gobbi <
> david.gobbi at gmail.com>
> >> >> > wrote:
> >> >> >>
> >> >> >> Hi Tanweer,
> >> >> >>
> >> >> >> I suspect that you are missing some of the ubuntu dev packages.
> >> >> >> For libGL.so, get libgl1-mesa-dev:
> >> >> >>
> >> >> >> sudo apt-get install libgl1-mesa-dev
> >> >> >>
> >> >> >>  - David
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> On Mon, Oct 6, 2014 at 2:04 PM, TANWEER RASHID <trash001 at odu.edu>
> >> >> >> wrote:
> >> >> >> > Sorry about that. I accidentally sent before I could finish.
> >> >> >> >
> >> >> >> > Hi,
> >> >> >> >
> >> >> >> > I am trying to build VTK-5.10.1, but I keep getting an error.
> >> >> >> > My OS is 64 bit Ubuntu 14.04 running on Intel i7. I am trying to
> >> >> >> > build
> >> >> >> > shared libs. When I build static libs, I don't encounter any
> >> >> >> > problems.
> >> >> >> >
> >> >> >> > During Cmake configuration, I am getting the following warnings
> >> >> >> > (for
> >> >> >> > both
> >> >> >> > static and shared):
> >> >> >> >
> >> >> >> > The target name
> >> >> >> >
> >> >> >> >
> >> >> >> >
> "/home/trash001/Downloads/VTK5.10.1-build/Utilities/vtkhdf5/H5Edefin.h"
> >> >> >> > is
> >> >> >> > unknown in this context.
> >> >> >> > This warning is for project developers. Use -Wno-dev to suppress
> >> >> >> > it.
> >> >> >> >
> >> >> >> > CMake Warning (dev) at Utilities/vtkhdf5/src/CMakeLists.txt:614
> >> >> >> > (ADD_CUSTOM_COMMAND):
> >> >> >> > Policy CMP0040 is not set: The target in the TARGET signature of
> >> >> >> > add_custom_command() must exist. Run "cmake --help-policy
> CMP0040"
> >> >> >> > for
> >> >> >> > policy details. Use the cmake_policy command to set the policy
> and
> >> >> >> > suppress this warning.
> >> >> >> >
> >> >> >> > The target name
> >> >> >> >
> >> >> >> >
> >> >> >> >
> "/home/trash001/Downloads/VTK5.10.1-build/Utilities/vtkhdf5/H5version.h"
> >> >> >> > is
> >> >> >> > unknown in this context.
> >> >> >> > This warning is for project developers. Use -Wno-dev to suppress
> >> >> >> > it.
> >> >> >> >
> >> >> >> > CMake Warning (dev) at Utilities/vtkhdf5/src/CMakeLists.txt:621
> >> >> >> > (ADD_CUSTOM_COMMAND):
> >> >> >> > Policy CMP0040 is not set: The target in the TARGET signature of
> >> >> >> > add_custom_command() must exist. Run "cmake --help-policy
> CMP0040"
> >> >> >> > for
> >> >> >> > policy details. Use the cmake_policy command to set the policy
> and
> >> >> >> > suppress this warning.
> >> >> >> >
> >> >> >> > The target name
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> "/home/trash001/Downloads/VTK5.10.1-build/Utilities/vtkhdf5/H5overflow.h"
> >> >> >> > is unknown in this context.
> >> >> >> > This warning is for project developers. Use -Wno-dev to suppress
> >> >> >> > it.
> >> >> >> >
> >> >> >> > Could not find extension loader. Extensions disabled.
> >> >> >> >
> >> >> >> > Configuring done
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > The build error (for building shared libs) is as follows:
> >> >> >> >
> >> >> >> > [ 30%] Built target vtkEncodeString
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTBitmapGlyph.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTBitmapGlyphRenderOpenGL.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTCharmap.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTFace.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTFont.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGLBitmapFont.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGLPixmapFont.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGlyph.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGlyphContainer.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTLibrary.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTPixmapGlyph.cpp.o
> >> >> >> > [ 30%] Building CXX object
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTPixmapGlyphRenderOpenGL.cpp.o
> >> >> >> > [ 31%] Building CXX object
> >> >> >> > Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTSize.cpp.o
> >> >> >> > make[2]: *** No rule to make target
> >> >> >> > `/usr/lib/x86_64-linux-gnu/libGL.so',
> >> >> >> > needed by `bin/libvtkftgl.so.5.10.1'.  Stop.
> >> >> >> > make[1]: *** [Utilities/ftgl/CMakeFiles/vtkftgl.dir/all] Error 2
> >> >> >> > make: *** [all] Error 2
> >> >> >> > trash001 at MSVEDE09:~/Downloads/VTK5.10.1-build$
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> > Tanweer Rashid
> >> >> >> > MSVE Dept.
> >> >> >> > Old Dominion University
> >>
> >>
> >> --
> >>
> >
> >
> > --
> > Tanweer Rashid
> > MSVE Dept.
> > Old Dominion University
> >
>
>
> --
> BEGIN-ANTISPAM-VOTING-LINKS
> ------------------------------------------------------
>
> Teach CanIt if this mail (ID 01N0g0vL3) is spam:
> Spam:
> https://www.spamtrap.odu.edu/canit/b.php?i=01N0g0vL3&m=dec686daf946&t=20141007&c=s
> Not spam:
> https://www.spamtrap.odu.edu/canit/b.php?i=01N0g0vL3&m=dec686daf946&t=20141007&c=n
> Forget vote:
> https://www.spamtrap.odu.edu/canit/b.php?i=01N0g0vL3&m=dec686daf946&t=20141007&c=f
> ------------------------------------------------------
> END-ANTISPAM-VOTING-LINKS
>
>


-- 
Tanweer Rashid
MSVE Dept.
Old Dominion University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141007/cc78fac1/attachment-0001.html>


More information about the vtkusers mailing list