File: INSTALL

package info (click to toggle)
boats 202008-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,572 kB
  • sloc: cpp: 11,129; xml: 10; makefile: 9
file content (41 lines) | stat: -rw-r--r-- 1,302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#Compile for MacOS

# download qt
QTVERSION=5.15
wget https://download.qt.io/archive/qt/$VERSION/$VERSION.0/single/qt-everywhere-src-$QTVERSION.0.tar.xz
tar Jxf qt-everywhere-opensource-src-$QTVERSION.0.tar.xz
cd qt-everywhere-opensource-src-$QTVERSION.0/ \

# static compile (here for mac)
# if removing --universal and -sdk ... make install will install in ./local
./configure -prefix local -static --universal -sdk \
/Developer/SDKs/MacOSX10.4u.sdk -nomake examples \
-nomake demos -nomake docs -no-qt3support \
-no-xmlpatterns -no-phonon -no-phonon-backend -no-svg -no-webkit \
-no-scripttools -no-nis -no-cups -no-iconv -no-dbus

make
make install

# have qt binaries in your path
export PATH=qt-everywhere-opensource-src-$QTVERSION.0/universal/bin:$PATH

#Gif:
GIFVERSION=5.2.1
#download from https://sourceforge.net/projects/giflib/files/giflib-$GIFVERSION.tar.gz/download
tar xvfz giflib-$GIFVERSION.tar.gz
cd giflib-$GIFVERSION
GIFINSTALL=$PWD/local
./configure --prefix=$GIFINSTALL
#(defining the install path which you will need later on)
make
make install

#Boats:
git clone git://git.code.sf.net/p/boats/code boats
cd boats
git checkout -t -b mac origin/mac
# will checkout the mac branch

qmake boats.pro CONFIG+=gif_export INCLUDEPATH+="$GIFINSTALL/include" LIBS+="$GIFINSTALL/lib"
make