Libimobiledevice

YDL running on the Sony Playstation 3

Moderator: billb

Re: Libimobiledevice

Postby larrythechim » 30 Jul 2010, 21:40

Do you want the etc/ld.so.conf file for libusb? If so where would I find it? Would it be inside the folder I compile it in like /home/Beastly_Larry/ffff/libusb-1.0.6?
160gb ps3 fw ? > upgraded hdd to 1tb > updated fw to 2.76
playstation network > larrythechamp
User avatar
larrythechim
ydl beginner
ydl beginner
 
Posts: 40
Joined: 23 Jun 2009, 20:51

Re: Libimobiledevice

Postby ppietro » 30 Jul 2010, 21:48

larrythechim wrote:Do you want the etc/ld.so.conf file for libusb? If so where would I find it? Would it be inside the folder I compile it in like /home/Beastly_Larry/ffff/libusb-1.0.6?


No - ld.so.conf is a system-wide configuration file. It lives in the /etc directory. Sometimes, in Linux/Unix, we'll use a shorthand to print files - saying I'd like a copy of /etc/ld.so.conf tells you to print ld.so.conf from the /etc directory. The "/" character is your hint here.

So - to be clear, I'd like you to cut and paste the contents of your ld.so.conf file that resides in your /etc directory.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Libimobiledevice

Postby larrythechim » 31 Jul 2010, 03:07

I found it. It wasn't hard to find. Here it is right here:
Code: Select all
/usr/local/lib
/usr/local/include
/usr/lib
/usr/include


