GithubHelp home page GithubHelp logo

Comments (13)

astrelsky avatar astrelsky commented on August 10, 2024

-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.

godreborn avatar godreborn commented on August 10, 2024

thanks. that was it:

image

from libhijacker.

astrelsky avatar astrelsky commented on August 10, 2024

thanks. that was it:

image

Great. Do you know what version of clang you had at the time?

from libhijacker.

godreborn avatar godreborn commented on August 10, 2024

image

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.

godreborn avatar godreborn commented on August 10, 2024

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.

godreborn avatar godreborn commented on August 10, 2024

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.

astrelsky avatar astrelsky commented on August 10, 2024

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.

godreborn avatar godreborn commented on August 10, 2024

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.

illusion0001 avatar illusion0001 commented on August 10, 2024

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.

godreborn avatar godreborn commented on August 10, 2024

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.

godreborn avatar godreborn commented on August 10, 2024

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.

illusion0001 avatar illusion0001 commented on August 10, 2024

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.

godreborn avatar godreborn commented on August 10, 2024

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

thanks. I think we have success:
image

from libhijacker.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.