Re: How to avoid compiling all the other camlibs?

Marcus Meissner <[email protected]> Mon, 4 Dec 2023 09:42:53 +0100
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <ZW2RDedWkcyLiUfm@jenny>
On Sun, Dec 03, 2023 at 03:10:04PM -0600, John Syrinek wrote:
> I've got a Canon M5, and I'd like to compile/install libgphoto2 with *only* the
> canon camlib. The INSTALL file says I can do "make -C camlibs canon.la",
> but this fails due to a missing ../libphoto2/libgphoto2.la. I'm assuming
> there are other compilation units that must be compiled first. I could
> probably work backwards and try compiling libgphoto2.la, then
> libgphoto2_port and libphoto2, etc., but maybe there's an easier way?

The M5 is supported by the ptp2 driver.

Best is use configure option --with-camlibs.

	./configure --with-camlibs=ptp2

(add more options you might need like prefix/libdir etc)

Ciao, Marcus