john-tornblom/bdj-sdk

Make Still Isn't Working

NickDeBeenSAE opened this issue · 6 comments

Johnny muh dood, there is a problem with your code, because it isn't us :).

Please see below:

VM is Kali Linux (a Debian based OS).

sudo apt-get install build-essential libbsd-dev git pkg-config openjdk-8-jdk-headless openjdk-11-jdk-headless

[sudo] password for insertusernamehere:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package openjdk-8-jdk-headless

The above means that Open JDK8 and even its headless package is no longer available.

The rest of them installed fine after removing openjdk-8-jdk-headless from the command, and git comes with all Linux operating systems.

Cloning your repository is perfectly fine, that doesn't fail, so getting your code is good.

Again, Open JDK 8 and its headless package is unavailable because its been removed from the repositories of all Debian based operating systems:

ln -s /usr/lib/jvm/java-8-openjdk-amd64 bdj-sdk/host/jdk8
ln: failed to create symbolic link 'bdk-sdk/host/jdk8': No such file or directory

This happens to JDK11 too:

ln -s /usr/lib/jvm/java-11-openjdk-amd64 bdj-sdk/host/jdk11
ln: failed to create symbolic link 'bdk-sdk/host/jdk11': No such file or directory

make -C bdj-sdk/host/src/makefs_termux
make: *** bdj-sdk/host/src/makefs_termux: No such file or directory. Stop.

The second make instruction returns this:

make -C bdj-sdk/host/src/makefs_termux install DESTDIR=$PWD/bdj-sdk/host
make: *** bdj-sdk/host/src/makefs_termux: No such file or Directory. Stop.

Make target is the same:

make -C bdj-sdk/target
make: *** bdj-sdk/target: No such file or directory. Stop.

Also, you need to include double-quotations around the following commands in your README.md file in the first place for these commands to be able to work on some distros such as Mint:

ln -s "/usr/lib/jvm/java-8-openjdk-amd64 bdj-sdk/host/jdk8"
ln -s "/usr/lib/jvm/java-11-openjdk-amd64 bdj-sdk/host/jdk11"

After input as above, those instructions given to the terminal with those quotations worked.

Literally copying and pasting your listed commands does not work:

E.g.: make -C bdj-sdk/samples/helloworld

make: *** [Makefile:46: discdir/BDMV/JAR/00000.jar] Error 127

I found that no .iso's were created in any of the directories in bdj-sdk/samples.

make -C bdj-sdk/samples/ps5-app0-filedump

make: Entering directory '/mnt/c/users//desktop/bdj-sdk/samples/ps5-app0-filedump' /mnt/c/users/nick/desktop/bdj-sdk/samples/ps5-app0-filedump//../..//host/jdk11/bin/javac -Xlint:-options -cp /mnt/c/users/nick/desktop/bdj-sdk/samples/ps5-app0-filedump//../..//target/lib/enhanced-stubs.zip:/mnt/c/users/nick/desktop/bdj-sdk/samples/ps5-app0-filedump//../..//target/lib/sony-stubs.jar src/org/homebrew/LoggingTCP.java src/org/homebrew/LoggingUI.java src/org/homebrew/MyXlet.java src/org/homebrew/PrivilegedFileIO.java src/org/homebrew/PrivilegeEscalationProxy.java make: /mnt/c/users/nick/desktop/bdj-sdk/samples/ps5-app0-filedump//../..//host/jdk11/bin/javac: No such file or directory make: *** [Makefile:46: discdir/BDMV/JAR/00000.jar] Error 127 make: Leaving directory '/mnt/c/users/nick/desktop/bdj-sdk/samples/ps5-app0-filedump'

Success on all code entries this time, however, my consoles screen is just plain blank.

I also don't get it to work: RPI4 OS ... I can install everything and build up to the "Make -C Bdj -SDK/Target". Then I get this error:

admin@raspberrypi:~ $ make -C bdj-sdk/target
make: Verzeichnis „/home/admin/bdj-sdk/target“ wird betreten
/home/admin/bdj-sdk/target//..//host/jdk8/bin/javac -Xlint:-options -source 1.3 -target 1.3 /home/admin/bdj-sdk/target//src/jdk/internal/access/JavaSecurityAccess.java /home/admin/bdj-sdk/target//src/jdk/internal/access/SharedSecrets.java /home/admin/bdj-sdk/target//src/jdk/internal/misc/Unsafe.java /home/admin/bdj-sdk/target//src/jdk/internal/security/Service.java /home/admin/bdj-sdk/target//src/jdk/internal/security/Entry.java /home/admin/bdj-sdk/target//src/jdk/internal/security/keystore/Builder.java /home/admin/bdj-sdk/target//src/jdk/internal/security/ProtectionParameter.java /home/admin/bdj-sdk/target//src/jdk/internal/security/CodeSigner.java /home/admin/bdj-sdk/target//src/com/sony/gemstack/core/CoreIxcClassLoader.java /home/admin/bdj-sdk/target//src/com/sony/gemstack/core/CoreAppContext.java /home/admin/bdj-sdk/target//src/com/sony/gemstack/org/dvb/io/ixc/IxcProxy.java /home/admin/bdj-sdk/target//src/sun/awt/io/FileFileIO.java /home/admin/bdj-sdk/target//src/sun/net/www/protocol/file/FileURLConnection.java
make: /home/admin/bdj-sdk/target//..//host/jdk8/bin/javac: Datei oder Verzeichnis nicht gefunden
make: *** [Makefile:12: lib/sony-stubs.jar] Fehler 127
make: Verzeichnis „/home/admin/bdj-sdk/target“ wird verlassen

At the helloworld sample i get the error from above.
Thank you!

Ok I got it to work. On Windows! :)
But it doesn't work that way on RPi4.
Now burning the sample to BR...
Regards

I suppose paths to the JVMs are different on arm platforms, use an x86_64 platform and you should be ok.