include ld.so.conf.d/*.conf

I haven't double checked but I believe it is exactly the same as the one used by ChronoCloud in his compile from source tutorial.
160gb ps3 fw ? > upgraded hdd to 1tb > updated fw to 2.76
playstation network > larrythechamp
User avatar
larrythechim
ydl beginner
ydl beginner
 
Posts: 40
Joined: 23 Jun 2009, 20:51

Re: Libimobiledevice

Postby ppietro » 31 Jul 2010, 07:54

larrythechim wrote:I haven't double checked but I believe it is exactly the same as the one used by ChronoCloud in his compile from source tutorial.


Yup - it looks good.

By the way - after the make install, did you run a ldconfig?

According to the same compile from source tutorial, you need to do this:

4.7 There's one more step, which is also done as root. Applications often install libraries, as do libraries when you install them. But your applications need to be able to find them, so now we get to tell the linker, ld, where they are, which is:

Code: Select all
ldconfig


Always ldconfig after installs, it'll save you frustration of forgetting to and then not having an application run properly when you try to run it.


Sorry about the confusion here - I think what's going on is that the next program you're trying to compile - or perhaps the libusb install itself - isn't calling ldconfig correctly. Usually, that's automatically called for you by the installer.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Libimobiledevice

Postby larrythechim » 31 Jul 2010, 18:01

I tried ldconfig and got this:
Code: Select all
[root@larrythechim libusb-1.0.6]# ldconfig
bash: ldconfig: command not found


I believe that it is safe to say that the package doesn't call ldconfig itself because it can't be found. I don't know whether it is installed or not. I'm guessing I'll need to find the package ldconfig is installed from since it can't be found. What package installs it or is it installed by default? If it's installed by default I may be in some trouble.
I just checked the commands on my system and I only have ld and ldd as commands.
160gb ps3 fw ? > upgraded hdd to 1tb > updated fw to 2.76
playstation network > larrythechamp
User avatar
larrythechim
ydl beginner
ydl beginner
 
Posts: 40
Joined: 23 Jun 2009, 20:51

Re: Libimobiledevice

Postby larrythechim » 07 Aug 2010, 19:12

I found ldconfig. It was at /sbin/ldconfig. When I type the command I get a lot of output in the terminal but I found the useful bit of it:
Code: Select all
[root@larrythechim libusb-1.0.6]# /sbin/ldconfig -v
/sbin/ldconfig: Path '/usr/lib' given more than once
/usr/local/lib:
           libImlib2.so.1 -> libImlib2.so.1.4.4
           libtcl8.4.so -> libtcl8.4.so
           libexpat.so.1 -> libexpat.so.1.5.2
           libtk8.4.so -> libtk8.4.so
           libusb-0.1.so.4 -> libusb.so
           libusb-1.0.so.0 -> libusb-1.0.so.0.0.0


With the last line does that mean the file libusb-1.0.so.0 is actually the latter or vice versa? If so how can change it into libusb-1.0.so because that is the file usbmuxd is searching for. Is there a command to manually link these files with ldconfig?
160gb ps3 fw ? > upgraded hdd to 1tb > updated fw to 2.76
playstation network > larrythechamp
User avatar
larrythechim
ydl beginner
ydl beginner
 
Posts: 40
Joined: 23 Jun 2009, 20:51

Re: Libimobiledevice

Postby ppietro » 09 Aug 2010, 22:20

larrythechim wrote:I found ldconfig. It was at /sbin/ldconfig. When I type the command I get a lot of output in the terminal but I found the useful bit of it:
Code: Select all
[root@larrythechim libusb-1.0.6]# /sbin/ldconfig -v
/sbin/ldconfig: Path '/usr/lib' given more than once
/usr/local/lib:
           libImlib2.so.1 -> libImlib2.so.1.4.4
           libtcl8.4.so -> libtcl8.4.so
           libexpat.so.1 -> libexpat.so.1.5.2
           libtk8.4.so -> libtk8.4.so
           libusb-0.1.so.4 -> libusb.so
           libusb-1.0.so.0 -> libusb-1.0.so.0.0.0


With the last line does that mean the file libusb-1.0.so.0 is actually the latter or vice versa? If so how can change it into libusb-1.0.so because that is the file usbmuxd is searching for. Is there a command to manually link these files with ldconfig?


I'm away from my PS3 right now, but you could try using the man ldconfig command and see if that explains the syntax of the output.

As for your build, now that you've run ldconfig, have you tried your build again? It might just work now (maybe).

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Libimobiledevice

Postby Noons » 10 Aug 2010, 01:38

I've ran into similar problems building dependencies before and found that a simple (I'm not sure of the correct command) ./configure prefix=/usr then make, and su make install seems to pick things up rather than just ./configure
Fedora core 12; ps3 CECHA01; samsung 720p plasma; kernel 2.6.32
User avatar
Noons
ydl guru
ydl guru
 
Posts: 300
Joined: 18 Mar 2008, 21:50
Location: Ont. CAN

Re: Libimobiledevice

Postby larrythechim » 10 Aug 2010, 07:07

I followed both of you guy's advice and it worked like a charm. I don't know if it was one thing that fixed it or both but before I tried either I used make clean and make distclean when I used ldconfig it said that libusb-1.0.so and also other files exactly the same but with a .0 added weren't found so I got a bit worried but it worked when I check for it. As usual I checked with usbmuxd. I followed these steps in the usbmuxd directory
Code: Select all
mkdir build
cd build

When I got to cmake .. It became interesting. I got a successful cmake for the first time! But when I typed in make I got errors. Here is after I entered the build directory:
Code: Select all
[Beastly_Larry@larrythechim build]$ cmake ..
-- Configuring usbmuxd v1.0.4
-- Will build usbmuxd: YES
-- checking for module 'libusb-1.0>=1.0.3'
--   found libusb-1.0, version 1.0.6
-- Found USB 

* REMINDER
* Remember to add a user named 'usbmux' with USB access permissions
* for the udev hotplugging feature to work out of the box.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/Beastly_Larry/ffff/usbmuxd-1.0.4/build
[Beastly_Larry@larrythechim build]$ make
Scanning dependencies of target libusbmuxd
[ 10%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/libusbmuxd.c.o
[ 20%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/sock_stuff.c.o
[ 30%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/__/common/utils.c.o
Linking C shared library libusbmuxd.so
[ 30%] Built target libusbmuxd
Scanning dependencies of target usbmuxd
[ 40%] Building C object daemon/CMakeFiles/usbmuxd.dir/main.c.o
[ 50%] Building C object daemon/CMakeFiles/usbmuxd.dir/usb-linux.c.o
[ 60%] Building C object daemon/CMakeFiles/usbmuxd.dir/log.c.o
[ 70%] Building C object daemon/CMakeFiles/usbmuxd.dir/__/common/utils.c.o
[ 80%] Building C object daemon/CMakeFiles/usbmuxd.dir/device.c.o
[ 90%] Building C object daemon/CMakeFiles/usbmuxd.dir/client.c.o
Linking C executable usbmuxd
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_disconnect':
usb-linux.c:(.text+0x110): undefined reference to `libusb_cancel_transfer'
usb-linux.c:(.text+0x160): undefined reference to `libusb_cancel_transfer'
usb-linux.c:(.text+0x1a8): undefined reference to `libusb_handle_events_timeout'
usb-linux.c:(.text+0x1e0): undefined reference to `libusb_release_interface'
usb-linux.c:(.text+0x1e8): undefined reference to `libusb_close'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_shutdown':
usb-linux.c:(.text+0x2e0): undefined reference to `libusb_exit'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_process_timeout':
usb-linux.c:(.text+0x428): undefined reference to `libusb_handle_events_timeout'
usb-linux.c:(.text+0x4f0): undefined reference to `libusb_handle_events_timeout'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_get_timeout':
usb-linux.c:(.text+0x650): undefined reference to `libusb_get_next_timeout'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_get_fds':
usb-linux.c:(.text+0x720): undefined reference to `libusb_get_pollfds'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_discover':
usb-linux.c:(.text+0x7d8): undefined reference to `libusb_get_device_list'
usb-linux.c:(.text+0x874): undefined reference to `libusb_get_bus_number'
usb-linux.c:(.text+0x880): undefined reference to `libusb_get_device_address'
usb-linux.c:(.text+0x8dc): undefined reference to `libusb_get_device_descriptor'
usb-linux.c:(.text+0x97c): undefined reference to `libusb_free_device_list'
usb-linux.c:(.text+0xa9c): undefined reference to `libusb_open'
usb-linux.c:(.text+0xab4): undefined reference to `libusb_get_configuration'
usb-linux.c:(.text+0xad4): undefined reference to `libusb_set_configuration'
usb-linux.c:(.text+0xae8): undefined reference to `libusb_claim_interface'
usb-linux.c:(.text+0xb1c): undefined reference to `libusb_close'
usb-linux.c:(.text+0xc94): undefined reference to `libusb_close'
usb-linux.c:(.text+0xcb8): undefined reference to `libusb_get_string_descriptor_ascii'
usb-linux.c:(.text+0xcfc): undefined reference to `libusb_get_max_packet_size'
usb-linux.c:(.text+0xd58): undefined reference to `libusb_alloc_transfer'
usb-linux.c:(.text+0xda8): undefined reference to `libusb_submit_transfer'
usb-linux.c:(.text+0xde4): undefined reference to `libusb_free_transfer'
usb-linux.c:(.text+0xe30): undefined reference to `libusb_release_interface'
usb-linux.c:(.text+0xe38): undefined reference to `libusb_close'
usb-linux.c:(.text+0xe70): undefined reference to `libusb_close'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_init':
usb-linux.c:(.text+0xee0): undefined reference to `libusb_init'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_process':
usb-linux.c:(.text+0xf70): undefined reference to `libusb_handle_events_timeout'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `tx_callback':
usb-linux.c:(.text+0x1110): undefined reference to `libusb_free_transfer'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `rx_callback':
usb-linux.c:(.text+0x127c): undefined reference to `libusb_free_transfer'
usb-linux.c:(.text+0x12d4): undefined reference to `libusb_submit_transfer'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_send':
usb-linux.c:(.text+0x1408): undefined reference to `libusb_alloc_transfer'
usb-linux.c:(.text+0x1440): undefined reference to `libusb_submit_transfer'
usb-linux.c:(.text+0x14cc): undefined reference to `libusb_alloc_transfer'
usb-linux.c:(.text+0x1504): undefined reference to `libusb_submit_transfer'
usb-linux.c:(.text+0x1590): undefined reference to `libusb_free_transfer'
usb-linux.c:(.text+0x15dc): undefined reference to `libusb_free_transfer'
collect2: ld returned 1 exit status
make[2]: *** [daemon/usbmuxd] Error 1
make[1]: *** [daemon/CMakeFiles/usbmuxd.dir/all] Error 2
make: *** [all] Error 2

Unfortunatly I don't know what went wrong. I am just glad to get hung up on this now honestly :lol:
160gb ps3 fw ? > upgraded hdd to 1tb > updated fw to 2.76
playstation network > larrythechamp
User avatar
larrythechim
ydl beginner
ydl beginner
 
Posts: 40
Joined: 23 Jun 2009, 20:51

Re: Libimobiledevice

Postby ppietro » 10 Aug 2010, 09:11

larrythechim wrote:I followed both of you guy's advice and it worked like a charm. I don't know if it was one thing that fixed it or both but before I tried either I used make clean and make distclean when I used ldconfig it said that libusb-1.0.so and also other files exactly the same but with a .0 added weren't found so I got a bit worried but it worked when I check for it.


Sorry - I don't quite follow you here.

Did you do the ./configure --prefix=/usr that Noons suggested, then an su followed by a make install ?

If so, I'm glad you got it to build, but - unfortunately - you may not have actually solved your underlying build issue, I'm afraid. I think the linker will always look for libraries in /usr - the issue is that you want to be able to have the linker look in /usr/local as well.

The general idea in Linux is that files supplied by the distribution should go in /usr and files compiled by the user should go in /usr/local. The system should be able to handle both.

Still - if it ain't broke, don't fix it - as they say. :D

As for your new build errors - hmm - weird. I read through the usbmuxd README, and you're building it correctly. Not sure why it's failing - unless you're missing another dependency.

NOTE: In the README - don't forget - you can't use sudo. Intsead, use the su command, like so:

su -c "make install"

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Libimobiledevice

Postby Noons » 10 Aug 2010, 11:21

something of interest:

-- Build files have been written to: /home/users/builder/rpm/BUILD/usbmuxd-1.0.5/build
+ /usr/bin/make -j12
Scanning dependencies of target libusbmuxd
[ 10%] [ 20%] [ 30%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/libusbmuxd.c.o
Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/sock_stuff.c.o
Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/__/common/utils.c.o
Scanning dependencies of target usbmuxd
[ 40%] [ 50%] [ 60%] [ 80%] [ 80%] [ 90%] Building C object daemon/CMakeFiles/usbmuxd.dir/main.c.o
Building C object daemon/CMakeFiles/usbmuxd.dir/usb-linux.c.o
Building C object daemon/CMakeFiles/usbmuxd.dir/log.c.o
Building C object daemon/CMakeFiles/usbmuxd.dir/__/common/utils.c.o
Building C object daemon/CMakeFiles/usbmuxd.dir/client.c.o
Building C object daemon/CMakeFiles/usbmuxd.dir/device.c.o
Linking C shared library libusbmuxd.so
[ 90%] Built target libusbmuxd
Scanning dependencies of target iproxy
Linking C executable usbmuxd
[100%] Building C object tools/CMakeFiles/iproxy.dir/iproxy.c.o
[100%] Built target usbmuxd
Linking C executable iproxy
[100%] Built target iproxy


this is someone trying to build simular libs. You can see that the build is looking for iproxy... maybe that will lead you in the right direction.
Here is a reference link: http://buildlogs.pld-linux.org/index.ph ... 9235686abd
Fedora core 12; ps3 CECHA01; samsung 720p plasma; kernel 2.6.32
User avatar
Noons
ydl guru
ydl guru
 
Posts: 300
Joined: 18 Mar 2008, 21:50
Location: Ont. CAN

Re: Libimobiledevice

Postby larrythechim » 10 Aug 2010, 18:22

Ppietro - Yes I followed Noons' advice by using ./configure --prefix=/usr but usbmuxd recognized it without any modification so until there are any serious problems there won't be any reason to worry.

Noons - I glanced at that and they are making a rpm, right? Are you suggesting that I make a rpm from this. I'm going to look at it a bit more and try what it was doing.
160gb ps3 fw ? > upgraded hdd to 1tb > updated fw to 2.76
playstation network > larrythechamp
User avatar
larrythechim
ydl beginner
ydl beginner
 
Posts: 40
Joined: 23 Jun 2009, 20:51

Re: Libimobiledevice

Postby Noons » 10 Aug 2010, 23:48

Noons - I glanced at that and they are making a rpm, right? Are you suggesting that I make a rpm from this. I'm going to look at it a bit more and try what it was doing.

Not build an rpm. The error you posted in your build is much like the link I posted except yours stops just before Iproxy. I searched a bit and I think it's included in the usbmuxd package.. You may have to build that again with ./configure --enable iproxy or something. I'd check what ./configure --help gives

I'd like to see this working myself to see what my iPhone will do :)
Fedora core 12; ps3 CECHA01; samsung 720p plasma; kernel 2.6.32
User avatar
Noons
ydl guru
ydl guru
 
Posts: 300
Joined: 18 Mar 2008, 21:50
Location: Ont. CAN

Re: Libimobiledevice

Postby larrythechim » 11 Aug 2010, 00:44

I believe iproxy is for SSH purposes. I don't know at the moment for sure I didn't dive into it's documentation yet. When I go with the make command occasionally it does iproxy first. The chances are increased when I use the make command used in the link you suggested. I observed that when I used cmake .. It was different from their cmake with command and a bit or results. That link would be much better if it showed you when it was entered code and what all went on in the terminal. In the beginning there was a .patch file they created so I may try creating the patch. And I'll be trying to get the same resulting code from their cmake
edit: I got a successful make and make install. I did some tinkering with arguements with make and I eventually got a success. I believe that it was the touch option make -t. Here is the code of what all I did, but I do not know when I became root even at this moment.
Code: Select all
[root@larrythechim build]# cmake -DCMAKE_INSTALL_PREFIX=/usr ../ -- Configuring usbmuxd v1.0.4
-- Will build usbmuxd: YES
-- Found USB 

* REMINDER
* Remember to add a user named 'usbmux' with USB access permissions
* for the udev hotplugging feature to work out of the box.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/wiz/usbmuxd-1.0.4/build
[root@larrythechim build]# make --help
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for powerpc-yellowdog-linux-gnu
Report bugs to <bug-make@gnu.org>
[root@larrythechim build]# make -B
[ 10%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/libusbmuxd.c.o
[ 20%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/sock_stuff.c.o
[ 30%] Building C object libusbmuxd/CMakeFiles/libusbmuxd.dir/__/common/utils.c.o
Linking C shared library libusbmuxd.so
[ 30%] Built target libusbmuxd
[ 40%] Building C object daemon/CMakeFiles/usbmuxd.dir/main.c.o
[ 50%] Building C object daemon/CMakeFiles/usbmuxd.dir/usb-linux.c.o
[ 60%] Building C object daemon/CMakeFiles/usbmuxd.dir/log.c.o
[ 70%] Building C object daemon/CMakeFiles/usbmuxd.dir/__/common/utils.c.o
[ 80%] Building C object daemon/CMakeFiles/usbmuxd.dir/device.c.o
[ 90%] Building C object daemon/CMakeFiles/usbmuxd.dir/client.c.o
Linking C executable usbmuxd
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_disconnect':
usb-linux.c:(.text+0x110): undefined reference to `libusb_cancel_transfer'
usb-linux.c:(.text+0x160): undefined reference to `libusb_cancel_transfer'
usb-linux.c:(.text+0x1a8): undefined reference to `libusb_handle_events_timeout'
usb-linux.c:(.text+0x1e0): undefined reference to `libusb_release_interface'
usb-linux.c:(.text+0x1e8): undefined reference to `libusb_close'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_shutdown':
usb-linux.c:(.text+0x2e0): undefined reference to `libusb_exit'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_process_timeout':
usb-linux.c:(.text+0x428): undefined reference to `libusb_handle_events_timeout'
usb-linux.c:(.text+0x4f0): undefined reference to `libusb_handle_events_timeout'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_get_timeout':
usb-linux.c:(.text+0x650): undefined reference to `libusb_get_next_timeout'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_get_fds':
usb-linux.c:(.text+0x720): undefined reference to `libusb_get_pollfds'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_discover':
usb-linux.c:(.text+0x7d8): undefined reference to `libusb_get_device_list'
usb-linux.c:(.text+0x874): undefined reference to `libusb_get_bus_number'
usb-linux.c:(.text+0x880): undefined reference to `libusb_get_device_address'
usb-linux.c:(.text+0x8dc): undefined reference to `libusb_get_device_descriptor'
usb-linux.c:(.text+0x97c): undefined reference to `libusb_free_device_list'
usb-linux.c:(.text+0xa9c): undefined reference to `libusb_open'
usb-linux.c:(.text+0xab4): undefined reference to `libusb_get_configuration'
usb-linux.c:(.text+0xad4): undefined reference to `libusb_set_configuration'
usb-linux.c:(.text+0xae8): undefined reference to `libusb_claim_interface'
usb-linux.c:(.text+0xb1c): undefined reference to `libusb_close'
usb-linux.c:(.text+0xc94): undefined reference to `libusb_close'
usb-linux.c:(.text+0xcb8): undefined reference to `libusb_get_string_descriptor_ascii'
usb-linux.c:(.text+0xcfc): undefined reference to `libusb_get_max_packet_size'
usb-linux.c:(.text+0xd58): undefined reference to `libusb_alloc_transfer'
usb-linux.c:(.text+0xda8): undefined reference to `libusb_submit_transfer'
usb-linux.c:(.text+0xde4): undefined reference to `libusb_free_transfer'
usb-linux.c:(.text+0xe30): undefined reference to `libusb_release_interface'
usb-linux.c:(.text+0xe38): undefined reference to `libusb_close'
usb-linux.c:(.text+0xe70): undefined reference to `libusb_close'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_init':
usb-linux.c:(.text+0xee0): undefined reference to `libusb_init'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_process':
usb-linux.c:(.text+0xf70): undefined reference to `libusb_handle_events_timeout'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `tx_callback':
usb-linux.c:(.text+0x1110): undefined reference to `libusb_free_transfer'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `rx_callback':
usb-linux.c:(.text+0x127c): undefined reference to `libusb_free_transfer'
usb-linux.c:(.text+0x12d4): undefined reference to `libusb_submit_transfer'
CMakeFiles/usbmuxd.dir/usb-linux.c.o: In function `usb_send':
usb-linux.c:(.text+0x1408): undefined reference to `libusb_alloc_transfer'
usb-linux.c:(.text+0x1440): undefined reference to `libusb_submit_transfer'
usb-linux.c:(.text+0x14cc): undefined reference to `libusb_alloc_transfer'
usb-linux.c:(.text+0x1504): undefined reference to `libusb_submit_transfer'
usb-linux.c:(.text+0x1590): undefined reference to `libusb_free_transfer'
usb-linux.c:(.text+0x15dc): undefined reference to `libusb_free_transfer'
collect2: ld returned 1 exit status
make[2]: *** [daemon/usbmuxd] Error 1
make[1]: *** [daemon/CMakeFiles/usbmuxd.dir/all] Error 2
make: *** [all] Error 2
[root@larrythechim build]# make -t
[root@larrythechim build]# make -t -j12
[root@larrythechim build]# make
[ 30%] Built target libusbmuxd
[ 90%] Built target usbmuxd
[100%] Built target iproxy
[root@larrythechim build]# su
[root@larrythechim build]# make install
[ 30%] Built target libusbmuxd
[ 90%] Built target usbmuxd
[100%] Built target iproxy
Install the project...
-- Install configuration: ""
-- Installing: /usr/lib/pkgconfig/libusbmuxd.pc
-- Installing: /usr/lib/libusbmuxd.so.1.0.4
-- Installing: /usr/lib/libusbmuxd.so.1
-- Installing: /usr/lib/libusbmuxd.so
-- Installing: /usr/include/usbmuxd.h
-- Installing: /usr/include/usbmuxd-proto.h
-- Installing: /usr/sbin/usbmuxd
-- Installing: /lib/udev/rules.d/85-usbmuxd.rules
-- Installing: /usr/bin/iproxy
[root@larrythechim build]# /sbin/ldconfig
/sbin/ldconfig: File /usr/local/lib/libusb-1.0.so.0 is empty, not checked.
/sbin/ldconfig: File /usr/local/lib/libusb-1.0.so.0.0.0 is empty, not checked.
/sbin/ldconfig: File /usr/local/lib/libusb-1.0.so is empty, not checked.
/sbin/ldconfig: /usr/lib/libportaudio.so.2 is not a symbolic link
160gb ps3 fw ? > upgraded hdd to 1tb > updated fw to 2.76
playstation network > larrythechamp
User avatar
larrythechim
ydl beginner
ydl beginner
 
Posts: 40
Joined: 23 Jun 2009, 20:51

Re: Libimobiledevice

Postby larrythechim » 12 Aug 2010, 00:17

Well today extremely early in the morning I managed to meet all of the dependencies for libimobiledevice. But I stumbled upon a problem with libimobile device itself. Make errors out apparently half way through the make proccess. I only found that out when I told make to ignore errors and keep going. Here is my results from configuring and making:
Code: Select all
[Beastly_Larry@larrythechim libimobiledevice-1.0.2]$ ./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)... yes
checking for a Python interpreter with version >= 2.3... python
checking for python... /usr/bin/python
checking for python version... 2.4
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.4/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.4/site-packages
checking for swig... /usr/bin/swig
checking for SWIG version... 1.3.29
configure: SWIG executable is '/usr/bin/swig'
configure: SWIG library directory is '/usr/share/swig/1.3.29'
checking for style of include used by make... GNU
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for python2.4... (cached) /usr/bin/python
checking for a version of Python >= '2.1.0'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python2.4
checking for Python library path... -L/usr/lib/python2.4 -lpython2.4
checking for Python site-packages path... /usr/lib/python2.4/site-packages
checking python extra libraries...  -lpthread -ldl  -lutil
checking python extra linking flags... -Xlinker -export-dynamic
checking consistency of all components of python development environment... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... powerpc64-unknown-linux-gnu
checking host system type... powerpc64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf32ppclinux) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld -m elf32ppclinux
checking if the linker (/usr/bin/ld -m elf32ppclinux) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf32ppclinux) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf32ppclinux) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libusbmuxd... yes
checking for libglib2... yes
checking for libgthread2... yes
checking for libgnutls... yes
checking for libtasn1... yes
checking for libplist... yes
checking for libplistmm... yes
checking for gcry_control in -lgcrypt... yes
checking for ANSI C header files... (cached) yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking gcrypt.h usability... yes
checking gcrypt.h presence... yes
checking for gcrypt.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strndup... yes
checking for supported compiler flags...  -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGEFILE_SOURCE value needed for large files... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating dev/Makefile
config.status: creating tools/Makefile
config.status: creating swig/Makefile
config.status: creating docs/Makefile
config.status: creating libimobiledevice-1.0.pc
config.status: creating doxygen.cfg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

Configuration for libimobiledevice 1.0.2:
-------------------------------------------

  Install prefix: .........: /usr/local
  Debug code ..............: no
  Dev tools ...............: no
  Python bindings .........: yes

  Now type 'make' to build libimobiledevice 1.0.2,
  and then 'make install' for installation.

[Beastly_Larry@larrythechim libimobiledevice-1.0.2]$ make
make  all-recursive
make[1]: Entering directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2'
Making all in src
make[2]: Entering directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2/src'
  CC     idevice.lo
  CC     debug.lo
  CC     userpref.lo
  CC     property_list_service.lo
  CC     device_link_service.lo
  CC     lockdown.lo
  CC     afc.lo
  CC     file_relay.lo
  CC     notification_proxy.lo
  CC     installation_proxy.lo
  CC     sbservices.lo
  CC     mobile_image_mounter.lo
  CC     screenshotr.lo
  CC     mobilesync.lo
  CC     mobilebackup.lo
  CCLD   libimobiledevice.la
make[2]: Leaving directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2/src'
Making all in include
make[2]: Entering directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2/include'
Making all in swig
make[2]: Entering directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2/swig'
/usr/bin/swig -c++ -python -I../include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/python2.4 -I/usr/include -I../src -o imobiledevice_wrap.cxx imobiledevice.i
make  all-am
make[3]: Entering directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2/swig'
  CXX    imobiledevice_wrap.lo
imobiledevice_wrap.cxx: In function ‘void delete_idevice(idevice*)’:
imobiledevice_wrap.cxx:4823: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘int idevice_init_device_by_uuid(idevice*, char*)’:
imobiledevice_wrap.cxx:4848: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘int idevice_init_device(idevice*)’:
imobiledevice_wrap.cxx:4853: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘char* idevice_get_uuid(idevice*)’:
imobiledevice_wrap.cxx:4859: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘Lockdownd* idevice_get_lockdown_client(idevice*)’:
imobiledevice_wrap.cxx:4870: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘void delete_Lockdownd(Lockdownd*)’:
imobiledevice_wrap.cxx:4876: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘void Lockdownd_send(Lockdownd*, PList::Node*)’:
imobiledevice_wrap.cxx:4879: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘PList::Node* Lockdownd_receive(Lockdownd*)’:
imobiledevice_wrap.cxx:4883: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘MobileSync* Lockdownd_get_mobilesync_client(Lockdownd*)’:
imobiledevice_wrap.cxx:4887: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘NotificationProxy* Lockdownd_get_notification_proxy_client(Lockdownd*)’:
imobiledevice_wrap.cxx:4890: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘void delete_MobileSync(MobileSync*)’:
imobiledevice_wrap.cxx:4896: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘void MobileSync_send(MobileSync*, PList::Node*)’:
imobiledevice_wrap.cxx:4900: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘PList::Node* MobileSync_receive(MobileSync*)’:
imobiledevice_wrap.cxx:4904: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘void delete_NotificationProxy(NotificationProxy*)’:
imobiledevice_wrap.cxx:4911: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘int16_t NotificationProxy_post_notification(NotificationProxy*, const char*)’:
imobiledevice_wrap.cxx:4915: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘int16_t NotificationProxy_observe_notification(NotificationProxy*, const char*)’:
imobiledevice_wrap.cxx:4925: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘int16_t NotificationProxy_observe_notifications(NotificationProxy*, const char**)’:
imobiledevice_wrap.cxx:4928: error: ‘$self’ was not declared in this scope
imobiledevice_wrap.cxx: In function ‘int16_t NotificationProxy_set_callback(NotificationProxy*, PyObject*)’:
imobiledevice_wrap.cxx:4932: error: ‘$self’ was not declared in this scope
make[3]: *** [imobiledevice_wrap.lo] Error 1
make[3]: Leaving directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2/swig'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2/swig'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Beastly_Larry/ffff/libimobiledevice-1.0.2'
make: *** [all] Error 2

I have no ideas on what went wrong. I would guess something dealing with swig. I will be working on this for a while and if I find the solution myself I'll share it.
160gb ps3 fw ? > upgraded hdd to 1tb > updated fw to 2.76
playstation network > larrythechamp
User avatar
larrythechim
ydl beginner
ydl beginner
 
Posts: 40
Joined: 23 Jun 2009, 20:51

PreviousNext

Return to Playstation 3

Who is online

Users browsing this forum: No registered users and 52 guests

cron