deleted unused raylib_objc_fix.h include, fix for renamed oom_bella_misc.h, updated build notes for mac,linux,windows
This commit is contained in:
parent
80dce65014
commit
1a874f4cb2
52
README.md
52
README.md
@ -23,18 +23,18 @@ Download SDK for your OS and drag bella_engine_sdk into your workdir. On Windows
|
|||||||
- [bella_engine_sdk Win](https://downloads.bellarender.com/bella_engine_sdk-24.6.0.zip)
|
- [bella_engine_sdk Win](https://downloads.bellarender.com/bella_engine_sdk-24.6.0.zip)
|
||||||
|
|
||||||
|
|
||||||
# MacOS/Linux
|
# MacOS
|
||||||
|
|
||||||
Linux dependencies
|
|
||||||
```
|
|
||||||
apt install libx11-dev
|
|
||||||
apt install xorg-dev
|
|
||||||
```
|
|
||||||
|
|
||||||
cmake -DBUILD_SHARED_LIBS=OFF -DUSE_EXTERNAL_GLFW=OFF ..
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
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.dmgcurl -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 ~
|
||||||
|
mkdir workdir
|
||||||
cd workdir
|
cd workdir
|
||||||
|
curl -LO https://downloads.bellarender.com/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 .
|
||||||
git clone https://github.com/raysan5/raylib.git
|
git clone https://github.com/raysan5/raylib.git
|
||||||
mkdir -p raylib/build
|
mkdir -p raylib/build
|
||||||
cd raylib/build
|
cd raylib/build
|
||||||
@ -42,17 +42,47 @@ cd raylib/build
|
|||||||
make -j4
|
make -j4
|
||||||
cd ../..
|
cd ../..
|
||||||
git clone https://github.com/raysan5/raygui.git
|
git clone https://github.com/raysan5/raygui.git
|
||||||
|
git clone https://github.com/oomer/oom.git
|
||||||
git clone https://github.com/oomer/poomer-raylib-bella_onimage.git
|
git clone https://github.com/oomer/poomer-raylib-bella_onimage.git
|
||||||
cd poomer-raylib-bella_onimage
|
cd poomer-raylib-bella_onimage
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Linux
|
||||||
|
```
|
||||||
|
sudo apt install -y build-essential curl
|
||||||
|
sudo apt install libx11-dev
|
||||||
|
sudo apt install xorg-dev
|
||||||
|
cd ~
|
||||||
|
mkdir workdir
|
||||||
|
cd workdir
|
||||||
|
curl -LO https://downloads.bellarender.com/bella_engine_sdk-24.6.0.tar.gz
|
||||||
|
tar -xvf bella_engine_sdk-24.6.0.tar.gz
|
||||||
|
git clone https://github.com/raysan5/raylib.git
|
||||||
|
mkdir -p raylib/build
|
||||||
|
cd raylib/build
|
||||||
|
cmake -DBUILD_SHARED_LIBS=ON -DUSE_EXTERNAL_GLFW=OFF ..
|
||||||
|
make -j4
|
||||||
|
cd ../..
|
||||||
|
git clone https://github.com/raysan5/raygui.git
|
||||||
|
git clone https://github.com/oomer/oom.git
|
||||||
|
git clone https://github.com/oomer/poomer-raylib-bella_onimage.git
|
||||||
|
cd poomer-raylib-bella_onimage
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
# Windows
|
# Windows
|
||||||
- Install Visual Studio Community 2022
|
- Install Visual Studio Community 2022
|
||||||
- Add Desktop development with C++ workload
|
- Add Desktop development with C++ workload
|
||||||
- Launch x64 Native tools Command Prompt for VS2022
|
- Launch x64 Native tools Command Prompt for VS2022
|
||||||
```
|
```
|
||||||
cd workdir
|
cd %USERPROFILE%
|
||||||
|
mkdir workdir
|
||||||
|
mkdir workdir\bella_engine_sdk
|
||||||
|
curl -LO https://downloads.bellarender.com/bella_engine_sdk-24.6.0.zip
|
||||||
|
tar -xf bella_engine_sdk-24.6.0.zip
|
||||||
|
cd ..
|
||||||
git clone https://github.com/raysan5/raylib.git
|
git clone https://github.com/raysan5/raylib.git
|
||||||
cd raylib
|
cd raylib
|
||||||
mkdir build
|
mkdir build
|
||||||
@ -61,6 +91,8 @@ cmake ..
|
|||||||
msbuild raylib.sln /p:Configuration=Release
|
msbuild raylib.sln /p:Configuration=Release
|
||||||
cd ../..
|
cd ../..
|
||||||
git clone https://github.com/raysan5/raygui.git
|
git clone https://github.com/raysan5/raygui.git
|
||||||
|
git clone https://github.com/oomer/oom.git
|
||||||
git clone https://github.com/oomer/poomer-raylib-bella_onimage.git
|
git clone https://github.com/oomer/poomer-raylib-bella_onimage.git
|
||||||
|
cd poomer-raylib-bella_onimage
|
||||||
msbuild poomer-raylib-bella_onimage.vcxproj /p:Configuration=release /p:Platform=x64 /p:PlatformToolset=v143
|
msbuild poomer-raylib-bella_onimage.vcxproj /p:Configuration=release /p:Platform=x64 /p:PlatformToolset=v143
|
||||||
```
|
```
|
||||||
|
|||||||
@ -24,8 +24,6 @@ static bool _init_env = (putenv((char*)objc_disable_warning), true);
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
// Include our fix header first
|
|
||||||
#include "raylib_objc_fix.h"
|
|
||||||
// Include raylib directly but don't use its namespace
|
// Include raylib directly but don't use its namespace
|
||||||
#include <raylib.h>
|
#include <raylib.h>
|
||||||
#include <mutex> // For thread synchronization
|
#include <mutex> // For thread synchronization
|
||||||
@ -723,4 +721,4 @@ int DL_main(dl::Args& args)
|
|||||||
std::cerr << "FATAL ERROR: Unknown exception in main" << std::endl;
|
std::cerr << "FATAL ERROR: Unknown exception in main" << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,6 +48,7 @@
|
|||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
<AdditionalIncludeDirectories>..\bella_engine_sdk\src;..\raylib\src;..\raygui\src</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\bella_engine_sdk\src;..\raylib\src;..\raygui\src</AdditionalIncludeDirectories>
|
||||||
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
@ -65,6 +66,7 @@
|
|||||||
<SDLCheck>false</SDLCheck>
|
<SDLCheck>false</SDLCheck>
|
||||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;DL_USE_SHARED;NOMINMAX;WIN32_LEAN_AND_MEAN;NOGDI;NOUSER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;_CONSOLE;DL_USE_SHARED;NOMINMAX;WIN32_LEAN_AND_MEAN;NOGDI;NOUSER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<AdditionalIncludeDirectories>..\bella_engine_sdk\src;..\raylib\src;..\raygui\src</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\bella_engine_sdk\src;..\raylib\src;..\raygui\src</AdditionalIncludeDirectories>
|
||||||
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
@ -82,6 +84,7 @@
|
|||||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
<PreprocessorDefinitions>_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<InterproceduralOptimization>NoIPO</InterproceduralOptimization>
|
<InterproceduralOptimization>NoIPO</InterproceduralOptimization>
|
||||||
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<InterproceduralOptimization>false</InterproceduralOptimization>
|
<InterproceduralOptimization>false</InterproceduralOptimization>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user