Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Pcsx2 [x86 only] Configs


  • Global Moderator

    @HoJo215 said in Pcsx2 [x86 only] Configs:

    I received different errors now using the original source and your makefile

    I think you're doing a mistake somewhere. The makefile I posted is not used for compilation in your last error post. You're probably still using the original Makefile from the git repo.



  • @mitu said in Pcsx2 [x86 only] Configs:

    I tried copy & pasting and typing out your makefile but I get:

    Makefile:24: *** missing separator. Stop.


  • Global Moderator

    @HoJo215 Yeah. make is really finicky with tabs vs. spaces. Use the original makefile from the repo and edit it, making 2 changes:

    • comment out the LIBS line (line 9, add a # at the beginning of the line)
    • remove line 35 (containing @echo.).


  • @mitu

    Okay. I did that and now I get different warnings.

    h@h-NUC8i7BEH:~/Downloads/PS_ISO_Tool-master$ make
    Compiling psiso_tool.cpp psiso_tool.o ...
    source/psiso_tool.cpp: In function ‘int GetTitle(char*, char*, char*, int)’:
    source/psiso_tool.cpp:284:5: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
         SAFE_CLOSE(fd);
         ^~~~~~~~~~
    source/psiso_tool.cpp:293:3: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
       SAFE_CLOSE(fd);
       ^~~~~~~~~~
    source/psiso_tool.cpp:215:7: warning: variable ‘bFoundTitle’ set but not used [-Wunused-but-set-variable]
      bool bFoundTitle = false;
           ^~~~~~~~~~~
    source/psiso_tool.cpp: In function ‘int psxProcessISO(char*, int, char*, char*, bool)’:
    source/psiso_tool.cpp:1019:5: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
         SAFE_CLOSE(fd);
         ^~~~~~~~~~
    source/psiso_tool.cpp:1071:66: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         _verbose_printf("SYSTEM.CNF Data Length: 0x%08X \n", nDataLen);
                                                                      ^
    source/psiso_tool.cpp:1141:5: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
         SAFE_CLOSE(fd);
         ^~~~~~~~~~
    source/psiso_tool.cpp:1213:5: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
         SAFE_CLOSE(fd);
         ^~~~~~~~~~
    source/psiso_tool.cpp:1297:5: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
         SAFE_CLOSE(fd);
         ^~~~~~~~~~
    source/psiso_tool.cpp:1350:77: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         _verbose_printf("%s Data Length: 0x%08X \n", szPS3_SYSTEM_FILE, nDataLen);
                                                                                 ^
    source/psiso_tool.cpp:1402:5: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
         SAFE_CLOSE(fd);
         ^~~~~~~~~~
    source/psiso_tool.cpp:870:7: warning: variable ‘nMode’ set but not used [-Wunused-but-set-variable]
       int nMode = 0;
           ^~~~~
    source/psiso_tool.cpp: In function ‘uint64_t ParseSFO(int, uint64_t, size_t, char*, char*)’:
    source/psiso_tool.cpp:495:7: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
      _read(fd, &header_data, sizeof(sfo_header_data));
    source/psiso_tool.cpp:574:7: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
      _read(fd, var_table_entries_data, nVarTableDataLen);
    source/psiso_tool.cpp:623:8: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
       _read(fd, var_table_entries[i].szName, 32);
    source/psiso_tool.cpp:634:9: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
        _read(fd, var_table_entries[i].szTxtData, var_table_entries[i].nDataSize);
    source/psiso_tool.cpp:652:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, temp, 4);
    source/psiso_tool.cpp:671:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, temp, 2);
    source/psiso_tool.cpp: In function ‘int PatchPS3ISO(int, char*, uint8_t*)’:
    source/psiso_tool.cpp:774:7: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
      _read(fd, ps3_disc_id, 0xC);
    source/psiso_tool.cpp:820:8: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
      _write(fd, _ps3_hdr_p1, sizeof(_ps3_hdr_p1));
    source/psiso_tool.cpp:823:8: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
      _write(fd, _ps3_hdr_p2, sizeof(_ps3_hdr_p2));
    source/psiso_tool.cpp: In function ‘int psxProcessISO(char*, int, char*, char*, bool)’:
    source/psiso_tool.cpp:864:8: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
       _read(fd, std_id, 5);
    source/psiso_tool.cpp:890:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, std_id, 5);
    source/psiso_tool.cpp:923:8: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
       _read(fd, vol_size, 4);
    source/psiso_tool.cpp:951:8: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
       _read(fd, root_dr_sector, 8);
    source/psiso_tool.cpp:994:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, SYSTEM_CNF, nLen);
    source/psiso_tool.cpp:1033:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, extent_loc, 8);
    source/psiso_tool.cpp:1059:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, data_len, 8);
    source/psiso_tool.cpp:1081:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, title_id_file_extent_data, nDataLen);
    source/psiso_tool.cpp:1176:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, PS3_GAME, sizeof(_PS3_GAME));
    source/psiso_tool.cpp:1228:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, extent_loc, 8);
    source/psiso_tool.cpp:1272:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, PS3_SYSTEM_FILE, nLen);
    source/psiso_tool.cpp:1312:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, extent_loc, 8);
    source/psiso_tool.cpp:1338:10: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         _read(fd, data_len, 8);
    Compiling psiso_tool_main.cpp psiso_tool_main.o ...
    source/psiso_tool_main.cpp:171:3: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
       "PS ISO Tool v"APP_VER" (supports PS1/PS2/PS3/PSP) (CaptainCPS-X, 2013) \n"
       ^
    Linking object files ...
    
    

  • Global Moderator

    @HoJo215 It doesn't matter, they're just warnings. The final message means the binary was created - check the bin folder for psiso_tool, which is the file you need.



  • @mitu

    It's not there.. Just the original files. Two bat files, two exe files and two folders.


  • Global Moderator

    @HoJo215 Then I don't know what to say - check again ? I get the file after the compilation

    pi@ubuntu-retropie:~/PS_ISO_Tool$ ls -l bin/
    total 116
     drwxrwxr-x 2 pi pi  4096 Mar 30 17:08 db
     -rw-rw-r-- 1 pi pi   335 Mar 30 17:08 example_batch.bat
     -rw-rw-r-- 1 pi pi   177 Mar 30 17:08 example_batch_create_ps3_iso.bat
     drwxrwxr-x 2 pi pi  4096 Mar 30 17:08 imgburn
     -rwxrwxr-x 1 pi pi 30632 Mar 30 17:15 psiso_tool
     -rwxrwxr-x 1 pi pi 30632 Mar 30 19:16 psiso_tool.exe
     -rw-rw-r-- 1 pi pi 35840 Mar 30 17:08 PSISO_Tool_GUI.exe
    

    which I can run

     bin/psiso_tool
    =========================================================================
    PS ISO Tool v1.03 (supports PS1/PS2/PS3/PSP) (CaptainCPS-X, 2013)
    =========================================================================
    Usage:  ps_isotool [opt] [in]
    -------------------------------------------------------------------------
    
    Example 1 - Patching a PS3 game ISO to comply with the PS3 system standard disc format:
    
    ps_isotool --ps3 --patch "C:\PS3ISO\MyPS3ISO.iso"
    
    Note: Only PS3 games will be patched, even if you specify "--patch" for other ISOs, they will not be modified.
    
    Example 2 - Displaying info from ISOs:
    
    ps_isotool --ps1 --verbose "C:\PSXISO\MyPS1ISO.bin"
    ps_isotool --ps2 --verbose "C:\PS2ISO\MyPS2ISO.iso"
    ps_isotool --ps3 --verbose "C:\PS3ISO\MyPS3ISO.iso"
    ps_isotool --psp --verbose "C:\PSPISO\MyPSPISO.iso"
    
    Note: If you don't specify "--verbose" then only the Title ID and Title will be displayed.
    
    Example 3 - Creating a PS3 ISO in compliance with the PS3 system standard disc format:
    
    psiso_tool --mkps3iso "C:\GAMES\BCUS98174-[The Last of Us]" "C:\DESTINATION_DIR"
    psiso_tool --mkps3iso "C:\GAMES\BCUS98174-[The Last of Us]"
    
    Note: You don't have to specify the ISO file name, it will be generated automatically,you just need to specify "Source Directory" and "Destination Directory".
    
    -------------------------------------------------------------------------
    


  • @mitu

    Yeah I don't get it either.
    Why something would be pinned in useful topics that's broken..
    Could you possibly send me your psiso_tools folder with makefile?
    I doubt it will work but worth a try.


  • Global Moderator

    @HoJo215 said in Pcsx2 [x86 only] Configs:

    Why something would be pinned in useful topics that's broken..

    It might have worked at the time, but newer versions of the compiler are stricter and the source doesn't compile out-of-the-box.

    Could you possibly send me your psiso_tools folder with makefile?

    It's the same folder as the one from the git repo, and the makefile I already posted. Nuke the git repo folder, then try again.



  • @mitu

    Yeah, I don't know. Maybe I'm missing dependencies..
    Well thanks for helping anyway. It's appreciated.



Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.