update build instructions

This commit is contained in:
richard 2021-10-26 16:38:26 +01:00
parent fb93d5f330
commit f9584fdab4

View file

@ -56,9 +56,7 @@ Build and install Raylib from the raylib-c directory.
copy raylib\Release\raylib.lib ..\.. copy raylib\Release\raylib.lib ..\..
cd ..\.. cd ..\..
To update the dynamic libs, download the official release,
e.g. https://github.com/raysan5/raylib/releases/download/3.7.0/raylib-3.7.0_win64_msvc16.zip
and extract ``raylib.dll`` into ``dynamic/raylib``.
To build a binary wheel distribution: To build a binary wheel distribution:
@ -69,12 +67,10 @@ To build a binary wheel distribution:
pip3 install wheel pip3 install wheel
python setup.py bdist_wheel python setup.py bdist_wheel
Alternatively, if you dont want the static binaries and just want to .. TODO::
use DLLs with raylib.dynamic: There's a hardcoded path (to the raylib header files) in `raylib/build.py` you will probably need to edit.
Would be useful if some Windows user could figure out how to auto detect this.
::
python3 setup_dynamic.py bdist_wheel
Then install it: Then install it:
@ -88,8 +84,6 @@ here.)
Linux manual build Linux manual build
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
These instructions have been tested on Ubuntu 20.10 and 16.04.
Clone this repo including submodules so you get correct version of Clone this repo including submodules so you get correct version of
Raylib. Raylib.
@ -99,6 +93,10 @@ Raylib.
Build and install Raylib from the raylib-c directory. Build and install Raylib from the raylib-c directory.
.. note::
You can instead use a different version of Raylib you installed from elsewhere, and it should still
work!
:: ::
sudo apt install cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev sudo apt install cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
@ -131,7 +129,7 @@ Build
rm -rf build raylib/_raylib_cffi.* rm -rf build raylib/_raylib_cffi.*
python3 raylib/build.py python3 raylib/build.py
.. note:: (Optional) To update the Linux dynamic libs (names will be different on other platfroms): .. note:: (Optional) To update the Linux dynamic libs (names will be different on other platforms):
:: ::
@ -185,10 +183,13 @@ Build and install Raylib from the raylib-c directory.
:: ::
cd raylib-python-cffi/raylib-c/src cd raylib-python-cffi/raylib-c/
make mkdir build
sudo cp libraylib.a /usr/local/lib/libraylib.a cd build
cd ../.. cmake -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install
cd ../..
Build and install module. Build and install module.