Skip to content

Commit

Permalink
try x86
Browse files Browse the repository at this point in the history
  • Loading branch information
electronstudio committed Dec 2, 2024
1 parent 16bfb31 commit f958893
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ jobs:
- name: Build raylib
run: |
sudo apt update
sudo apt install gcc-multilib
sudo dpkg --add-architecture i386
sudo apt install gcc-multilib g++-multilib
sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libwayland-dev libxkbcommon-dev
sudo apt-get install libx11-dev:i386
cd raylib
mkdir build
cd build
Expand Down
2 changes: 1 addition & 1 deletion build-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mv src/com/raylib/RaylibConfig.class gen/com/raylib
cp *.h gen/com/raylib
cd gen
echo "STEP 2 - compile Raylib.java"
java -jar ../javacpp.jar -nodelete com/raylib/Raylib.java -Dplatform.compiler.foo='-DPHYSAC_IMPLEMENTATION -DRAYGUI_IMPLEMENTATION -std=c++11'
java -jar ../javacpp.jar -nodelete com/raylib/Raylib.java -Dplatform.compiler.foo='-DPHYSAC_IMPLEMENTATION -DRAYGUI_IMPLEMENTATION -O3 -std=c++11' -Dplatform.compiler.foo2='-march=i686 -m32'
# /Oi /O2 /MD /LD /link /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /NODEFAULTLIB:MSVCRTD'
if [ $? -ne '0' ]; then
echo "Fix this before trying again"
Expand Down
3 changes: 2 additions & 1 deletion src/com/raylib/RaylibConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
@Platform(
value = {"linux-x86"},
linkpath = {"/usr/lib/i386-linux-gnu"},
link = {"X11", "raylib"}
link = {"X11", "raylib"},
compiler = {"!default","foo","foo2"}
),
@Platform(
value = {"linux-arm64"},
Expand Down

0 comments on commit f958893

Please sign in to comment.