Page 5 of 6 FirstFirst 123456 LastLast
Results 41 to 50 of 51

Thread: How do I compile my own mapThis?

                  
   
  1. #41
    DCEmu Regular
    Join Date
    Feb 2007
    Posts
    448
    Rep Power
    68

    Default

    I hope you don't "forget" it in final version HAHAHA

    Two thumbs up Deniska, waiting for the 17th !

  2. #42
    DCEmu Newbie
    Join Date
    Aug 2007
    Posts
    6
    Rep Power
    0

    Question PSP-290 freeze

    Hi! I have decided to edit and keep GMDL and MapThis current versions for use with mapy.cz. Iam almost done, but I can't compile PSP-290 version of 0.5 MapThis :'( It comples just fine, but I can't run it on PSP. I use 3.51 kernel. I can run official version of MapThis 0.5. I use pspdevkit release 11. Any ideas? If no, can anybody help me and compile my modified version witch his SDK? Thnks in advance and sorry for long post.

    My makefile:
    #BUILD_PRX = 1

    TARGET = Binary
    OBJS = ./main.o ./attractions.o ./danzeff.o ./font.o ./sceUsbGps.o ./geo-client.o ./graphics.o ./mp3player.o ./NavigateCalculations.o ./nmeap01.o ./utils.o

    PSP_EBOOT_PIC1 = PIC1.PNG

    CFLAGS = -O2 -G0-Wall -g -DDANZEFF_SCEGU -DNDEBUG
    LIBS = -lstdc++ -lpspdebug -lpspsdk -lpspwlan -lpspnet_apctl -lpspnet_resolver -lc -lpspnet_inet -lpspnet -lpsphprm_driver -lpsprtc -lpspvfpu -lpspgum -lpspgu -lpspusb -lpsppower -lpng -lz -ljpeg -lm -lpspwlan -lmad -lpspaudiolib -lpspaudio -g
    PSP_EBOOT_ICON = ICON0P.PNG

    INCDIR =
    LIBDIR =
    LDFLAGS = -mno-crt0 -nostartfiles

    CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
    ASFLAGS = $(CFLAGS)

    EXTRA_TARGETS = EBOOT.PBP
    PSP_EBOOT_TITLE = mapViewer
    PSPSDK = $(shell psp-config --pspsdk-path)
    include $(PSPSDK)/lib/build.mak
    Compile oputput:
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o main.o main.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o attractions.o attractions.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o danzeff.o danzeff.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o font.o font.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o sceUsbGps.o sceUsbGps.S
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o geo-client.o geo-client.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o graphics.o graphics.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o mp3player.o mp3player.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o NavigateCalculations.o NavigateCalculations.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o nmeap01.o nmeap01.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -c -o utils.o utils.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -G0 -Wall -g -DDANZEFF_SCEGU -DNDEBUG -L. -LC:/pspdev/psp/sdk/lib -mno-crt0 -nostartfiles main.o attractions.o danzeff.o font.o sceUsbGps.o geo-client.o graphics.o mp3player.o NavigateCalculations.o nmeap01.o utils.o -lstdc++ -lpspdebug -lpspsdk -lpspwlan -lpspnet_apctl -lpspnet_resolver -lc -lpspnet_inet -lpspnet -lpsphprm_driver -lpsprtc -lpspvfpu -lpspgum -lpspgu -lpspusb -lpsppower -lpng -lz -ljpeg -lm -lpspwlan -lmad -lpspaudiolib -lpspaudio -lpspdebug -lpspdisplay -lpspge -lpspgu -lpspgum -lpspctrl -lpspsdk -lc -lpsputility -lpspuser -lpspkernel -o Binary.elf
    /cygdrive/c/pspdev/bin/../lib/gcc/psp/4.0.2/../../../../psp/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000008900018
    psp-fixup-imports Binary.elf
    psp-strip Binary.elf -o strip_Binary.elf
    pack-pbp EBOOT.PBP PARAM.SFO ICON0P.PNG \
    NULL NULL PIC1.PNG \
    NULL strip_Binary.elf NULL
    rm -f strip_Binary.elf

  3. #43
    PSP Coder deniska's Avatar
    Join Date
    Jul 2005
    Posts
    1,557
    Rep Power
    80

    Default

    it might have something to do with the linker warning that you get...
    try reinstalling the toolchain...

  4. #44
    DCEmu Pro
    Join Date
    Feb 2007
    Location
    Netherlands
    Posts
    539
    Rep Power
    69

    Default

    kexix: uncomment BUILD_PRX=1. I had the exact same problem as you, because in 0.497 things wouldn't compile _with_ that directive. Seems for 0.5+, it won't compile _without_.

    Btw., I'm using the newest SVN checkout from svn.ps2dev.org (psptoolchain, pspsdk, libs, etc. under Linux).

  5. #45
    DCEmu Newbie
    Join Date
    Apr 2007
    Posts
    87
    Rep Power
    0

    Default

    /cygdrive/j/PSP/homebrew/mapThis0501/src/main.c:686: undefined reference to `sceSysconCtrlHRPower'
    collect2: ld returned 1 exit status
    make: *** [mView.elf] Error 1

    i can compile 5.0 properly but i'm having this error on 5.01

    can someone help me?? i'm not using cygwin just pspdev.. oh by the way i've not tried to edit any thing yet just tried compiling it

    thanks!

  6. #46
    DCEmu Pro
    Join Date
    Feb 2007
    Location
    Netherlands
    Posts
    539
    Rep Power
    69

    Default

    Strange, that function is also used in 0.5. Did you (un)comment the proper blocks in the makefile? In 0.5, PSP-290 is the default, in 0.501, generic is.

    Otherwise, as always, you could try getting the newest psptoolchain and pspsdk from SVN (svn.ps2dev.org).

  7. #47
    DCEmu Newbie
    Join Date
    Apr 2007
    Posts
    87
    Rep Power
    0

    Default

    hmm.. i just found out i compiled the 290 on 0.5 and the generic on 0.501

    so how do i solve this? i wanna compile the generic instead. and how do i update the psptoolchain and pspsdk? without using cygwin that is.

    thanks!

  8. #48
    DCEmu Pro
    Join Date
    Feb 2007
    Location
    Netherlands
    Posts
    539
    Rep Power
    69

    Default

    You should open the makefile (in src), comment all the PSP-290 directives and uncomment the generic directives. You can easily see the difference between the makefile from 0.5 and 0.501 also.

    As for updating the psptoolchain and pspsdk, that's easiest if you use an SVN checkout from svn.ps2dev.org.

  9. #49
    DCEmu Newbie
    Join Date
    Apr 2007
    Posts
    87
    Rep Power
    0

    Default

    hmm still dun work..

    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o main.o main.c
    main.c: In function '_sioInit':
    main.c(686) : warning: implicit declaration of function 'sceSysconCtrlHRPower'
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o graphics.o graphics.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o font.o font.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o utils.o utils.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o attractions.o attractions.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o nmeap01.o nmeap01.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o danzeff.o danzeff.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o NavigateCalculations.o NavigateCalculations.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -
    DNDEBUG -DGENERIC -c -o sceUsbGps.o sceUsbGps.S
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o geo-client.o geo-client.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -c -o mp3player.o mp3player.c
    psp-gcc -I. -IC:/pspdev/psp/sdk/include -O2 -G0 -Wall -g -DDANZEFF_SCEGU -DNDEB
    UG -DGENERIC -L. -LC:/pspdev/psp/sdk/lib main.o graphics.o font.o utils.o att
    ractions.o nmeap01.o danzeff.o NavigateCalculations.o sceUsbGps.o geo-client.o m
    p3player.o -lpspdebug -lpsphprm_driver -lpsprtc -lpspvfpu -lpspgum -lpspgu -
    lpsppower -lpng -lz -ljpeg -lm -lpspwlan -lmad -lpspaudiolib -lpspaudio -lpsp
    debug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspne
    t_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o mView.elf
    main.o: In function `_sioInit':
    /cygdrive/j/PSP/homebrew/mapThis0501/src/main.c:686: undefined reference to `sce
    SysconCtrlHRPower'
    collect2: ld returned 1 exit status
    make: *** [mView.elf] Error 1

    tat was the whole error.. from wat i noe, if it says "warning: implicit declaration of ....", some function is missing.

    and i'm still having trouble updating psptoolchain. pspsdk was ok.

    i've my psptoolchain folder in c:\pspdev
    i type ./toolchain.sh in the toolchain folder using cygwin
    but i keep getting this error:
    ERROR: Add C:/pspdev/bin to your path before continuing.
    ../depends/check-pspdev.sh: Failed.

  10. #50
    DCEmu Pro
    Join Date
    Feb 2007
    Location
    Netherlands
    Posts
    539
    Rep Power
    69

    Default

    Well, it does say "Add C:/pspdev/bin to your path before continuing.", you could try that

Page 5 of 6 FirstFirst 123456 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •