Amazon.com Widgets image not found error
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2014, 08:02:17 AM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Help!!!
| | |-+ image not found error
Pages: [1] Go Down
Print
Author Topic: image not found error (Read 1822 times)
macklestacker
Newbie
*
Posts: 4


Email




on: May 11, 2009, 07:26:29 PM

I am really interested in a program on Github which I cannot get to run, I contacted the developer and they provided me with a compiled version of the program but when I try to run it I get the following error:

"Dyld Error Message:
  Library not loaded: /usr/local/lib/libftd2xx.0.1.0.dylib
  Referenced from: /Users/LAGO/Downloads/MatthewCallis-Lesminni-a631408b990291a22af211b4fb8615fc2c625173/Lesminni.app/Contents/MacOS/Lesminni
  Reason: image not found"

Its created in Objective-C 2.0, located here:

http://github.com/MatthewCallis/Lesminni/tree/master

What exactly am I doing wrong thanks. Please bear in mind I do not program and so do not understand a lot of the simple issues that you may take for granted.

Thanks.
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #1 on: May 11, 2009, 07:56:06 PM

It's looking to link with a library called
Code: (Objective-C)
libftd2xx
.  I looked at your link and noticed that library is there for downloading.  Try downloading and installing it.  Unless you change some of the build options, you'll have to install the library in /usr/local/lib.   I don' t know if the download comes with an installation program (like make) or a README file, as I didn't download it.

Good luck!

Cheers,

Steve Kochan
Logged
macklestacker
Newbie
*
Posts: 4


Email




Reply #2 on: May 11, 2009, 08:57:06 PM

Thanks, I did a Terminal command to copy the file to the location /usr/local/lib/ but after that I get the following error:

Dyld Error Message:
  Library not loaded: /usr/local/lib/libftd2xx.0.1.0.dylib
  Referenced from: /Users/LAGO/Desktop/Lesminni.app/Contents/MacOS/Lesminni
  Reason: no suitable image found.  Did find:
   /usr/local/lib/libftd2xx.0.1.0.dylib: stat() failed with errno=20
   /usr/local/lib/libftd2xx.0.1.0.dylib: stat() failed with errno=20


I just can't win!
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #3 on: May 11, 2009, 09:59:03 PM

Ok, so I downloaded the files and did a build for you.   Grin

You need to make sure that you create the directories (you can use the mkdir command) /usr/local and /usr/local/lib before you copy the file in.  For example, if you just had a /usr/local (and no /usr/local/lib directory) and did a cp of the file to /usr/local/lib, that's what the file would be named.

The errno=20 (file is not a directory) is consistent with what likely happened.

Good luck and let me know if you have any problems.

Cheers,

Steve Kochan
Last Edit: May 11, 2009, 10:00:46 PM by skochan Logged
macklestacker
Newbie
*
Posts: 4


Email




Reply #4 on: May 12, 2009, 03:58:19 AM

Hi, god, I hate all this Terminal stuff. I find now that I must have created a file called "lib" because I try to access it as a directory and it won't recognise it as one. And it wont let me use the mkdir command to create one:


localhost:local tenticle$ ls
lib      pdftotext
localhost:local tenticle$ cd /usr/local/lib
-bash: cd: /usr/local/lib: Not a directory
localhost:local tenticle$ mkdir lib
mkdir: lib: File exists
localhost:local tenticle$ mkdir /lib/
mkdir: /lib/: File exists
localhost:local tenticle$ mkdir /lib
mkdir: /lib: File exists
localhost:local tenticle$ cd /usr/local/lib
-bash: cd: /usr/local/lib: Not a directory
localhost:local tenticle$ ls
lib      pdftotext
localhost:local tenticle$


I wanted to get hold of this pesky dir from within the finder using the old 'Go To Folder..." option off the finder logo on the dock but I can't find it. Sorry to ask but what to do now and when you compiled it did the program actually load and work?

Thanks
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #5 on: May 12, 2009, 04:21:52 AM

Yes, the program works.  From inside Terminal, you'll have to execute the following:

Code: (Objective-C)
rm /usr/local/lib
mkdir /usr/local/lib
cp lib* /usr/local/lib

The last cp command is executed from the directory that contains the library file.  You may have to precede each command with sudo to write to /usr/local, as in

Code: (Objective-C)
sudo rm /usr/local/lib

Cheers,

Steve Kochan
Last Edit: May 12, 2009, 04:45:00 AM by skochan Logged
macklestacker
Newbie
*
Posts: 4


Email




Reply #6 on: May 12, 2009, 04:52:48 AM

A ha, I just remembered all this stuff is hidden and I have a nice little widget (one of those just in case ones) that reveals hidden files, so I copied it in. But got the error:

"The file might be corrupted, truncated, or in a different format than you expect."

So, following your advice.. I still found myself not getting what I wanted. Not that its duff but its just not gonna go is it.

Then, I did a reveal hidden files command in Terminal in my admin account and opened the progam in that environment and it worked, huray!

Thanks for your help!
Logged
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.