-
Notifications
You must be signed in to change notification settings - Fork 2
Build for macOS
Daijiro Fukuda edited this page Dec 15, 2022
·
5 revisions
Install cmake
and freetype
.
$ brew install cmake
$ brew install freetype
- Build the forked GLFW in which we are developing IME support: https://github.com/clear-code/glfw/tree/3.4-2022-09-21+im-support-all
$ git clone --branch=3.4-2022-09-21+im-support-all https://github.com/clear-code/glfw.git
$ cd glfw
$ cmake -B build -DCMAKE_INSTALL_PREFIX=bin
$ make -C build install
- Build the forked raylib in which we are developing IME support: https://github.com/clear-code/raylib/tree/4.2-2022-12-14+better-ime-support-all
- Set
USE_EXTERNAL_GLFW
ON
- Specify the path of GLFW built in step-1 to
CMAKE_PREFIX_PATH
- Ex:
-DCMAKE_PREFIX_PATH=/test/glfw/bin
- Ex:
- Set
$ git clone --branch=4.2-2022-12-14+better-ime-support-all https://github.com/clear-code/raylib.git
$ cd raylib
$ cmake -B build \
-DCMAKE_INSTALL_PREFIX=bin \
-DUSE_EXTERNAL_GLFW=ON \
-DCMAKE_PREFIX_PATH="{path of GLFW built in step-1}"
$ make -C build install
- Build and run this app
- Set
USE_EXTERNAL_GLFW
ON
- Set
USE_SOFT_FULLSCREEN
ON
- Specify both of the path of GLFW built in step-1 and raylib built in step-2 to
CMAKE_PREFIX_PATH
- Ex:
-DCMAKE_PREFIX_PATH="/test/glfw/bin;/test/raylib/bin;"
- Ex:
- Set
$ cmake -B build \
-DCMAKE_INSTALL_PREFIX=bin \
-DUSE_EXTERNAL_GLFW=ON \
-DUSE_SOFT_FULLSCREEN=ON \
-DCMAKE_PREFIX_PATH="{path of GLFW built in step-1};{path of raylib built in step-2};"
$ make -C build install
$ open bin/RaylibIMEInputSampleApp.app
We are not currently developing in this way.
- Build the forked raylib in which we are developing IME support: https://github.com/clear-code/raylib/tree/better-ime-support-for-internal-glfw
$ git clone --branch=better-ime-support-for-internal-glfw https://github.com/clear-code/raylib.git
$ cd raylib
$ cmake -B build -DCMAKE_INSTALL_PREFIX=bin
$ make -C build install
- Build and run this app
- Specify the path of raylib built in step-1 to
CMAKE_PREFIX_PATH
- Ex:
-DCMAKE_PREFIX_PATH=/test/raylib/bin
- Ex:
- Specify the path of raylib built in step-1 to
$ cmake -B build -DCMAKE_INSTALL_PREFIX=bin -DCMAKE_PREFIX_PATH={...}/raylib/bin
$ make -C build install
$ cd bin
$ ./RaylibIMEInputSampleApp