dirkvdb / ps3netsrv-- Goto Github PK
View Code? Open in Web Editor NEWC++ implementation of the ps3netsrv server
C++ implementation of the ps3netsrv server
compile failed
make
clang++ -c -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors -stdlib=libc++ ps3netsrv.cpp -o ps3netsrv.o
ps3netsrv.cpp:18:10: fatal error: 'utils/log.h' file not found
^
1 error generated.
make: *** [ps3netsrv.o] Error 1
Webman won't even allow browsing the host directories. Apparently, there has been a fix to the original ps3netsrv to make it work with webman.
I made a test file (com.ps3netsrv.bridge.plist) to start this up at boot on Mac and it worked perfect:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ps3netsrv</string>
<key>ProgramArguments</key>
<array>
<string>/[path]/ps3netsrv--/script.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>LaunchOnlyOnce</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
Here is the script.sh I made, I then made it executable with chmod +x:
/[path]/ps3netsrv++ /[path to folders]
Hey
compiled GIT sources with ipkg bootstrap under DSM 6.1.1-15101 Update 1.
Compilation works and psnetsrv++ starts.
Can log in via multiman and webman and browse net_host folders. (debugged via ssh)
When I select a JB folder (game) to be mounted in multiman I receive
"The selected disc image is not a compliant PS3ISO, but may still be able to access it in other applications."
Pressing X results in XMB without any mounted image.
In webman I receive mounting error as well.
config:
rebug 4.78.2 REX, webman mod 1.47.05, mmCM 04.81.02, COBRA 7.30, rebug tools 02.02.12.
tried rebug rex 4.80.1 and 4.81.1 and 4.81.2 as well.
I am totally frustrated atm because I also tried docker with several images, entware compiled ps3netsrv and aldotools ps3netsrv via git, too. no success.
strangely when I use the windows version of ps3netsrv (https://github.com/aldostools/webMAN-MOD/releases) and point via windows to the net drive (\something\GAMES) the JB mounting in webman und multiman works.
Please.... need some help. wasted my whole weekend compiling (entware, optware, virtualbox....)
Best regards
Atzetot
Had to use gcc.
[0] % make
clang++ -c -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors -stdlib=libc++ ps3netsrv.cpp -o ps3netsrv.o
ps3netsrv.cpp:7:10: fatal error: 'array' file not found
#include <array>
^~~~~~~
1 error generated.
make: *** [Makefile:16: ps3netsrv.o] Error 1
[255] % clang --version
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Also the readme should include a "cd ps3netsrv--" after git clone
.
Hi, i have issues in compilation on debian jessie (8):
[bagheera@debian ~/temp/ps3netsrv--]
$ make
clang++ -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors -stdlib=libc++ ps3netsrv.o fileoperations.o log.o -lpthread -o ps3netsrv++
/usr/bin/ld: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o: unrecognized relocation (0x2a) in section .init
/usr/bin/ld: final link failed: Bad value
clang: fatal error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:13: recipe for target 'ps3netsrv++' failed
make: *** [ps3netsrv++] Error 1[bagheera@debian ~/temp/ps3netsrv--]
$ make CXX=g++
g++ -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors ps3netsrv.o fileoperations.o log.o -lpthread -o ps3netsrv++
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o: unrecognized relocation (0x2a) in section .init
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:13: recipe for target 'ps3netsrv++' failed
make: *** [ps3netsrv++] Error 1
How can i fix that?
I've opened the Xcode project but can't compile it, the same from terminal.
make
clang++ -c -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors -stdlib=libc++ ps3netsrv.cpp -o ps3netsrv.o
ps3netsrv.cpp:30:10: fatal error: expected ')'
uint64_t htonll(uint64_t val)
^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
^
ps3netsrv.cpp:30:10: note: to match this '('
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
^
1 error generated.
make: *** [ps3netsrv.o] Error 1
both with g++ and clang
Mounting a PS3 ISO via MultiMan/mmCM works as expected, but when selecting a PSX ISO image, the PS3 XMB hangs (you see the glittering dots appearing but they stay forever) upon exiting mmCM.
When killing the ps3netsrv process, startup continues.
It would be great if you could create a license file for this project
I have this error when i try to cross compile on debian
root@debian:~/develop/src/PS3iso/ps3netsrv--# make CXX=${HOST}-g++ x86_64-unknown-linux-gnu-g++ -c -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors ps3netsrv.cpp -o ps3netsrv.o In file included from ./utils/inc/utils/log.h:31:0, from ps3netsrv.cpp:20: ./utils/inc/utils/timeoperations.h: In function 'void utils::timeops::sleepMs(uint32_t)': ./utils/inc/utils/timeoperations.h:40:9: error: 'sleep_for' is not a member of 'std::this_thread' compilation terminated due to -Wfatal-errors. make: *** [ps3netsrv.o] Error 1
Hi,
When i try to launch a tittle in multiman i get:
Error:
Dex mounter Pc application is not running or timeout occured
Please try again.
On my slackware box i get:
durands@linux-server:/ps3netsrv--$ ./ps3netsrv++ /home/durands/disks/data3/Jeux/Sony/PS3/Netserver/GAMES//ps3netsrv--$ ./ps3netsrv++ /home/durands/disks/data3/Jeux/Sony/Playstation\ 3/Net\ server/
INFO: [12:36:45.737] Waiting for client...
INFO: [12:37:16.861] Connection from 192.168.1.146
ERROR: [12:37:16.861] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/PS3/Netserver/GAMES//is_ps3_compat1/ (No such ile or directory)
ERROR: [12:37:16.901] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/PS3/Netserver/GAMES//GAMES (No such file or d ectory)
DEBUG: [12:37:16.942] [140240031450880] openDirectory
DEBUG: [12:37:16.981] [140240031450880] openDirectory done
DEBUG: [12:37:16.982] [140240031450880] listDirectoryEntryShort
INFO: [12:37:29.751] Connection from 192.168.1.146
ERROR: [12:37:29.751] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/PS3/Netserver/GAMES//is_ps3_compat1/ (No such ile or directory)
DEBUG: [12:37:29.813] [140240031450880] openDirectory
DEBUG: [12:37:29.853] [140240031450880] openDirectory done
DEBUG: [12:37:29.854] [140240031450880] listDirectoryEntryShort
INFO: [12:37:37.851] Connection from 192.168.1.146
ERROR: [12:37:37.851] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/PS3/Netserver/GAMES//is_ps3_compat1/ (No such ile or directory)
DEBUG: [12:37:37.892] [140240031450880] openDirectory
DEBUG: [12:37:37.932] [140240031450880] openDirectory done
DEBUG: [12:37:37.932] [140240031450880] listDirectoryEntryShort
INFO: [12:37:45.513] Connection from 192.168.1.146
ERROR: [12:37:45.514] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/PS3/Netserver/GAMES//PS3_GAME (No such file o directory)
INFO: [12:37:45.515] Connection from 192.168.1.146
DEBUG: [12:37:45.515] [140240031450880] openDirectory
DEBUG: [12:37:45.515] [140240031450880] openDirectory done
ERROR: [12:37:45.555] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/PS3/Netserver/GAMES//is_ps3_compat1/ (No such ile or directory)
^CINFO: [12:38:28.431] Terminated
durands@linux-server:
INFO: [12:38:40.612] Waiting for client...
INFO: [12:38:53.643] Connection from 192.168.1.146
ERROR: [12:38:53.643] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//PS3_GAME (No such f ile or directory)
INFO: [12:38:53.647] Connection from 192.168.1.146
DEBUG: [12:38:53.647] [140032982669056] openDirectory
DEBUG: [12:38:53.647] [140032982669056] openDirectory done
ERROR: [12:38:53.687] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//is_ps3_compat1/ (No such file or directory)
INFO: [12:38:55.076] Connection from 192.168.1.146
ERROR: [12:38:55.076] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/PS3_GAME (No such file or directory)
INFO: [12:38:55.078] Connection from 192.168.1.146
DEBUG: [12:38:55.078] [140032982669056] openDirectory
DEBUG: [12:38:55.078] [140032982669056] openDirectory done
ERROR: [12:38:55.118] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//is_ps3_compat1/ (No such file or directory)
INFO: [12:38:56.320] Connection from 192.168.1.146
INFO: [12:38:56.322] Connection from 192.168.1.146
DEBUG: [12:38:56.322] [140032982669056] openDirectory
DEBUG: [12:38:56.322] [140032982669056] openDirectory done
ERROR: [12:38:56.362] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//is_ps3_compat1/ (No such file or directory)
INFO: [12:39:09.859] Connection from 192.168.1.146
ERROR: [12:39:09.860] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//is_ps3_compat1/ (No such file or directory)
DEBUG: [12:39:09.900] [140032982669056] openDirectory
DEBUG: [12:39:09.939] [140032982669056] openDirectory done
DEBUG: [12:39:09.940] [140032982669056] listDirectoryEntryShort
DEBUG: [12:39:09.940] [140032982669056] listDirectoryEntryShort done
DEBUG: [12:39:09.940] [140032982669056] listDirectoryEntryShort
DEBUG: [12:39:09.940] [140032982669056] listDirectoryEntryShort done
DEBUG: [12:39:09.981] [140032982669056] listDirectoryEntryShort
INFO: [12:39:21.853] Connection from 192.168.1.146
ERROR: [12:39:21.853] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//is_ps3_compat1/ (No such file or directory)
DEBUG: [12:39:21.894] [140032982669056] openDirectory
DEBUG: [12:39:21.933] [140032982669056] openDirectory done
DEBUG: [12:39:21.934] [140032982669056] listDirectoryEntryShort
DEBUG: [12:39:21.934] [140032982669056] listDirectoryEntryShort done
DEBUG: [12:39:21.934] [140032982669056] listDirectoryEntryShort
DEBUG: [12:39:21.934] [140032982669056] listDirectoryEntryShort done
DEBUG: [12:39:21.998] [140032982669056] listDirectoryEntryShort
INFO: [12:39:36.890] Connection from 192.168.1.146
ERROR: [12:39:36.890] Failed to remove file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:36.892] Connection from 192.168.1.146
ERROR: [12:39:36.892] Failed to remove file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/working.txt (No such file o r directory)
INFO: [12:39:36.894] Connection from 192.168.1.146
INFO: [12:39:36.977] Connection from 192.168.1.146
ERROR: [12:39:36.977] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:36.979] Connection from 192.168.1.146
INFO: [12:39:37.526] Connection from 192.168.1.146
ERROR: [12:39:37.527] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:37.534] Connection from 192.168.1.146
INFO: [12:39:38.095] Connection from 192.168.1.146
ERROR: [12:39:38.095] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:38.103] Connection from 192.168.1.146
INFO: [12:39:38.664] Connection from 192.168.1.146
ERROR: [12:39:38.664] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:38.672] Connection from 192.168.1.146
INFO: [12:39:39.233] Connection from 192.168.1.146
ERROR: [12:39:39.233] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:39.241] Connection from 192.168.1.146
INFO: [12:39:39.801] Connection from 192.168.1.146
ERROR: [12:39:39.802] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:39.809] Connection from 192.168.1.146
INFO: [12:39:40.370] Connection from 192.168.1.146
ERROR: [12:39:40.371] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:40.378] Connection from 192.168.1.146
INFO: [12:39:40.939] Connection from 192.168.1.146
ERROR: [12:39:40.939] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:40.947] Connection from 192.168.1.146
INFO: [12:39:41.508] Connection from 192.168.1.146
ERROR: [12:39:41.508] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:41.516] Connection from 192.168.1.146
INFO: [12:39:42.077] Connection from 192.168.1.146
ERROR: [12:39:42.077] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
INFO: [12:39:42.085] Connection from 192.168.1.146
INFO: [12:39:42.645] Connection from 192.168.1.146
ERROR: [12:39:42.646] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/working.txt ( No such file or directory)
INFO: [12:39:42.649] Connection from 192.168.1.146
ERROR: [12:39:42.649] Failed to obtain file info for file: /home/durands/disks/data3/Jeux/Sony/Playstation 3/Net server//GAMES/error.txt (No such file or directory)
Any taught?
Title correctly show up in multiman so my directory settings seems o.k.
Does this support the new webman modified ps3netsrv for network games (net_host)?
It will show the games but MultiMan or WebMan do not work at all.
https://github.com/aldostools/webMAN-MOD/tree/master/_Projects_/ps3netsrv/
Copying this folder and running Make.sh from it will produce a functional binary that does work properly with WebMan, and kinda with MultiMan.
I want to offer you an excellent feature : transparent support for ISO. Windows programs mount iso on a separate disk and this is not usable for ps3netsrv--. Many versions of Linux(ex. linux mips on router or on network HDD, or on NAS) iso mount is not available. Transparent support for iso would free from many difficulties.
root@HOUZI:/mmc/compile/ps3netsrv--# make CXX=g++
g++ -c -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors ps3netsrv.cpp -o ps3netsrv.o
ps3netsrv.cpp: In function 'int main(int, char**)':
ps3netsrv.cpp:648:20: error: 'stoi' is not a member of 'std'
port = std::stoi(optarg);
^
compilation terminated due to -Wfatal-errors.
Makefile:16: recipe for target 'ps3netsrv.o' failed
make: *** [ps3netsrv.o] Error 1
I'm trying to compile on readynas 102 and getting these errors:
root@readynas:~/ps3netsrv--# make
clang++ -c -O3 -I./utils/inc -D_FILE_OFFSET_BITS=64 -DCONSOLE_SUPPORTS_COLOR -Wall -std=c++11 -Wfatal-errors -stdlib=libc++ ps3netsrv.cpp -o ps3netsrv.o
In file included from ps3netsrv.cpp:8:
In file included from /usr/include/c++/4.6/future:39:
In file included from /usr/include/c++/4.6/mutex:39:
/usr/include/c++/4.6/chrono:666:7: fatal error: static_assert expression is not an integral constant expression
static_assert(system_clock::duration::min()
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ps3netsrv.cpp:8:
In file included from /usr/include/c++/4.6/future:44:
In file included from /usr/include/c++/4.6/atomic:40:
/usr/include/c++/4.6/bits/atomic_base.h:163:20: fatal error: non-inline namespace cannot be reopened as inline
inline namespace _GLIBCXX_ATOMIC_NAMESPACE { }
^
/usr/include/c++/4.6/bits/atomic_base.h:148:36: note: expanded from:
^
/usr/include/c++/4.6/bits/atomic_base.h:135:13: note: previous definition is here
namespace __atomic1
^
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple armv4t-unknown-linux-gnueabi -S -disable-free -disable-llvm-verifier -main-file-name ps3netsrv.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-abi aapcs-linux -target-cpu arm7tdmi -msoft-float -mfloat-abi soft -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -target-linker-version 2.22 -momit-leaf-frame-pointer -coverage-file /tmp/ps3netsrv-Rq8hJS.s -resource-dir /usr/bin/../lib/clang/3.0 -D _FILE_OFFSET_BITS=64 -D CONSOLE_SUPPORTS_COLOR -I ./utils/inc -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include/arm-linux-gnueabi -internal-externc-isystem /usr/include -O3 -Wall -Wfatal-errors -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 237 -fno-signed-char -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/ps3netsrv-Rq8hJS.s -x c++ ps3netsrv.cpp
./utils/inc/utils/stringoperations.h:178:111: current parser token ')'
./utils/inc/utils/stringoperations.h:30:1: parsing namespace 'utils'
./utils/inc/utils/stringoperations.h:32:1: parsing namespace 'stringops'
./utils/inc/utils/stringoperations.h:177:5: parsing function body 'lowercase'
./utils/inc/utils/stringoperations.h:177:5: in compound statement ('{}')
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/ps3netsrv-43u2MF.ii
make: *** [ps3netsrv.o] Error 254
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.