|
|
Subject: Re: makelrf on linux - msg#00029
List: linux.hardware.sony.librie
--- In librie@xxxxxxxxxxxxxxx, dilvesh@xxxx wrote:
> >
>
> Put the attached Makefile in the same directory and type "make".
> The author can feel free to add this makefile to the source.
>
> The problem was that you were not linking to the library that provides the
> compress function. A Makefile is the proper way to organize things like that,
> and this is just a very basic example, but it worked for me.
>
> --
> Dilvesh Blackwood dilvesh@xxxx
Oops! Thanks Dilvesh. Guess I should read to the end of the list...
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GE2qlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/librie/
<*> To unsubscribe from this group, send an email to:
librie-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: makelrf on linux
--- In librie@xxxxxxxxxxxxxxx, "BrianDorsey" <briandorsey@xxxx> wrote:
>
> --- In librie@xxxxxxxxxxxxxxx, "Nidyahia. M." <nidy@xxxx> wrote:
> > Hi Matt,
> >
> > Those messages are just warning, you should get your binary.
> >
> > Regards,
> > Nidy
> >
>
> I'm also not very adept at programming (at least in C :).
>
> Here is what I get:
> brian@nai sources $ gcc -o makelrf makelrf.c book.c
> book.c: In function `write_lrf_file':
> book.c:261: warning: passing arg 2 of `compress' from incompatible
> pointer type
> book.c: In function `add_txt_to_book':
> book.c:792: warning: passing arg 3 of `get_next_page' from
> incompatible pointer type
> /tmp/ccHvGPG8.o(.text+0x3ee): In function `compress_sptr':
> : undefined reference to `compress'
> /tmp/ccHvGPG8.o(.text+0x5f1): In function `write_lrf_file':
> : undefined reference to `compress'
> collect2: ld returned 1 exit status
>
>
> I'm attempting to compile the 0.3 version on Gentoo linux. I'm
> guessing that it can't find 'compress' because I've got something
> setup wrong in my environment, but I don't really know where to start.
> Anyone have any hints for me? (even a link to learning the basics of C
> compilation. ;)
>
> Take care,
> -Brian
That's what I get now, too! (perhaps those messages were there before and I
didn't notice
them?)
I've been able to compile makelrf with a few of the "compress" lines commented
out of
book.c, but the resulting LRFs are huge (1.4MB for a 400k ebook).
'compress' seems to be part of zlib, and I've read zlib.h (the ones that were
part of my
system, as well as the most current one - downloaded, compiled and installed),
and as far
as I can tell the include statements in book.c are correct, and zlib is in the
right place on
my system -- so maybe it's something with our environment, as you suggest. Or
perhaps
it's related to the line in b.bat (which, I'm guessing, is a compile script for
Windows) that
says "c:\lib\zlib\zlib.lib"... Without a corresponding line in our compile
statement, maybe
we're just missing something?
-Matt
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GE2qlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/librie/
<*> To unsubscribe from this group, send an email to:
librie-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Next Message by Date:
click to view message preview
Re: makelrf on linux
Last post on compiling, I promise :)
It seems the web view of messages to this group strips out tab characters, so
the Makefile
Dilvesh so kindly wrote will error with the message "Makefile:9: *** missing
separator.
Stop."
Adding tabs to the last two lines fixed the issue for me, and thought I'd share:
makelrf:[TAB]$(OBJS)
[TAB]$(CC)[TAB]$(CFLAGS)[TAB]$(LDFLAGS)[TAB]-o[TAB]$@[TAB]$(OBJS)[TAB]$(LIBS)
Finally, as a result of everyone's help you can now download Librie format
ebooks from
http://manybooks.net -- I hope, anyway, as I don't have a Librie to test with
yet. If folks
would care to visit and try downloading a book or two I'd be most grateful. Any
comments
or suggestions are welcome.
-Matt
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GE2qlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/librie/
<*> To unsubscribe from this group, send an email to:
librie-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Previous Message by Thread:
click to view message preview
Re: Re: makelrf on linux
On Sat, 18 Dec 2004 19:00:53 -0500 (EST), dilvesh@xxxxxxxxxxxx
<dilvesh@xxxxxxxxxxxx> wrote:
> Put the attached Makefile in the same directory and type "make".
> The author can feel free to add this makefile to the source.
>
> The problem was that you were not linking to the library that provides the
> compress function. A Makefile is the proper way to organize things like
> that,
> and this is just a very basic example, but it worked for me.
Great, this worked perfectly for me! Thanks a bunch!
OK, off to try and make some books. ;)
Take care,
-Brian
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GE2qlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/librie/
<*> To unsubscribe from this group, send an email to:
librie-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Next Message by Thread:
click to view message preview
Re: makelrf on linux
Last post on compiling, I promise :)
It seems the web view of messages to this group strips out tab characters, so
the Makefile
Dilvesh so kindly wrote will error with the message "Makefile:9: *** missing
separator.
Stop."
Adding tabs to the last two lines fixed the issue for me, and thought I'd share:
makelrf:[TAB]$(OBJS)
[TAB]$(CC)[TAB]$(CFLAGS)[TAB]$(LDFLAGS)[TAB]-o[TAB]$@[TAB]$(OBJS)[TAB]$(LIBS)
Finally, as a result of everyone's help you can now download Librie format
ebooks from
http://manybooks.net -- I hope, anyway, as I don't have a Librie to test with
yet. If folks
would care to visit and try downloading a book or two I'd be most grateful. Any
comments
or suggestions are welcome.
-Matt
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GE2qlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/librie/
<*> To unsubscribe from this group, send an email to:
librie-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|
|