answered
2015-03-10 19:13:28 +0200
This post is a wiki.
Anyone with karma >75 is welcome to improve it.
For libusb: Got the source from http://sourceforge.net/projects/libusb/files/
send it via ssh to Jolla and started ./configure:
[nemo@Jolla libusb-1.0.19]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
Ok, so I installed gcc:
pkcon install gcc gcc-c++
Aha, compilers are found and everythink works fine till:
configure: error: "udev support requested but libudev not installed"
Hmm, anyone has an idea what now?
Update: let's try to disable udev
./configure --disable-udev
and the ./configure-command runs through without errors!
Update: now let's make it
pkcon install make //first we have to install make
[nemo@Jolla libusb-1.0.19]$ make
make all-recursive
make[1]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19'
Making all in libusb
make[2]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/libusb'
CC libusb_1_0_la-core.lo
CC libusb_1_0_la-descriptor.lo
CC libusb_1_0_la-io.lo
CC libusb_1_0_la-strerror.lo
CC libusb_1_0_la-sync.lo
CC libusb_1_0_la-hotplug.lo
CC os/libusb_1_0_la-threads_posix.lo
CC os/libusb_1_0_la-linux_usbfs.lo
CC os/libusb_1_0_la-poll_posix.lo
CC os/libusb_1_0_la-linux_netlink.lo
CCLD libusb-1.0.la
ar: `u' modifier ignored since `D' is the default (see `U')
make[2]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/libusb'
Making all in doc
make[2]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/doc'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/doc'
make[2]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19'
make[2]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19'
make[1]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19'
and it seems to have worked! No try to make install under devel-su
[nemo@Jolla libusb-1.0.19]$ devel-su
Password:
[root@Jolla libusb-1.0.19]# make install
Making install in libusb
make[1]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/libusb'
make[2]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/libusb'
/bin/mkdir -p '/usr/local/lib'
/bin/sh ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libusb-1.0.so.0.1.0 /usr/local/lib/libusb-1.0.so.0.1.0
libtool: install: (cd /usr/local/lib && { ln -s -f libusb-1.0.so.0.1.0 libusb-1.0.so.0 || { rm -f libusb-1.0.so.0 && ln -s libusb-1.0.so.0.1.0 libusb-1.0.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libusb-1.0.so.0.1.0 libusb-1.0.so || { rm -f libusb-1.0.so && ln -s libusb-1.0.so.0.1.0 libusb-1.0.so; }; })
libtool: install: /usr/bin/install -c .libs/libusb-1.0.lai /usr/local/lib/libusb-1.0.la
libtool: install: /usr/bin/install -c .libs/libusb-1.0.a /usr/local/lib/libusb-1.0.a
libtool: install: chmod 644 /usr/local/lib/libusb-1.0.a
libtool: install: ranlib /usr/local/lib/libusb-1.0.a
libtool: finish: PATH="/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/local/include/libusb-1.0'
/usr/bin/install -c -m 644 libusb.h '/usr/local/include/libusb-1.0'
make[2]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/libusb'
make[1]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/libusb'
Making install in doc
make[1]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/doc'
make[2]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/doc'
make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
make[2]: Für das Ziel »install-data-am« ist nichts zu tun.
make[2]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/doc'
make[1]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19/doc'
make[1]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19'
make[2]: Entering directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19'
make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 libusb-1.0.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19'
make[1]: Leaving directory `/home/nemo/PortGphoto2Sailfish/PortingGphoto2Sailfish/libusb-1.0.19'
Interesting idea , All the best .. Happy compiling ;)
pavi ( 2015-03-10 16:23:19 +0200 )editAwesome idea. I'm not a typical user for this but I think this idea needs support.
PatsJolla ( 2015-03-10 16:25:00 +0200 )editYou should be able to use pre-made srpms (with perhaps some slight modifications) from Fedora (or any other RPM using distro). They most likely have all dependencies and gphoto already done.
onion ( 2015-03-12 15:54:31 +0200 )edit