fixed error while loading shared libraries: libraylib.so.550 in makefile, adjusted Linux build notes
This commit is contained in:
parent
bc5d0035b9
commit
95d254856a
@ -18,11 +18,11 @@ workdir/
|
|||||||
# MacOS
|
# MacOS
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -LO https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-macos-universal.dmg
|
|
||||||
open cmake-3.31.6-macos-universal.dmg
|
|
||||||
cd ~
|
cd ~
|
||||||
mkdir workdir
|
mkdir workdir
|
||||||
cd workdir
|
cd workdir
|
||||||
|
curl -LO https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-macos-universal.dmg
|
||||||
|
open cmake-3.31.6-macos-universal.dmg
|
||||||
curl -LO https://downloads.bellarender.com/bella_engine_sdk-24.6.0.dmg
|
curl -LO https://downloads.bellarender.com/bella_engine_sdk-24.6.0.dmg
|
||||||
hdiutil attach bella_engine_sdk-24.6.0.dmg
|
hdiutil attach bella_engine_sdk-24.6.0.dmg
|
||||||
cp -R /Volumes/Bella\ Engine\ SDK\ 24.6.0/bella_engine_sdk .
|
cp -R /Volumes/Bella\ Engine\ SDK\ 24.6.0/bella_engine_sdk .
|
||||||
@ -37,6 +37,7 @@ git clone https://github.com/oomer/oom.git
|
|||||||
git clone https://git.indoodle.com/oomer/poomer-raylib-bella_onimage.git
|
git clone https://git.indoodle.com/oomer/poomer-raylib-bella_onimage.git
|
||||||
cd poomer-raylib-bella_onimage
|
cd poomer-raylib-bella_onimage
|
||||||
make
|
make
|
||||||
|
bin/Darwin/release/poomer-raylib-bella_onimage
|
||||||
```
|
```
|
||||||
|
|
||||||
# Linux
|
# Linux
|
||||||
@ -60,6 +61,7 @@ git clone https://github.com/oomer/oom.git
|
|||||||
git clone https://git.indoodle.com/oomer/poomer-raylib-bella_onimage.git
|
git clone https://git.indoodle.com/oomer/poomer-raylib-bella_onimage.git
|
||||||
cd poomer-raylib-bella_onimage
|
cd poomer-raylib-bella_onimage
|
||||||
make
|
make
|
||||||
|
bin/Linux/release/poomer-raylib-bella_onimage -h
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
10
makefile
10
makefile
@ -73,7 +73,9 @@ else
|
|||||||
SDK_LIB_EXT = so
|
SDK_LIB_EXT = so
|
||||||
SDK_LIB_FILE = lib$(BELLA_SDK_NAME).$(SDK_LIB_EXT)
|
SDK_LIB_FILE = lib$(BELLA_SDK_NAME).$(SDK_LIB_EXT)
|
||||||
# Dynamic raylib library
|
# Dynamic raylib library
|
||||||
RAYLIB_LIB_NAME = libraylib.$(SDK_LIB_EXT)
|
RAYLIB_LIB_NAME = libraylib.so.550
|
||||||
|
RAYLIB_LIB_SONAME = libraylib.so.550
|
||||||
|
RAYLIB_LIB_LINK = libraylib.so
|
||||||
|
|
||||||
# Compiler settings
|
# Compiler settings
|
||||||
CC = gcc
|
CC = gcc
|
||||||
@ -155,7 +157,9 @@ ifeq ($(PLATFORM), Darwin)
|
|||||||
@cp -P $(RAYLIB_LIB_PATH)/libraylib.550.dylib $(BIN_DIR)/
|
@cp -P $(RAYLIB_LIB_PATH)/libraylib.550.dylib $(BIN_DIR)/
|
||||||
@cp -P $(RAYLIB_LIB_PATH)/libraylib.dylib $(BIN_DIR)/
|
@cp -P $(RAYLIB_LIB_PATH)/libraylib.dylib $(BIN_DIR)/
|
||||||
else
|
else
|
||||||
@cp $(RAYLIB_LIB_PATH)/$(RAYLIB_LIB_NAME) $(BIN_DIR)/$(RAYLIB_LIB_NAME)
|
@# Copy raylib shared library files for Linux
|
||||||
|
@cp $(RAYLIB_LIB_PATH)/$(RAYLIB_LIB_NAME) $(BIN_DIR)/
|
||||||
|
@ln -sf $(RAYLIB_LIB_NAME) $(BIN_DIR)/$(RAYLIB_LIB_LINK)
|
||||||
endif
|
endif
|
||||||
@echo "Build complete: $(OUTPUT_FILE)"
|
@echo "Build complete: $(OUTPUT_FILE)"
|
||||||
|
|
||||||
@ -170,7 +174,7 @@ clean:
|
|||||||
ifeq ($(PLATFORM), Darwin)
|
ifeq ($(PLATFORM), Darwin)
|
||||||
rm -f $(BIN_DIR)/libraylib*.dylib
|
rm -f $(BIN_DIR)/libraylib*.dylib
|
||||||
else
|
else
|
||||||
rm -f $(BIN_DIR)/$(RAYLIB_LIB_NAME)
|
rm -f $(BIN_DIR)/libraylib*.so*
|
||||||
endif
|
endif
|
||||||
rmdir $(OBJ_DIR) 2>/dev/null || true
|
rmdir $(OBJ_DIR) 2>/dev/null || true
|
||||||
rmdir $(BIN_DIR) 2>/dev/null || true
|
rmdir $(BIN_DIR) 2>/dev/null || true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user