Cleanup pass and Linux build fixes

This commit is contained in:
Harvey Fong 2026-01-03 12:59:54 +00:00
parent 3a618bb112
commit d7805543c1
3 changed files with 18 additions and 11 deletions

View File

@ -43,7 +43,7 @@ else
# Linux configuration
SDK_LIB_EXT = so
LZFSE_LIB_NAME = liblzfse.$(SDK_LIB_EXT)
PLIST_LIB_NAME = libplist.$(SDK_LIB_EXT)
PLIST_LIB_NAME = libplist-2.0.$(SDK_LIB_EXT)
USD_LIB_NAME = libdl_usd_ms.$(SDK_LIB_EXT)
# Compiler settings
@ -57,7 +57,7 @@ else
LINKER_FLAGS = $(ARCH_FLAGS) -fvisibility=hidden -O3 -Wl,-rpath,'$$ORIGIN' -Wl,-rpath,'$$ORIGIN/lib'
# Platform-specific libraries
PLIST_LIB = -lplist
PLIST_LIB = -lplist-2.0
endif
# Common include and library paths
@ -100,7 +100,9 @@ $(OUTPUT_FILE): $(OBJECT_FILES)
@cp $(SDK_LIB_PATH)/$(SDK_LIB_FILE) $(BIN_DIR)/$(SDK_LIB_FILE)
@cp $(SDK_LIB_PATH)/$(USD_LIB_NAME) $(BIN_DIR)/$(USD_LIB_NAME)
@cp $(LZFSE_BUILD_DIR)/$(LZFSE_LIB_NAME) $(BIN_DIR)/$(LZFSE_LIB_NAME)
# The readlink command is essential here because shared libraries use symlinks for versioning, and we need to copy both the symlink and the actual library file it points to.
@cp $(PLIST_LIB_DIR)/$(PLIST_LIB_NAME) $(BIN_DIR)/
@PLIST_REAL_LIB=$$(readlink $(PLIST_LIB_DIR)/$(PLIST_LIB_NAME)) && cp $(PLIST_LIB_DIR)/$$PLIST_REAL_LIB $(BIN_DIR)/ && ln -sf $$PLIST_REAL_LIB $(BIN_DIR)/libplist-2.0.so.4
@echo "Build complete: $(OUTPUT_FILE)"
# Add default target

View File

@ -90,11 +90,16 @@ install_name_tool -change /usr/local/lib/libplist-2.0.4.dylib @rpath/libplist-2.
## Linux
```
sudo apt update && sudo apt install autoconf automake libtool pkg-config -y
apt -y install mesa-vulkan-drivers
apt -y install libgl1
#apt install libgl1-mesa-dev libglu1-mesa-dev -y
mkdir workdir
curl -LO https://downloads.bellarender.com/bella_engine_sdk-25.3.0-linux.tar.gz
cd workdir
wget https://downloads.bellarender.com/bella_engine_sdk-25.3.0-linux.tar.gz
tar -xvf bella_engine_sdk-25.3.0-linux.tar.gz
git clone https://github.com/lzfse/lzfse
mkdir lzfse/build
mkdir -p lzfse/build
cd lzfse/build
cmake ..
make -j4
@ -109,19 +114,19 @@ git clone https://git.indoodle.com/oomer/oom.git
git clone https://git.indoodle.com/oomer/vmax2bella.git
cd vmax2bella
make all -j4
bin/Linux/release/vmax2bella --help
```
## Windows (win10)
- [optional] Install https://git-scm.com
- Download Visual Studio Community Edition 2022
## Windows
- Download Visual Studio Community Edition
- Run VisualStudioSetup.exe
- Workload = [x] Desktop development with C++
- Individual components = [x] Git For Windows
#### x64 Developer console
#### x64 Native Tools for VS
```
mkdir workdir
cd workdir
curl -LO https://downloads.bellarender.com/bella_engine_sdk-25.3.0-win32.zip
tar -xf bella_engine_sdk-25.3.0-win32.zip
git clone https://github.com/lzfse/lzfse

View File

@ -237,7 +237,7 @@ int DL_main(dl::Args& args) {
args.add("li", "licenseinfo", "", "prints license info");
if (args.helpRequested()) {
std::cout << args.help("vmax2bella © 2025 Harvey Fong","vmax2bella", "1.0") << std::endl;
std::cout << args.help("vmax2bella © 2026 Harvey Fong","vmax2bella", "1.1") << std::endl;
return 0;
}