Compare commits
No commits in common. "4420912b177fb4fe909f662b38cbb7898f6da446" and "9cd06121e2552505e13b2b56452e2d02252a1da4" have entirely different histories.
4420912b17
...
9cd06121e2
6
Makefile
6
Makefile
@ -66,10 +66,9 @@ endif
|
||||
INCLUDE_PATHS = -I$(BELLA_SDK_PATH)/src -I$(LIBEFSW_PATH)/include -I$(LIBEFSW_PATH)/src -I$(LIBZMQ_PATH)/include -I$(CPPZMQ_PATH)
|
||||
SDK_LIB_PATH = $(BELLA_SDK_PATH)/lib
|
||||
SDK_LIB_FILE = lib$(BELLA_SDK_NAME).$(SDK_LIB_EXT)
|
||||
USD_SDK_LIB_FILE = libdl_usd_ms.$(SDK_LIB_EXT)
|
||||
EFSW_LIB_PATH = $(LIBEFSW_PATH)/build
|
||||
EFSW_LIB_PATH = $(LIBEFSW_PATH)/build
|
||||
#EFSW_LIB_FILE = lib$(EFSW_LIB_NAME)
|
||||
ZMQ_LIB_PATH = $(LIBZMQ_PATH)/build/lib
|
||||
ZMQ_LIB_PATH = $(LIBZMQ_PATH)/build/lib
|
||||
# Library flags
|
||||
LIB_PATHS = -L$(SDK_LIB_PATH) -L$(EFSW_LIB_PATH) -L$(ZMQ_LIB_PATH)
|
||||
LIBRARIES = -l$(BELLA_SDK_NAME) -lm -ldl -lefsw -lzmq
|
||||
@ -101,7 +100,6 @@ $(OUTPUT_FILE): $(OBJECT_FILES)
|
||||
$(CXX) -o $@ $(OBJECT_FILES) $(LINKER_FLAGS) $(LIB_PATHS) $(LIBRARIES)
|
||||
@echo "Copying libraries to $(BIN_DIR)..."
|
||||
@cp $(SDK_LIB_PATH)/$(SDK_LIB_FILE) $(BIN_DIR)/$(SDK_LIB_FILE)
|
||||
@cp $(SDK_LIB_PATH)/$(USD_SDK_LIB_FILE) $(BIN_DIR)/$(USD_SDK_LIB_FILE)
|
||||
# @cp $(LZFSE_BUILD_DIR)/$(LZFSE_LIB_NAME) $(BIN_DIR)/$(LZFSE_LIB_NAME)
|
||||
# @cp $(PLIST_LIB_DIR)/$(PLIST_LIB_NAME) $(BIN_DIR)/$(PLIST_LIB_NAME)
|
||||
@cp $(EFSW_LIB_PATH)/$(EFSW_LIB_NAME) $(BIN_DIR)/$(EFSW_LIB_NAME)
|
||||
|
||||
133
README.md
133
README.md
@ -33,6 +33,21 @@ stat
|
||||
Server response: Saturn | Elapsed: 41s | Progress: 22.65%
|
||||
```
|
||||
|
||||
### Precompiled Binaries
|
||||
|
||||
[Windows](https://a4g4.c14.e2-1.dev/bellatui/bellatui-windows.zip)
|
||||
|
||||
[MacOS](https://a4g4.c14.e2-1.dev/bellatui/bellatui-mac.zip)
|
||||
```
|
||||
Apple Gatekeeper blocks non-notarized executables by default.
|
||||
```
|
||||
|
||||
[Ubuntu Linux](https://a4g4.c14.e2-1.dev/bellatui/bellatui-linux.tar.gz)
|
||||
```
|
||||
apt install -y libsodium-dev
|
||||
```
|
||||
|
||||
|
||||
# Build
|
||||
```
|
||||
workdir/
|
||||
@ -41,79 +56,77 @@ workdir/
|
||||
├── libzmq/
|
||||
├── cppzmq/
|
||||
├── efsw/
|
||||
├── bellatui/
|
||||
├── cmake/ (macos)
|
||||
├── pkg-config/ (macos)
|
||||
├── belatui/
|
||||
|
||||
( additional Windows package manager dependency )
|
||||
├── vcpkg/
|
||||
|
||||
( additional MacOS package manager dependency )
|
||||
└── homebrew/
|
||||
```
|
||||
|
||||
## MacOS x64 and arm64
|
||||
## MacOS
|
||||
Install Cmake to /Applications
|
||||
```
|
||||
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
|
||||
```
|
||||
Install Xcode
|
||||
|
||||
```
|
||||
# Install xcode
|
||||
xcode-select --install
|
||||
|
||||
mkdir workdir && cd workdir
|
||||
mkdir cmake libsodium pkg-config libzmq cppzmq efsw bellatui
|
||||
|
||||
# Build cmake
|
||||
cd cmake
|
||||
git clone https://github.com/Kitware/CMake.git .
|
||||
./configure
|
||||
make -j$(sysctl -n hw.ncpu)
|
||||
|
||||
# Build libsodium
|
||||
cd ../libsodium
|
||||
curl -LO https://download.libsodium.org/libsodium/releases/libsodium-1.0.20-stable.tar.gz
|
||||
tar xvf libsodium-1.0.20-stable.tar.gz --strip-components=1
|
||||
./configure
|
||||
./configure --prefix=$(pwd)/install
|
||||
make -j$(sysctl -n hw.ncpu)
|
||||
install_name_tool -id @rpath/libsodium.26.dylib src/libsodium/.libs/libsodium.26.dylib
|
||||
|
||||
# Build pkg-config
|
||||
cd ../pkg-config
|
||||
curl -LO https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
|
||||
tar xvf pkg-config-0.29.2.tar.gz --strip-components=1
|
||||
LDFLAGS="-framework CoreFoundation -framework Carbon" CFLAGS="-Wno-int-conversion" CXXFLAGS="-Wno-int-conversion" ./configure --with-internal-glib
|
||||
make -j$(sysctl -n hw.ncpu)
|
||||
|
||||
# Build libzmq
|
||||
cd ../libzmq && git clone https://github.com/zeromq/libzmq .
|
||||
../cmake/bin/cmake -B ./build -DENABLE_DRAFTS=OFF -DWITH_TLS=OFF -DENABLE_CURVE=ON -DWITH_LIBSODIUM=ON -DSODIUM_INCLUDE_DIRS=../libsodium/src/libsodium/include -DSODIUM_LIBRARIES=../libsodium/src/libsodium/.libs/libsodium.dylib -DPKG_CONFIG_EXECUTABLE=../pkg-config/pkg-config
|
||||
/Applications/CMake.app/Contents/bin/cmake --build ./build -j$(sysctl -n hw.ncpu)
|
||||
|
||||
# Build cppzmq
|
||||
cd ../cppzmq && git clone https://github.com/zeromq/cppzmq .
|
||||
../cmake/bin/cmake -B ./build -DZeroMQ_LIBRARY=../libzmq/build/lib/libzmq.dylib -DZeroMQ_INCLUDE_DIR=../libzmq/include
|
||||
../cmake/bin/cmake --build ./build -j$(sysctl -n hw.ncpu)
|
||||
|
||||
# Build efsw
|
||||
cd ../efsw && git clone https://github.com/SpartanJ/efsw.git .
|
||||
../cmake/bin/cmake -B ./build
|
||||
../cmake/bin/cmake --build ./build -j$(sysctl -n hw.ncpu)
|
||||
|
||||
# Get bella sdk
|
||||
mkdir workdir
|
||||
cd workdir
|
||||
mkdir homebrew
|
||||
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip-components 1 -C homebrew
|
||||
eval "$(homebrew/bin/brew shellenv)"
|
||||
brew update --force --quiet
|
||||
brew install libsodium
|
||||
brew install pkg-config
|
||||
cd ..
|
||||
curl -LO https://downloads.bellarender.com/bella_engine_sdk-25.3.0-macos.zip
|
||||
tar -xvf bella_engine_sdk-25.3.0-macos.zip
|
||||
|
||||
# Get oom
|
||||
git clone https://git.indoodle.com/oomer/oom.git
|
||||
|
||||
git clone https://github.com/zeromq/libzmq
|
||||
mkdir -p libzmq/build
|
||||
cd libzmq/build
|
||||
/Applications/CMake.app/Contents/bin/cmake .. -DENABLE_CURVE=ON -DWITH_LIBSODIUM=../../homebrew/Cellar/libsodium/1.0.20/include/sodium -DSODIUM_INCLUDE_DIRS=~/homebrew/Cellar/libsodium/1.0.20/include -DSODIUM_LIBRARIES=~/homebrew/Cellar/libsodium/1.0.20/lib/libsodium.a
|
||||
make -j4
|
||||
cd ../..
|
||||
git clone https://github.com/zeromq/cppzmq
|
||||
git clone https://github.com/SpartanJ/efsw.git
|
||||
mkdir -p efsw/build
|
||||
cd efsw/build
|
||||
/Applications/CMake.app/Contents/bin/cmake ..
|
||||
make -j4
|
||||
cd ../..
|
||||
git clone https://github.com/oomer/bellatui.git
|
||||
cd bellatui
|
||||
git clone https://github.com/oomer/bellatui.git .
|
||||
make all -j4
|
||||
```
|
||||
|
||||
## Ubuntu Linux x64
|
||||
## Ubuntu Linux x64 and arm64
|
||||
|
||||
### bella_engine_sdk
|
||||
```
|
||||
curl -O https://downloads.bellarender.com/bella_engine_sdk-24.6.0.tar.gz
|
||||
tar -xvf bella_engine_sdk-24.6.0.tar.gz
|
||||
```
|
||||
|
||||
#### ubuntu dependencies
|
||||
```
|
||||
apt install -y build-essential
|
||||
apt install -y libx11-dev
|
||||
apt install -y libgl1-mesa-dev
|
||||
apt install -y libtool
|
||||
apt install -y libsodium-dev
|
||||
apt install -y cmake
|
||||
apt install pkg-config
|
||||
```
|
||||
|
||||
### building libzmq cppzmq
|
||||
```
|
||||
sudo apt install -y build-essential cmake mesa-vulkan-drivers libgl1
|
||||
mkdir workdir && cd workdir
|
||||
mkdir libsodium libzmq cppzmq efsw bellatui
|
||||
|
||||
# Build libsodium
|
||||
cd libsodium
|
||||
cd libsodium && git clone https://github.com/jedisct1/libsodium.git
|
||||
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.20-stable.tar.gz
|
||||
tar xvf libsodium-1.0.20-stable.tar.gz --strip-components=1
|
||||
./configure
|
||||
@ -132,7 +145,7 @@ cmake --build ./build -j$(nproc)
|
||||
# Build efsw
|
||||
cd ../efsw && git clone https://github.com/SpartanJ/efsw.git .
|
||||
cmake -B ./build
|
||||
cmake --build ./build -j$(nproc)
|
||||
make -j$(nproc)
|
||||
|
||||
# Get bella sdk
|
||||
cd ..
|
||||
@ -143,6 +156,7 @@ tar -xvf bella_engine_sdk-25.3.0-linux.tar.gz
|
||||
cd ..
|
||||
git clone https://git.indoodle.com/oomer/oom.git
|
||||
|
||||
|
||||
# Build bellatui
|
||||
cd ../bellatui
|
||||
git clone https://github.com/oomer/bellatui.git .
|
||||
@ -151,6 +165,7 @@ make all -j$(nproc)
|
||||
|
||||
[TODO]
|
||||
Fix in Makefile
|
||||
cp ../bella_engine_sdk/lib/libdl_usd_ms.so bin/Linux/release/
|
||||
cp ../libzmq/build/lib/libzmq.so.5 bin/Linux/release/
|
||||
|
||||
# Windows
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user