gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
1.06k stars 325 forks source link

How can i change library path? #405

Open hjsung809 opened 5 years ago

hjsung809 commented 5 years ago

Hello there.

I use ubuntu 16.04. there is already installed libgphoto version 2.5.9 but i want to install newly version 2.5.22 with modified code by me.

so i downloaded install zip from git and modify the code and install with make & make install . and compile with gcc main.c -lgphoto2. but it seems to work with version 2.5.9.

there is two installed path. /usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/~ /usr/local/include/gphoto and /usr/local/lib/libgphoto2/2.5.22/~ how can i use 2.5.22?

i am sorry about my poor english and poor question.. thank you.

msmeissn commented 5 years ago

you need to do this in configure

./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu/

probably