Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff , TyRaNiD
deePSP
Posts: 7 Joined: Thu Jul 13, 2006 9:52 am
Post
by deePSP » Sat Sep 23, 2006 6:28 am
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: Select all
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
dot_blank
Posts: 498 Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil
Post
by dot_blank » Sat Sep 23, 2006 9:42 am
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
deePSP
Posts: 7 Joined: Thu Jul 13, 2006 9:52 am
Post
by deePSP » Sat Sep 23, 2006 8:56 pm
@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: Select all
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 ^^
deePSP
Posts: 7 Joined: Thu Jul 13, 2006 9:52 am
Post
by deePSP » Mon Sep 25, 2006 4:41 am
First thanx for helping me(the stupid newbe)
@Insert_witty_name
I've don so, but i have got a new error :)
Code: Select all
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.
Insert_witty_name
Posts: 376 Joined: Wed May 10, 2006 11:31 pm
Post
by Insert_witty_name » Mon Sep 25, 2006 9:18 am
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: Select all
# 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
deePSP
Posts: 7 Joined: Thu Jul 13, 2006 9:52 am
Post
by deePSP » Wed Sep 27, 2006 12:27 am
@Insert_witty_name
Thank you very much !!!
It works now. I have installed freetype incorrectly.
Thanx !!
liwooood
Posts: 3 Joined: Tue Oct 10, 2006 2:29 pm
Post
by liwooood » Tue Oct 10, 2006 2:47 pm
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'??
liwooood
Posts: 3 Joined: Tue Oct 10, 2006 2:29 pm
Post
by liwooood » Tue Oct 10, 2006 4:23 pm
bkmemcpy.S not in bookr-0.7.1-src!
I copy it from bookr-0.7.0-src.zip!
:),i got it!
deePSP
Posts: 7 Joined: Thu Jul 13, 2006 9:52 am
Post
by deePSP » Wed Oct 11, 2006 12:53 am
@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 ??
liwooood
Posts: 3 Joined: Tue Oct 10, 2006 2:29 pm
Post
by liwooood » Wed Oct 11, 2006 12:45 pm
someone send me the zip file!
:)
I got it from sourceforge.net again,and found it exist!
dot_blank
Posts: 498 Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil
Post
by dot_blank » Thu Oct 12, 2006 4:46 am
please use bookrs sourceforge page when you
have bugs and stop bumping this forum with
support questions
10011011 00101010 11010111 10001001 10111010