| View previous topic :: View next topic |
| Author |
Message |
deePSP
Joined: 13 Jul 2006 Posts: 7
|
Posted: Sat Sep 23, 2006 6:28 am Post subject: Compile Bookr for PSP - ERROR ??? |
|
|
Hello,
I've tried to compile the bookr 0.7.1 src for the PSP.
It worked alright, but at the end there came the following error:
| Code: | linux:/usr/local/pspdev/psp/sdk/samples/bookr # make
make: *** No rule to make target `bkmemcpy.S', needed by `bookr.elf'. Stop.
linux:/usr/local/pspdev/psp/sdk/samples/bookr #
|
Can anyone tell me what I have to do now ???
My PSP-Dev System:
~ PC (AMD Athlon64-X2 3800+)
~ SUSE LINUX 9.3
~ The newest psptoolchain |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Sat Sep 23, 2006 9:42 am Post subject: |
|
|
you must build the bkmemcpy.s into an object
please check that in your Makefile that the line
OBJS += bkmemcpy.o
reads as such and not bkmemcpy.S
for future reference bookr has its own bug report
site on sourceforge and you should use that page
to enter any future bugs you might have and do not
bother this page over a particular psp binary
thanx _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
deePSP
Joined: 13 Jul 2006 Posts: 7
|
Posted: Sat Sep 23, 2006 8:56 pm Post subject: |
|
|
@dot_blank
I know there is a bug report about bookr on sourceforge
but it don't help me.
...OK I have don what you hav said.
I have written bkmemcpy.o instead of bkmemcpy.S into the
makefile. Then I renamed the bkmemcpy.S file to bkmemcpy.o
If I wanted to compile it again, there occures another error:
| Code: | psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -Imupdf/include -G0 -Wall -O2 -I/usr/local/pspdev/psp/include/freetype2 -L. -L/usr/local/pspdev/psp/sdk/lib bkpdf.o bklayer.o bkdocument.o bkmainmenu.o bkfilechooser.o bklogo.o bkuser.o bookr.o bkbookmark.o bkpopup.o bkcolorchooser.o bkfancytext.o bkplaintext.o bkpalmdoc.o palmdoc/palm.o fzrefcount.o fzinstreammem.o fzinstreamstd.o fzimage.o fzimagepng.o fztexture.o fzfont.o fzscreenpsp.o fzscreencommon.o tinystr.o tinyxmlerror.o tinyxml.o tinyxmlparser.o res_uifont.o res_txtfont.o res_uitex.o res_logo.o res_uitex2.o bkmemcpy.o -Lmupdf/libs -lmupdf -lraster -lworld -lfonts -lstream -lbase -lpspgum -lpspgu -lpsppower -lpsprtc -lpng -lz -ljpeg -lm -lfreetype -lstdc++ -lsupc++ -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o bookr.elf
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld:bkmemcpy.o: file format not recognized; treating as linker script
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld:bkmemcpy.o:27: parse error
collect2: ld returned 1 exit status
make: *** [bookr.elf] Error 1
linux:/usr/local/pspdev/psp/sdk/samples/bookr # |
I know that the compiler doesn't recognize the
fileformat(it's in Assembler I think), but what can
I do now ??
Can you or anyone other help me ??
The Makefile and the bkmemcpy.S can be viewed or downloaded at:
http://swiss2.whosting.ch/beni/bk_error_files/index.htm
THX ^^ |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Sun Sep 24, 2006 3:53 am Post subject: |
|
|
| Rename that file to bkmemcpy.S but leave it as bkmemcpy.o in the makefile. |
|
| Back to top |
|
 |
deePSP
Joined: 13 Jul 2006 Posts: 7
|
Posted: Mon Sep 25, 2006 4:41 am Post subject: |
|
|
First thanx for helping me(the stupid newbe)
@Insert_witty_name
I've don so, but i have got a new error :)
| Code: | psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -Imupdf/include -G0 -Wall -O2 -I/usr/local/pspdev/psp/include/freetype2 -L. -L/usr/local/pspdev/psp/sdk/lib bkpdf.o bklayer.o bkdocument.o bkmainmenu.o bkfilechooser.o bklogo.o bkuser.o bookr.o bkbookmark.o bkpopup.o bkcolorchooser.o bkfancytext.o bkplaintext.o bkpalmdoc.o palmdoc/palm.o fzrefcount.o fzinstreammem.o fzinstreamstd.o fzimage.o fzimagepng.o fztexture.o fzfont.o fzscreenpsp.o fzscreencommon.o tinystr.o tinyxmlerror.o tinyxml.o tinyxmlparser.o res_uifont.o res_txtfont.o res_uitex.o res_logo.o res_uitex2.o bkmemcpy.o -Lmupdf/libs -lmupdf -lraster -lworld -lfonts -lstream -lbase -lpspgum -lpspgu -lpsppower -lpsprtc -lpng -lz -ljpeg -lm -lfreetype -lstdc++ -lsupc++ -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o bookr.elf
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libfreetype.a when searching for -lfreetype
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/psp/bin/../lib/libfreetype.a when searching for -lfreetype
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/psp/lib/libfreetype.a when searching for -lfreetype
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld: cannot find -lfreetype
collect2: ld returned 1 exit status
make: *** [bookr.elf] Error 1
linux:/usr/local/pspdev/psp/sdk/samples/bookr # |
What's now the failure ?? I have installed freetype from the
ps2dev SVN. |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Mon Sep 25, 2006 9:18 am Post subject: |
|
|
Make sure it's in the correct directory - I seem to remember having to manually move my freetype library when I installed it from the SVN.
Actually that could have been the header file - I forget.
[EDIT] I downloaded the bookr source to better understand your issue.
I assume you have gone into the mupdf directory and compiled all the libraries needed in there (if not just cd into the mupdf directory and type 'make'.
I had to change the makefile a bit to get it to compile correctly (nothing major), I think your freetype issue is because you have installed it incorrectly.
Grab it again from the SVN and make sure to look at the readme.psp file, you have to do more than just 'make' and 'make install' to install freetype.
Here's my makefile for reference:
| Code: | # to fix: compile manually the mupdf libs first...
# cd mupdf; make
PSP_EBOOT_ICON=data/icon0.png
TARGET=bookr
OBJS:=bkpdf.o bklayer.o bkdocument.o bkmainmenu.o bkfilechooser.o bklogo.o bkuser.o bookr.o bkbookmark.o bkpopup.o bkcolorchooser.o
OBJS+=bkfancytext.o bkplaintext.o bkpalmdoc.o palmdoc/palm.o
OBJS+=fzrefcount.o fzinstreammem.o fzinstreamstd.o fzimage.o fzimagepng.o fztexture.o fzfont.o fzscreenpsp.o fzscreencommon.o
OBJS+=tinystr.o tinyxmlerror.o tinyxml.o tinyxmlparser.o
OBJS+=res_uifont.o res_txtfont.o res_uitex.o res_logo.o res_uitex2.o bkmemcpy.o
INCDIR =
CFLAGS = -Imupdf/include -G0 -Wall -O2 -I/usr/local/pspdev/psp/include/freetype2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS= mupdf/libs/libmupdf.a mupdf/libs/libraster.a mupdf/libs/libworld.a mupdf/libs/libfonts.a mupdf/libs/libstream.a mupdf/libs/libbase.a -lpspgum -lpspgu -lpsppower -lpsprtc -lpng -lz -ljpeg -lm -lfreetype -lstdc++ -lsupc++
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Bookr - Book Reader
PSPSDK=$(shell psp-config --pspsdk-path)
#USE_PSPSDK_LIBC=1
include $(PSPSDK)/lib/build.mak
res_uifont.c: data/urwgothicb.pfb
bin2c $< temp res_uifont
sed s/static// temp > $@
rm -f temp
res_txtfont.c: data/vera.ttf
bin2c $< temp res_txtfont
sed s/static// temp > $@
rm -f temp
res_uitex.c: data/ui.png
bin2c $< temp res_uitex
sed s/static// temp > $@
rm -f temp
res_uitex2.c: data/ui2.png
bin2c $< temp res_uitex2
sed s/static// temp > $@
rm -f temp
res_logo.c: data/logo.png
bin2c $< temp res_logo
sed s/static// temp > $@
rm -f temp
sce: kxploit
rm -Rf __SCE__bookr
rm -Rf __SCE__bookr%
mv bookr __SCE__bookr
mv bookr% %__SCE__bookr |
|
|
| Back to top |
|
 |
deePSP
Joined: 13 Jul 2006 Posts: 7
|
Posted: Wed Sep 27, 2006 12:27 am Post subject: |
|
|
@Insert_witty_name
Thank you very much !!!
It works now. I have installed freetype incorrectly.
Thanx !! |
|
| Back to top |
|
 |
liwooood
Joined: 10 Oct 2006 Posts: 3
|
Posted: Tue Oct 10, 2006 2:47 pm Post subject: how did you solve the problem? |
|
|
hi deePSP,
I had met the same problem!
but i dont konw how to solve it!
I only followed the steps in 'README.PSP'
Does I need to do the same things written in 'README.CVS'?? |
|
| Back to top |
|
 |
liwooood
Joined: 10 Oct 2006 Posts: 3
|
Posted: Tue Oct 10, 2006 4:23 pm Post subject: What happened? |
|
|
bkmemcpy.S not in bookr-0.7.1-src!
I copy it from bookr-0.7.0-src.zip!
:),i got it! |
|
| Back to top |
|
 |
deePSP
Joined: 13 Jul 2006 Posts: 7
|
Posted: Wed Oct 11, 2006 12:53 am Post subject: |
|
|
@liwooood
The bkmemcpy.S was not in the src-file ???
that's funny... Where did you get the bookr 0.7.1 src ??
from the SVN ?? or from qj.net ?? |
|
| Back to top |
|
 |
liwooood
Joined: 10 Oct 2006 Posts: 3
|
Posted: Wed Oct 11, 2006 12:45 pm Post subject: hehe! |
|
|
someone send me the zip file!
:)
I got it from sourceforge.net again,and found it exist! |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Thu Oct 12, 2006 4:46 am Post subject: |
|
|
please use bookrs sourceforge page when you
have bugs and stop bumping this forum with
support questions _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
|