Specifically, this is what I saw. See attached file. It was the error when I 
did these following steps:

cd libgphoto2
/configure --prefix=/usr --libdir=/usr/local/Cellar/libgphoto2/2.5.24/lib/
echo $PKG_CONFIG_PATH (I noticed that this was blank)
make clean
make -j6
make install
sudo make instal

Separately, I had also done `brew uninstall gphoto2` and then git cloned 
gphoto2. I tried configuring it to use the libgphoto2 directory and building, 
but that did not work. And I saw gphoto2 —version was showing like a much older 
version of libgphoto2 being used, like 2.5.09 or something.

Chris



christopherkao@Christophers-MacBook-Pro libgphoto2 % sudo make install
Password:
Making install in libgphoto2_port
Making install in po
if test "libgphoto2_port" = "gettext-tools"; then \
          /bin/sh ../auto-aux/mkinstalldirs /usr/share/gettext/po; \
          for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed 
en@quot.header en@boldquot.header insert-header.sin Rules-quot   
Makevars.template; do \
            /usr/bin/install -c -m 644 ./$file \
                            /usr/share/gettext/po/$file; \
          done; \
          for file in Makevars; do \
            rm -f /usr/share/gettext/po/$file; \
          done; \
        else \
          : ; \
        fi
Making install in libgphoto2_port
 ../auto-aux/install-sh -c -d '/usr/local/Cellar/libgphoto2/2.5.24/lib'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libgphoto2_port.la 
'/usr/local/Cellar/libgphoto2/2.5.24/lib'
libtool: install: /usr/bin/install -c .libs/libgphoto2_port.12.dylib 
/usr/local/Cellar/libgphoto2/2.5.24/lib/libgphoto2_port.12.dylib
libtool: install: (cd /usr/local/Cellar/libgphoto2/2.5.24/lib && { ln -s -f 
libgphoto2_port.12.dylib libgphoto2_port.dylib || { rm -f libgphoto2_port.dylib 
&& ln -s libgphoto2_port.12.dylib libgphoto2_port.dylib; }; })
libtool: install: /usr/bin/install -c .libs/libgphoto2_port.lai 
/usr/local/Cellar/libgphoto2/2.5.24/lib/libgphoto2_port.la
make[3]: Nothing to be done for `install-data-am'.
Making install in test
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in .
 auto-aux/install-sh -c -d '/usr/bin'
 /usr/bin/install -c gphoto2-port-config '/usr/bin'
install: /usr/bin/gphoto2-port-config: Operation not permitted
make[3]: *** [install-binSCRIPTS] Error 71
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
christopherkao@Christophers-MacBook-Pro libgphoto2 % sudo make install

> On Apr 5, 2020, at 12:38 PM, Christopher Kao <christopher...@icloud.com> 
> wrote:
> 
> Hey Marcus,
> 
> That didn’t work for me. I ended up getting an error on the `make install` 
> step. Happy to get you the logs in a bit for that error.
> 
> But in the meantime, I’m reading documentation and also trying this on my 
> Linux laptop which runs on Ubuntu 16.04. 
> 
> A question I had is, do I just need to git clone libgphoto2, or do I also 
> need to git clone gphoto2? Do I need to then configure gphoto2 to use the 
> libgphoto2 that I installed at the `./configure` step?
> 
> Chris
> 
>> On Apr 5, 2020, at 11:05 AM, Marcus Meissner <mar...@jet.franken.de> wrote:
>> 
>> Hi,
>> 
>> 
>> On Sun, Apr 05, 2020 at 09:13:10AM -0700, Christopher Kao wrote:
>>> Thank you for your contributions, Marcus. Attached are the summary.log and 
>>> summary.txt files you asked for.
>>> 
>>> By the way, I think you may have mistyped the command. It seems to be:
>>> ```
>>> gphoto2 --summary --debug --debug-logfile=summary.log > summary.txt
>>> ```
>>> 
>>> Which uses `—debug` instead of `—debuginfo
>>> 
>>> 
>>> 
>>> These are the steps that I did:
>>> I git cloned the libgphoto2 repository on my MacBook Pro 15” Retina 2018: 
>>> https://github.com/gphoto/libgphoto2 
>>> <https://github.com/gphoto/libgphoto2>. 
>>> I followed instructions in the INSTALL file in the repo: 
>>> https://github.com/gphoto/libgphoto2/blob/master/INSTALL 
>>> <https://github.com/gphoto/libgphoto2/blob/master/INSTALL>. 
>>> I saw a lot of logs coming out on the `make -j6` step (I have 6 CPU cores). 
>>> But no errors (at least it ran to completion)
>>> Then I ran `make install`. 
>>> Then I navigated to my root directory and typed in the command you provided.
>>> 
>>> Let me know if this has what you need. I hope this ran the updated git 
>>> code, not whatever I had previously installed when I had installed gphoto2 
>>> before.
>> 
>> It currently still uses libgphoto2 2.5.24 (system library) (you can see this 
>> with gphoto2 --version)
>> 
>> It should be 2.5.24.1 with the current master...
>> 
>> Not sure where the Macbook installs, but it might be possible to overwrite 
>> it with configure settigns...
>> 
>> judging from your logfile the libdir is currently at 
>> /usr/local/Cellar/libgphoto2/2.5.24/lib/
>> 
>> ./configure --prefix=/usr --libdir=/usr/local/Cellar/libgphoto2/2.5.24/lib/
>> make clean
>> make -j6
>> and 
>> make install 
>> 
>> Ciao, Marcus
> 

_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to