Pages: [1] 2
Author Topic: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?  (Read 5325 times)
thedofl
NYC, USA

Posts: 67

Gravatar


WWW
xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« on: April 13, 2010, 12:43:32 AM »

I got error while compile. Of course I got latest version of OF and ofxiPhone from GitHub.
Is this common issue or only I got?
Logged
rickerbh
Reading, UK

Posts: 5

Gravatar


WWW
Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #1 on: April 13, 2010, 02:24:49 PM »

I had troubles too - kept getting messages about DWARF errors and AT_byte_size being redefined...  I then downgraded to XCode 3.2.1 with iPhone OS 3.1.3 and it all worked fine.
Logged
thedofl
NYC, USA

Posts: 67

Gravatar


WWW
Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #2 on: April 13, 2010, 09:40:08 PM »

That's what I did too.
Logged
armadillu
Treviso, Italy

Posts: 31

Gravatar


WWW
Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #3 on: April 17, 2010, 09:06:32 PM »

did it all work fine after downgrading? I can't run code on the iphone anymore, i Get:
A bunch of Warning when trying to run on the iPhone:

UUID mismatch detected with the loaded library ....

I spent one full day and tried everything possible thing, reformat the phone, uninstall xcode from the supplied shell script, tried several versions...

I always get this warnings so I cant debug code on the phone!
Anyone else?
Logged

Oriol Ferrer MesiĆ 
http://uri.cat
stuartmemo
Glasgow, Scotland

Posts: 5

Gravatar


WWW
Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #4 on: April 20, 2010, 01:04:46 PM »

Getting the same DWARF and AT_byte_size errors here. Don't really want to downgrade, anyone have a rough idea where I could start digging around for a fix? I'm happy to investigate...
Logged

Stuart Memo
Question Park
rickerbh
Reading, UK

Posts: 5

Gravatar


WWW
Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #5 on: April 20, 2010, 01:21:41 PM »

When I has the issue I did a bit of investigation, but couldn't figure anything out as I'm a bit of a C++ noob.  From what I could determine from my good friend google it looks like some of the code is conflicting when creating the debugging symbols (that's what the DWARF thing is I think) - and my guess that somewhere the definition of a byte might be getting redone - perhaps a 32-64 bit thing?  

After I thought this could be the issue I found myself well out of my depth and reverted back to Xcode 3.2.1 :shock:

Hope that helps - but it might be a red herring.

H.
Logged
stuartmemo
Glasgow, Scotland

Posts: 5

Gravatar


WWW
Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #6 on: April 20, 2010, 11:46:48 PM »

Ah ok, thanks for that! I'll have a look.

Currently downloading beta 2, which will most likely make no difference whatsoever.
Logged

Stuart Memo
Question Park
ramiroespada

Posts: 2

Gravatar


Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #7 on: April 21, 2010, 09:50:01 AM »

Hey stuartmemo!

How did it went with the new beta?

I'm also trying to find out how to fix/avoid that invalid DWARF errors.

I guess I'll have to downgrade as the others.

BTW: I'm new here but I've being playing around with openFrameworks for quite so time, I love it!

Greetings from Denmark :)

RE
Logged
stuartmemo
Glasgow, Scotland

Posts: 5

Gravatar


WWW
Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #8 on: April 22, 2010, 12:16:09 AM »

Ok, after a bit of playing about. I'm able to Build & Run on both the simulator and a 4.0 device by doing the following...

1. Download the mac version of OF.
2. In the mac version, navigate to libs/FreeImage/lib/osx/
3. Copy the file "freeimage.a" to libs/FreeImage/lib/iPhone
4. In the iPhone version, rename "libFreeImage_iphone_universal.a" to "libFreeImage_iphone_universal_iphone.a"
5. Rename "freeimage.a" to "libFreeImage_iphone_universal.a"

Then you should be good to go. Please note that this is a hacky workaround. I don't have detailed (any) knowledge of the differences between the iPhone and mac version of FreeImage, so I'm not sure how this will impact your project. If anyone can shed any light, please do!

Let me know if this works for you!
Logged

Stuart Memo
Question Park
ramiroespada

Posts: 2

