Announcement

Collapse
No announcement yet.

PS2Link/PS2Client problem with printf

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PS2Link/PS2Client problem with printf

    EDIT: 4/22/13 I figured out the issue. By going into windows firewall I was able to delete all the permissions of multiple different copies of PS2Client I had launched. I then used PS2Client again and, after I gave it internet permissions, it worked!

    I haven't been using ps2link for a while now. But I can recall that when I was using it, it worked perfectly. Now I do not recieve any data/response from ps2link. What I get when I send an elf over to execute is:

    Code:
    (make run)
    "make run
    ps2client -h 10.0.1.100 execee host:cube.elf"
    (when I press CTRL+C)
    "make: *** [run] Error 58"
    
    (directly run ps2client)
    "ps2client -h 10.0.1.100 execee host:cube.elf"
    I am using printf exactly as so:
    Code:
    printf("X: %f, Y: %f, Z: %f\nX: %f, Y: %f, Z: %f\n", object_position[0], object_position[1], object_position[2], object_position2[0], object_position2[1], object_position2[2]);
    I also have included the "sifrpc" header and the "debug" header.

    My makefile looks like this
    Code:
    EE_BIN = cube.elf
    EE_OBJS = cube.o
    EE_LIBS = -ldraw -lgraph -lmath3d -lmf -lpacket -ldma -lpad -ldebug
    
    all: $(EE_BIN)
        ee-strip --strip-all $(EE_BIN)
    
    clean:
        rm -f *.elf *.o *.a
    
    run: $(EE_BIN)
        ps2client -h 10.0.1.100 execee host:$(EE_BIN)
    
    reset:
        ps2client -h 10.0.1.100 reset
    
    include $(PS2SDK)/samples/Makefile.pref
    include $(PS2SDK)/samples/Makefile.eeglobal
    I run my old elfs and I don't receive anything. Any help with this? Thanks.

    This is a modified version of "cube" from the ps2sdk samples.
    Last edited by dnawrkshp; 04-22-2013, 10:20:09 PM.
Working...
X