Skip to content

Add some details on current build steps for Linux. #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ GCD is a concurrent programming framework first shipped with Mac OS X Snow
Leopard. This package is an open source bundling of libdispatch, the core
user space library implementing GCD. At the time of writing, support for
the BSD kqueue API, and specifically extensions introduced in Mac OS X Snow
Leopard and FreeBSD 9-CURRENT, are required to use libdispatch. Other
systems are currently unsupported.
Leopard and FreeBSD 9-CURRENT, are required to use libdispatch. Support
for Linux is a work in progress (see Linux notes below). Other systems are
currently unsupported.

Configuring and installing libdispatch

Expand Down Expand Up @@ -99,3 +100,22 @@ clang and blocks support:
sh autogen.sh
./configure CC=clang --with-blocks-runtime=/usr/local/lib
make check

Instructions for building on Linux. Initial focus is on ubuntu 15.04.
Prepare your system
1. Install compiler, autotools
sudo apt-get install clang
sudo apt-get install autoconf libtool pkg-config
2. Install dtrace (to generate provider.h)
sudo apt-get install systemtap-sdt-dev
3. Install libdispatch pre-reqs
sudo apt-get install libblocksruntime-dev libkqueue-dev libpthread-workqueue-dev

Build:
sh autogen.sh
./configure
cd src && dtrace -h -s provider.d
make

Note: the build currently fails building tests, but libdispatch.so should
build successfully.