thedofl
NYC, USA
Posts: 67
|
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
|
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
|
That's what I did too.
|
|
|
|
|
Logged
|
|
|
|
armadillu
Treviso, Italy
Posts: 31
|
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
|
|
|
|
stuartmemo
Glasgow, Scotland
Posts: 5
|
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
|
|
|
|
rickerbh
Reading, UK
Posts: 5
|
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
|
Ah ok, thanks for that! I'll have a look.
Currently downloading beta 2, which will most likely make no difference whatsoever.
|
|
|
|
|
Logged
|
|
|
|
|
ramiroespada
|
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
|
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
|
|
|
|
|
ramiroespada
|
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
|
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
|
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 Freeimage2. 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.a5. 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
|
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
|
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 Freeimage2. 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.a5. Add the libraries to your project in the FreeImage group This worked for me! Many, many thanks! :D
|
|
|
|
|
Logged
|
|
|
|
|
sting000
|
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
|
|
|
|
|
|