Comments (13)
-std=gnu++2a
this should be -std=c++20
. Your compiler is likely too old.
https://en.cppreference.com/w/cpp/language/attributes/likely
from libhijacker.
thanks. that was it:
from libhijacker.
thanks. that was it:
Great. Do you know what version of clang you had at the time?
from libhijacker.
I kept clang 10 with ubuntu 20.04, since some of the older ps4 stuff like sm64 will not compile on later versions iirc. I just installed the ps5sdk to ubuntu 22.04, which I had as well. I may have upgraded it (clang) beyond what you can normally install with apt, but I don't really remember. I think that one is on clang 14.
from libhijacker.
crap, I made a mistake. I didn't use the wip branch. I got this error: FAILED: bin/daemon_shim.elf
: && /opt/clang/bin/clang++ --target=x86_64-freebsd-pc-elf -DPPR -DPS5 -DPS5_FW_VERSION=0x403 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112 -D__BSD_VISIBLE=1 -D__XSI_VISIBLE=500 -fno-builtin -nostdlib -Wall -fPIC -fPIE -march=znver2 -Wall -Werror -DMTRW_COMMAND -gfull -gdwarf-2 -O3 -pedantic -pedantic-errors -fuse-ld=lld -Xlinker -pie -Xlinker -zmax-page-size=16384 -Xlinker -zcommon-page-size=16384 -Xlinker -T /home/godreborn/libhijacker/daemon_shim/linker.x -Wl,--build-id=none -Wl,-z,norelro daemon_shim/CMakeFiles/daemon_shim.dir/source/cmd.c.o daemon_shim/CMakeFiles/daemon_shim.dir/source/ftp.c.o daemon_shim/CMakeFiles/daemon_shim.dir/source/main.cpp.o -o bin/daemon_shim.elf -L/home/godreborn/libhijacker/lib -Wl,-rpath,/home/godreborn/libhijacker/lib lib/libps5sdk_crt.a lib/libhijacker.a -lSceLibcInternal -lSceSystemService -lSceUserService -lSceSysmodule -lkernel_sys && :
ld.lld: error: unable to find library -lSceLibcInternal
ld.lld: error: unable to find library -lSceSystemService
ld.lld: error: unable to find library -lSceUserService
ld.lld: error: unable to find library -lSceSysmodule
ld.lld: error: unable to find library -lkernel_sys
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
[22/27] Linking CXX executable bin/daemon.elf
from libhijacker.
I have the latest ps5sdk and clang-16 now as I thought that clang was the problem. I think that's also the latest.
from libhijacker.
You need to create those libraries yourself. I made a stubber to automate it if you have the decrypted sprx libraries. I think one of the forks of this repo has some prebuilt.
from libhijacker.
ah, you mean from the ps5 itself? I don't have an exploitable system, but I like to see if I can compile things for various platforms.
from libhijacker.
Yea you need llvm 16 otherwise things break. For libs I have them already generated. https://github.com/illusion0001/libhijacker/releases/download/stubber-lib/lib1.tar.gz
from libhijacker.
where do those files go? I put them on the root of the PS5SDK, and I still get the error. do I need to run cmake from within the PS5_ROOT folder?
from libhijacker.
maybe I misunderstand, but the libs are the completed product of libhijacker? the problem now is I'd need the files from the ps5 in order to make my own, right?
from libhijacker.
nah. you just run the cmake gen command and copy the .so
files to lib folder in hijacker wip branch
cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
ninja
from libhijacker.
nah. you just run the cmake gen command and copy the
.so
files to lib folder in hijacker wip branchcmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .. ninja
thanks. I think we have success:
from libhijacker.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libhijacker.