mattmartini / iphoneebooks

Automatically exported from code.google.com/p/iphoneebooks
GNU General Public License v2.0
0 stars 0 forks source link

build error due to missing header #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I try to build the app I get the following error:
/usr/local/lib/gcc/arm-apple-darwin/4.0.1/../../../../arm-apple-darwin/include/U
IKit/UIWebView.h:9:36:
error: UIKeyboardInputProtocol.h: No such file or directory

I am using version 0.30 of the toolchain

Original issue reported on code.google.com by benoitce...@gmail.com on 24 Oct 2007 at 4:49

GoogleCodeExporter commented 9 years ago
Haven't built this prog, but I did see a diff file with changes for UIWebView.h 
in
it.  I think the UIKeyboardInputProtocol line will end up being commented out, 
plus a
few other changes. 

Original comment by ViaJ...@gmail.com on 31 Oct 2007 at 11:23

GoogleCodeExporter commented 9 years ago
Here's a diff file

Original comment by luc...@adminsparadise.com on 5 Dec 2007 at 11:39

Attachments:

GoogleCodeExporter commented 9 years ago
while it enabled my compilation to go sligthly further now it is failing with 
the error 
/usr/local/lib/gcc/arm-apple-darwin/4.0.1/../../../../arm-apple-darwin/include/U
IKit/UIViewHeartbeat.h:7:21:
error: NSObject.h: No such file or directory

Original comment by benoitce...@gmail.com on 13 Dec 2007 at 4:27

GoogleCodeExporter commented 9 years ago
Hello, I have updated UIViewHeartbeat.h with the following diff 

7c7
< #import "NSObject.h"
---
> #import <Foundation/NSObject.h>

I am going further but am still encountering missing headers:

arm-apple-darwin-gcc -c -O3 -I/opt/local/include palm/pluckhtml.m -o 
palm/pluckhtml.o
palm/pluckhtml.m:11:21: error: jpeglib.h: No such file or directory
palm/pluckhtml.m:23: error: syntax error before ‘boolean’

(many additional errors removed, the missing .h is the critical one)

Original comment by benoitce...@gmail.com on 13 Dec 2007 at 4:51

GoogleCodeExporter commented 9 years ago
Hello,
I cross compiled the libjpeg for the iphone and added 
-I${HEAVENLY}/usr/local/include
to the flags and now that problem went away.
Then I ran into yet another one:
undefined symbol ___eprintf
I got rid of this one by removing the calls to assert in unpluck.m

I am however quite surprised by the number of this issues that I have ran into. 
Shouldn't we have a wiki page specially on building iphoneebooks

Original comment by benoitce...@gmail.com on 16 Dec 2007 at 4:23

GoogleCodeExporter commented 9 years ago
I've removed the various assert's and committed in revision 220.

I'm also going to summarize the notes in this issue, then move them to a wiki 
page.

Original comment by pendorbo...@gmail.com on 19 Dec 2007 at 2:43

GoogleCodeExporter commented 9 years ago
thank you

Original comment by benoitce...@gmail.com on 19 Dec 2007 at 3:57

GoogleCodeExporter commented 9 years ago
how do u crosscompile libjpeg?

Original comment by honch...@gmail.com on 12 Jan 2008 at 5:16

GoogleCodeExporter commented 9 years ago
It was pretty straightforward, if I remember correctly I downloaded the 
sources, used
./configure --target=arm-apple-darwin then make and make install
This was done on a linux machine
I may have done a bit more (to tell libjpeg to install itself in my HEAVENLY) 
but I
am not 100% sure

Original comment by benoitce...@gmail.com on 15 Jan 2008 at 2:34

GoogleCodeExporter commented 9 years ago
Any remaining build issues in this ticket are caused by invalid headers from the
toolchain.  The fix is to modify the toolchain headers to add missing files 
(just
`touch` them)

Original comment by pendorbo...@gmail.com on 17 Feb 2008 at 6:01