-
Notifications
You must be signed in to change notification settings - Fork 12
Building Runtime Libraries on Linux
mogemimi edited this page Dec 27, 2015
·
4 revisions
- Clang 3.7 and libc++
- Python 2.7+
- OpenGL 3.3
- OpenAL
For more details about installation of build requirements, please see Setting Up Development Environment on Ubuntu.
First, acquire the source code and all dependencies by cloning the git repository.
git clone https://github.com/mogemimi/pomdog.git
cd pomdog
git submodule update --init
Please see Download Build Dependencies for more information.
Second, you need to generate Makefiles using GYP wrapper script:
python tools/gyp.py build/pomdog.gyp -f make
export CC=clang
export CXX=clang++
export LINK=clang++
export CXXFLAGS="-std=c++14 -stdlib=libc++"
export LDFLAGS="-stdlib=libc++"
make -C build.makefiles
To choose build mode, use the BUILDTYPE="Debug"
or BUILDTYPE="Release"
option:
make -C build.makefiles BUILDTYPE="Debug"
make -C build.makefiles BUILDTYPE="Release"
After a complete build, you will find the "libpomdog.a" file in build.makefiles/out/Release/obj.target/build/
(also build.makefiles/out/Debug/obj.target/build/
) directory.