Seite 285 von 340 ErsteErste ... 185 235 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 335 ... LetzteLetzte
Zeige Ergebnis 8.521 bis 8.550 von 10174

C/C++ Programming Help Thread

This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; chrisp....i'm fairly certain the following line should be placed underneath psp_module_info: PSP_MAIN_THREAD_ATTR(THRE AD_ATTR_USER) <--i think you should only need THREAD_ATTR_USER ...

  
  1. #8521
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    chrisp....i'm fairly certain the following line should be placed underneath psp_module_info:

    PSP_MAIN_THREAD_ATTR(THRE AD_ATTR_USER) <--i think you should only need THREAD_ATTR_USER for this app only but someone correct me if wrong


    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  2. #8522
    QJ Gamer Bronze
    Points: 5.826, Level: 49
    Level completed: 38%, Points required for next Level: 124
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Everywhere
    Beiträge
    206
    Points
    5.826
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slicer4ever
    chrisp....i'm fairly certain the following line should be placed underneath psp_module_info:

    PSP_MAIN_THREAD_ATTR(THRE AD_ATTR_USER) <--i think you should only need THREAD_ATTR_USER for this app only but someone correct me if wrong
    Hmm... weird, I read somewhere today to put :
    PSP_MAIN_THREAD_ATTR(PSP_ THREAD_ATTR_USER);
    under it, but it didn't work either. I tried the one you suggested also, but still no go.


    Do you think it could be something with my sdk or something like that?

  3. #8523
    Points: 5.711, Level: 48
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Beiträge
    39
    Points
    5.711
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Instead of pspdebug.h use stdio.h(for the proper printf) as far as I know pspdebug.h doesn't work well in user mode (but I could be wrong).

  4. #8524
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    You are wrong. The proper printf won't do anything, especially because the defines will make you unable to access it.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  5. #8525
    Points: 5.711, Level: 48
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Beiträge
    39
    Points
    5.711
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    chrisp-- well there's nothing wrong with your code it compiled and ran fine try putting it in the GAME371 folder maybe thats your problem(again I might be wrong I ran it on psplink).

  6. #8526
    Points: 2.617, Level: 31
    Level completed: 12%, Points required for next Level: 133
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    NC
    Beiträge
    12
    Points
    2.617
    Level
    31
    Downloads
    0
    Uploads
    0

    Standard

    Im new at programming for the psp and i want to make my own app/game (not sure yet) and i was looking at some of the Libraries out on dl.qj and i saw the psp dialog box library. i thought i might look at that and see what it could do. so i downloaded it and i unzipped and was lost. i realized i had no idea where i was supposed to put the .h and .c files. i have made the simple programs like diplaying text graphics and mp3 playing but havent gone any farther.

    i just wanted to know how im supposed to install custom libraries.

    i found the dialog library here:
    http://dl.qj.net/PSP-Dialogs-library...5322/catid/202

    thanks for the help

  7. #8527
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    Zitat Zitat von bnc9
    chrisp-- well there's nothing wrong with your code it compiled and ran fine try putting it in the GAME371 folder maybe thats your problem(again I might be wrong I ran it on psplink).
    3.xx homebrew you must run the prx in psplink... (sorry if that's irrelevant, i dont want to read the entire situation :P)

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  8. #8528
    Lua guy
    Points: 11.690, Level: 71
    Level completed: 10%, Points required for next Level: 360
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Ort
    Wales, cardiff
    Beiträge
    1.442
    Points
    11.690
    Level
    71
    My Mood
    Blah
    Downloads
    0
    Uploads
    0

    Standard

    i was wondering does CSP development studio has an png librarie?

  9. #8529
    Points: 5.711, Level: 48
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Beiträge
    39
    Points
    5.711
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    CSP should have it but you're better off not using it and installing the toolchain with cygwin(it takes a few trys but I got it on my first) because CSP contains an old version of the SDK and it's difficult to use (no offense ManiacX :) .

  10. #8530
    Lua guy
    Points: 11.690, Level: 71
    Level completed: 10%, Points required for next Level: 360
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Ort
    Wales, cardiff
    Beiträge
    1.442
    Points
    11.690
    Level
    71
    My Mood
    Blah
    Downloads
    0
    Uploads
    0

    Standard

    How do you install the Toolchain with cygwin?

  11. #8531
    Points: 5.711, Level: 48
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Beiträge
    39
    Points
    5.711
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    [Guide] PSP Development Environment Setup Tutorial It's also stickied to the PSP Development forum

  12. #8532
    QJ Gamer Gold
    Points: 14.678, Level: 78
    Level completed: 57%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Nov 2006
    Beiträge
    1.523
    Points
    14.678
    Level
    78
    Downloads
    0
    Uploads
    0

    Standard

    What's the difference between

    Code:
    sceDisplayWaitVblank
    and


    Code:
    sceDisplayWaitVblankStart
    Which one is for what?

    PS: I read Header definition.

  13. #8533
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Just a guess, but one probably waits for a vblank to finish, and the other waits for a vblank to start.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  14. #8534
    Lua guy
    Points: 11.690, Level: 71
    Level completed: 10%, Points required for next Level: 360
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Ort
    Wales, cardiff
    Beiträge
    1.442
    Points
    11.690
    Level
    71
    My Mood
    Blah
    Downloads
    0
    Uploads
    0

    Standard

    Can you Change
    Code:
    SceCtrlData pad;
    So u could instead have
    Code:
     
    SceCtrlData menupad
    Then you'd would put
    Code:
     
    if (padmenu.Buttons & PSP_CTRL_DOWN) {
    printf("Your Pressing Down\n");
    }
    I think that would be right :? im still learning C.

  15. #8535
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Well, if you keep your variable names straight :P
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  16. #8536
    Points: 2.505, Level: 30
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    May 2008
    Beiträge
    3
    Points
    2.505
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    I am having a problem getting lightmp3 libraries to compile. I have libogg installed but I still get
    Code:
    /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libFLAC.a(ogg_decoder_aspect.o): In function `FLAC__ogg_decoder_aspect_read_callback_wrapper':
    ogg_decoder_aspect.c:(.text+0x160): undefined reference to `ogg_sync_buffer'
    /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libFLAC.a(ogg_decoder_aspect.o): In function `FLAC__ogg_decoder_aspect_finish':
    ogg_decoder_aspect.c:(.text+0x33c): undefined reference to `ogg_sync_clear'
    ogg_decoder_aspect.c:(.text+0x350): undefined reference to `ogg_stream_clear'
    /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libFLAC.a(ogg_decoder_aspect.o): In function `FLAC__ogg_decoder_aspect_init':
    ogg_decoder_aspect.c:(.text+0x36c): undefined reference to `ogg_stream_init'
    ogg_decoder_aspect.c:(.text+0x394): undefined reference to `ogg_sync_init'
    collect2: ld returned 1 exit status
    make: *** [softwareplayers.elf] Error 1
    I think it may be the makefile.
    Code:
    TARGET = softwareplayers
    
    OBJS = players/pspaudiolib.o players/id3.o players/mp3player.o players/oggplayer.o \
    
           players/mp3playerME.o players/aa3playerME.o players/flacplayer.o players/player.o \
    
           system/clock.o main.o
    
    
    
    #To build for custom firmware:
    
    BUILD_PRX = 1
    
    PSP_FW_VERSION=371
    
    
    
    CFLAGS =  -O3 -frename-registers -ffast-math -fomit-frame-pointer -G0 -Wall
    
    CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
    
    ASFLAGS = $(CFLAGS)
    
    
    
    LIBDIR =
    
    LDFLAGS =
    
    LIBS= -lFLAC -lm -lmad -lvorbisidec -lpsppower -lpspaudiolib -lpspaudio -lpspaudiocodec -lpspaudio_driver
    
    
    
    EXTRA_TARGETS = EBOOT.PBP
    
    PSP_EBOOT_TITLE = Software players test
    
    
    
    PSPSDK=$(shell psp-config --pspsdk-path)
    
    include $(PSPSDK)/lib/build.mak
    Any help is great!
    Thanks,
    Justin

  17. #8537
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Archaemic
    Just a guess, but one probably waits for a vblank to finish, and the other waits for a vblank to start.
    But that doesn't make any sense...
    :Argh:
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  18. #8538
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SuperBatXS
    But that doesn't make any sense...
    :Argh:
    Actually it does, one waits until the rendering starts (i.e when VBlank finishes), the other waits until the the rendering finishes (i.e. when VBlank starts).

    Read: http://en.wikipedia.org/wiki/Vertical_blanking_interval

  19. #8539
    Art
    Art ist offline
    Bush Programmer
    Points: 60.149, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Beiträge
    3.658
    Points
    60.149
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    I think he means because the start and finish is the same time,
    ie, start of the next one is the finish of the last one.
    I guess this isn't the case because a frame has to sit on the screen for some time so you see it.

  20. #8540
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Art
    I think he means because the start and finish is the same time,
    It isn't. Here is some further reading material:
    http://www.atariage.com/2600/program.../02breach.html

  21. #8541
    pok
    pok ist offline
    QJ Gamer Green
    Points: 2.654, Level: 31
    Level completed: 36%, Points required for next Level: 96
    Overall activity: 0%

    Registriert seit
    May 2008
    Beiträge
    13
    Points
    2.654
    Level
    31
    Downloads
    0
    Uploads
    0

    Standard

    i alredy have code wrriten in C++ but i dont know how to compile it to EBOOT.PBP
    and one more question how to install cygwin

  22. #8542
    QJ Gamer Platinum
    Points: 66.627, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Ort
    National Front Disco
    Beiträge
    13.057
    Points
    66.627
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    Follow this guide. :)

  23. #8543
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Lol...i forgot how to update my sdk...could someone remind me how? My social life is killing me...
    I tried ./toolchain.sh, but i get an to Set PSPDev before continuing??
    Geändert von SuperBatXS (05-19-2008 um 07:36 AM Uhr)
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  24. #8544
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    ./toolchain.sh 3 6

  25. #8545
    Points: 2.584, Level: 30
    Level completed: 90%, Points required for next Level: 16
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    9
    Points
    2.584
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    I need some help implementing sound in PSP pileup, ive tried using libmad but my compiler seems to not like it, it comes up with tonnes of errors e.g MAD_BUFFER_GUARD undeclared etc etc, it keeps on going on saying that everything is undeclared. if it helps i'm using cygwin from CSP and am using a slightly out of date libmad. i cant update because cygwin doesnt like this either.... help?

  26. #8546
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Did you include the proper headers...?
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  27. #8547
    Points: 4.137, Level: 40
    Level completed: 94%, Points required for next Level: 13
    Overall activity: 0%

    Registriert seit
    Apr 2006
    Beiträge
    28
    Points
    4.137
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    If anyone here has the patience to tutor(read: answer some questions and point me in the right direction) a new coder in the ways of C and using OSLib, I would graciously appreciate the help. I'm afraid that with 855 pages in this thread, there's just too much here for me to wade through.

    You can contact me by:
    AIM \\ Llanowyn
    MSN + Email \\ [email protected]

    Thank you for your help!

    Edit: Firefox double posted for me V_V.
    Geändert von Llanowyn (05-20-2008 um 08:53 AM Uhr) Grund: Automerged Doublepost

  28. #8548
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Hey,
    I tried to update my SDK, but i get an error that i don't have PSPDEV installed...what should i do?
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  29. #8549
    QJ Gamer Platinum
    Points: 66.627, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Ort
    National Front Disco
    Beiträge
    13.057
    Points
    66.627
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    Do you even have the PSP toolchain installed?

  30. #8550
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    I "svn"ed it; i have it downloaded; i can cd into it. Obviously, my cygwin is working because i can compile.
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:15 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .