Re: c++, libraries, shell, headers, and a big mess!
- From: Sam <sam@xxxxxxxxxxxxxx>
- Date: Tue, 21 Aug 2007 06:08:38 -0500
mauro writes:
Hi all,
I'm installing few open source libraries for 3d graphics (itk, vtk,
and opencv) starting from the source code.
But a big mess over here! And similar problems with installing the 3
packages (for that I'm thinking to a kind of shell configuration).
The compilation and installation (make;make install) seems okay, but
the problem there are when I'm using the libraries, because they are
not recognized.
Of course it is a big mess, as you say. Rather than manually building and installing this stuff, you should be using your Linux distribution's package manager to create and install the software as discrete packages. This makes it much easier to manage and administrate your system over time.
Of course, you will have to learn how to use your package manager. Educate yourself, and just consider it as an investment in time, that brings long term benefits.
I.e. with vtk, im my c++ example file, I include the header file where
a function is defined (i.e. the function cvLoadImage), the header file
is loaded correctly, but it gives that problem:
/tmp/ccdYdt0f.o: In function `main':
opencv.cpp:(.text+0x52): undefined reference to `cvLoadImage'
You did not link with the correct library.
but I cannot figure out what it happened! Probably it cannot see the
libraries (that are correctly installed in /usr/local/lib), I don't
No, if it cannot see libraries, you'd get a different error about being unable to find a specific library. All the libraries that you've linked with -- it found them, all right. But, you did not link with whatever library provides that function.
Attachment:
pgp0aUlTZYzIo.pgp
Description: PGP signature
- References:
- c++, libraries, shell, headers, and a big mess!
- From: mauro
- c++, libraries, shell, headers, and a big mess!
- Prev by Date: can pan2 filter on arbitrary headers?
- Next by Date: Re: Clearing Old PC's
- Previous by thread: Re: c++, libraries, shell, headers, and a big mess!
- Next by thread: to be inland or required will consult national dutys to hourly occupy
- Index(es):
Relevant Pages
|