Gravatar


Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #9 on: April 22, 2010, 08:40:45 AM »

Amazing!

The trick did work for me as well, and the methods I'm using form the libFreeImage seems to be working as well, so I hope it doesn't break at some point :)

Thanks for the tip!

RE
Logged
jefftimesten
New York

Posts: 100

Gravatar


WWW
Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #10 on: April 30, 2010, 06:53:13 PM »

I also had this problem, did stuartmemos hack, and now its working fine, but I am curious what was wrong with the freeimage library.  

Any info greatly appreciated
Logged
jefftimesten
New York

Posts: 100

Gravatar


WWW
Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #11 on: May 01, 2010, 09:37:45 PM »

I found Robert Carlsen's post about compiling FreeImage for armv6 and modified his Makefile a bit so that it compiles for iPhone OS 4.0 and 4.0 simulator.

1. Download and expand Freeimage
2. Download this Makefile and put it into the FreeImage directory
3. Run the makefile with make -f Makefile.iphone
4. Replace the the libraries in /libs/FreeImage/lib/iphone with libfreeimage-iphone.a and libfreeimage-iphonesimulator.a
5. Add the libraries to your project in the FreeImage group

Alternately, just download FreeImage_libs_iphoneOS40.zip, unpack it, and put it in your libs folder.  

This is working for me so far... We'll see if I run into any issues.
Logged
sss

Posts: 7

Gravatar


Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #12 on: June 20, 2010, 05:25:31 AM »

I just tried downloading the compiled libraries and got this error:

Undefined symbols:
  "_fopen$UNIX2003", referenced from:
      _FreeImage_GetFileType in libfreeimage-iphonesimulator.a(GetType.o-i686)
      _FreeImage_Save in libfreeimage-iphonesimulator.a(Plugin.o-i686)
      _FreeImage_Load in libfreeimage-iphonesimulator.a(Plugin.o-i686)
      LibRaw::dcraw_ppm_tiff_writer(char const*)in libfreeimage-iphonesimulator.a(libraw_cxx.o-i686)
      LibRaw::dcraw_thumb_writer(char const*)in libfreeimage-iphonesimulator.a(libraw_cxx.o-i686)
      LibRaw_file_datastream::LibRaw_file_datastream(char const*)in libfreeimage-iphonesimulator.a(libraw_cxx.o-i686)

Which is supposedly due to a conflict in compiling against different system libraries (http://cocoawithlove.com/2009/09/buildi ... ns-in.html).

Downloaded FreeImage source and makefile and rebuilt - I'm running OSX6.3. Worked fine. Couldn't attache the libraries here - taking too long to upload. But if anyone fails the process above send me a message and I'll email you the libs.
Logged
Gwydion
Berlin

Posts: 133

Gravatar


Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #13 on: June 22, 2010, 03:05:08 PM »

Quote from: "jefftimesten"
I found Robert Carlsen's post about compiling FreeImage for armv6 and modified his Makefile a bit so that it compiles for iPhone OS 4.0 and 4.0 simulator.

1. Download and expand Freeimage
2. Download this Makefile and put it into the FreeImage directory
3. Run the makefile with make -f Makefile.iphone
4. Replace the the libraries in /libs/FreeImage/lib/iphone with libfreeimage-iphone.a and libfreeimage-iphonesimulator.a
5. Add the libraries to your project in the FreeImage group
This worked for me! Many, many thanks!  :D
Logged
sting000

Posts: 1

Gravatar


Re: xcode 3.2.3 + iPhone SDK 4 beta works with ofxiPhone?
« Reply #14 on: June 22, 2010, 06:50:18 PM »

Thanks for the tips.
The tricks did work for me.

but I still had a problem with FreeImage and iPhone OS 4.0 simulator.

image.loadImage("somephoto.png");
ofSetcolor(0xffffff);
image.draw(0,0);

It looks strange color.

[attachment=0:jmp27pbv]ss1.jpg[/attachment:jmp27pbv]

same code works fine with iPhone OS 3.1.2.


Anyone had some similar problem???

Thanks


* ss1.jpg (199.46 KB, 470x460 - viewed 5128 times.)
Logged
Pages: [1] 2
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines

viagra priser