Skip to content

Instantly share code, notes, and snippets.

@agoldis
Last active November 11, 2015 14:31
Show Gist options
  • Save agoldis/3a579d2229a4ea707aac to your computer and use it in GitHub Desktop.
Save agoldis/3a579d2229a4ea707aac to your computer and use it in GitHub Desktop.
Install latest GNUstep on Ubuntu 14.04 for compiling ObjC
# Install pre-requesties
```
apt-get install cmake clang gobjc build-essential libblocksruntime-dev libkqueue-dev libpthread-workqueue-dev libxml2-dev libjpeg-dev libtiff-dev libpng12-dev libcups2-dev libfreetype6-dev libcairo2-dev libxt-dev libgl1-mesa-dev
```
# Install `libobjc2`
```bash
curl -O http://download.gna.org/gnustep/libobjc2-1.7.tar.bz2
tar -xvf libobjc2-1.7.tar.bz2
cd libobjc2-1.7
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_LIBDIR=/usr/lib # pay attention to errors
make
make install
```
# Install GNUstep
## Install `gnustep-makefile`
```
wget ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-make-2.6.7.tar.gz
tar -xvf gnustep-make-2.6.7.tar.gz
cd gnustep-make-2.6.7
./configure && make install
```
## Install ICU
```
wget http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz
tar -xvf icu4c-56_1-src.tgz
cd icu/source
./configure && make && make install
```
## Install `gnustep-base`
```
wget ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-1.24.8.tar.gz
tar -xvf gnustep-base-1.24.8
cd gnustep-base-1.24.8
./configure && make && make install
```
## Install `gnustep-gui`
```
# add /usr/local/lib to libs search paths
echo "/usr/local/lib" > /etc/ld.so.conf.d/my.conf
ldconfig
# install gnustep-gui
wget ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-gui-0.24.1.tar.gz
tar -xvf gnustep-gui-0.24.1.tar.gz
cd gnustep-gui-0.24.1
./configure && make && make install
```
## Install `gnustep-backend`
```
wget ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-0.24.1.tar.gz
tar -xvf gnustep-back-0.24.1.tar.gz
cd gnustep-back-0.24.1
./configure && make && make install
```
## Install `libdispatch-dev`
```
apt-get install libdispatch-dev
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment