make should create missing links, right?

I’m trying to build a test program using vtk, and make is complaining about missing .so libraries. For example,

make[2]: *** No rule to make target '/usr/lib64/libfreetype.so', needed by 'vtkTest'.  Stop.

I have libfreetype.so.6 in /usr/lib64, and from what I’ve read online so far, make is supposed to automatically generate the missing symlink (like libfreetype.so -> libfreetype.so.6). Am I wrong, or am I missing something?

Thanks.

On Wed, 30 Dec 2015 21:46:01 +0000, MisterEwok wrote:

> I’m trying to build a test program using vtk, and make is complaining
> about missing .so libraries. For example,
>
> Code:
> --------------------
> make[2]: *** No rule to make target ‘/usr/lib64/libfreetype.so’,
> needed by ‘vtkTest’. Stop.
> --------------------
>
> I have libfreetype.so.6 in /usr/lib64, and from what I’ve read online so
> far, make is supposed to automatically generate the missing symlink
> (like libfreetype.so → libfreetype.so.6). Am I wrong, or am I missing
> something?
>
> Thanks.

Make does one thing, really - it processes what’s in a makefile.

If the makefile doesn’t tell make to do something, it won’t.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Hi
The file your after exists in the devel packages somelib.so, in this case you need to install freetype2-devel for the libfreetype.so

Well, that took care of libfreetype. Next on the list is libpython2.7.so, where I already have libpython2.7.so.1.0. Next is libSM.so, then libICE.so. That’s as far as I went manually creating symlinks before I considered the possibility that this might be a more global issue. The problem here is not the absence of the libraries. It’s the absence of the symlinks ending in just .so. And if I need all these devel packages to link with vtk, then why doesn’t the vtk or vtk-devel package pull them as dependencies?

Hi
Again, as pointed out it’s the source Makefile that needs the libs (and more than likely the headers) for the various development files.

Look at the source README, or INSTALL for build information, or when you run configure (have you installed pkgconfig it may need it?) it should tell you what’s missing.