Skip to content

Commit

Permalink
cleanup Qwt build for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
kyngchaos committed Apr 7, 2013
1 parent baedeb2 commit 68f0a87
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 155 deletions.
59 changes: 13 additions & 46 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Quantum GIS (QGIS)
Building QGIS from source - step by step
Saturday April 06, 2013
Sunday April 07, 2013


Last Updated: Saturday April 06, 2013
Last Change : Saturday April 06, 2013
Last Updated: Sunday April 07, 2013
Last Change : Saturday December 08, 2012


1. Introduction
Expand Down Expand Up @@ -103,7 +103,7 @@ Required build deps:
- GEOS >= 3.0
- Sqlite3 >= 3.0.0
- GDAL/OGR >= 1.4.x
- Qwt >= 5.0 & < 6.1
- Qwt >= 5.0 & (< 6.1 with internal QwtPolar)
- expat >= 1.95

Optional dependencies:
Expand Down Expand Up @@ -1633,61 +1633,28 @@ The GPS tracking feature uses Qwt.

NOTE: PyQwt is not compatible with PyQt 4.9, so we will skip that.

Download the latest Qwt 5.x or 6.x source from:
Download the latest Qwt 6.0 source (6.1 does not work with the QwtPolar in QGIS) from:

http://sourceforge.net/projects/qwt

Double-click the tarball to unpack it. Now, cd to the qwt source folder in a
Terminal.

Type these commands to build and install 5.x.x (assumes v5.2.2, adjust commands
Type these commands to build and install 6.0.x (assumes v6.0.2, adjust commands
for other version as needed):

cat >> qwtconfig.pri <<EOF
QWT_CONFIG -= QwtFramework
EOF
qmake -spec macx-g++
make -j [#cpus]
sudo make install

sudo install_name_tool -id /usr/local/qwt-5.2.2/lib/libqwt.5.dylib \
/usr/local/qwt-5.2.2/lib/libqwt.5.dylib

The Qwt shared library is now installed in /usr/local/qwt-5.x.x (x.x is
the minor.point version). Remember this for QGIS configuration.

Qwt 6.x.x is similarly built, but defaults to being installed as a framework:

cd <Qwt 6.x.x source directory>
qmake -spec macx-g++
make -j [#cpus]
sudo make install
sudo install_name_tool -id /usr/local/qwt-6.0.2/lib/libqwt.6.dylib \
/usr/local/qwt-6.0.2/lib/libqwt.6.dylib

TODO: Remedy for :

shrub:qwt-6.1-rc3 timlinux$ sudo make install
Password:
cd src/ && make -f Makefile install
rm -f -r "/usr/local/qwt-6.1.0-rc3/lib/qwt.framework"
cp -f -R "../lib/qwt.framework" "/usr/local/qwt-6.1.0-rc3/lib/qwt.framework"
cp -f -R /Users/timlinux/dev/cpp/qwt-6.1-rc3/doc/html /usr/local/qwt-6.1.0-rc3/doc/
cp -f -R /Users/timlinux/dev/cpp/qwt-6.1-rc3/doc/man /usr/local/qwt-6.1.0-rc3/doc/
cd textengines/ && make -f Makefile install
make[1]: Nothing to be done for `install'.
cd designer/ && make -f Makefile install
rm -f libqwt_designer_plugin.dylib
linking plugins/designer/libqwt_designer_plugin.dylib
ld: library not found for -lqwt
collect2: ld returned 1 exit status
make[1]: *** [plugins/designer/libqwt_designer_plugin.dylib] Error 1
make: *** [sub-designer-install_subtargets-ordered] Error 2

sudo install_name_tool -id /usr/local/qwt-6.0.1/lib/qwt.framework/Versions/6/qwt \
/usr/local/qwt-6.0.1/lib/qwt.framework/Versions/6/qwt

This installs to the following location

/usr/local/qwt-6.x.x/lib/qwt.framework/qwt
/usr/local/qwt-6.x.x/lib/qwt.framework/Headers

(x.x is the minor.point version). Remember these for QGIS configuration.
The Qwt shared library is now installed in /usr/local/qwt-6.0.x (x is
the point version). Remember this for QGIS configuration.


5.4.10. Additional dependencies: Bison
Expand Down
76 changes: 15 additions & 61 deletions doc/INSTALL.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Quantum GIS (QGIS)</TITLE>

<!-- Included doc/style.css -->
<!-- Included style.css -->
<STYLE TYPE="text/css">
body{ background: white;
color: black;
Expand Down Expand Up @@ -77,13 +77,13 @@
<DIV CLASS="header" ID="header">
<H1>Quantum GIS (QGIS)</H1>
<H2>Building QGIS from source - step by step</H2>
<H3>Saturday April 06, 2013</H3>
<H3>Sunday April 07, 2013</H3>
</DIV>

<DIV CLASS="body" ID="body">
<P>
Last Updated: Saturday April 06, 2013
Last Change : Saturday April 06, 2013
Last Updated: Sunday April 07, 2013
Last Change : Saturday December 08, 2012
</P>
<DIV CLASS="toc">

Expand Down Expand Up @@ -210,7 +210,7 @@ <H1>2. Overview</H1>
<LI>GEOS &gt;= 3.0
<LI>Sqlite3 &gt;= 3.0.0
<LI>GDAL/OGR &gt;= 1.4.x
<LI>Qwt &gt;= 5.0 &amp; &lt; 6.1
<LI>Qwt &gt;= 5.0 &amp; (&lt; 6.1 with internal QwtPolar)
<LI>expat &gt;= 1.95
</UL>

Expand Down Expand Up @@ -2302,7 +2302,7 @@ <H3>5.4.9. Additional dependencies: Qwt</H3>
NOTE: PyQwt is not compatible with PyQt 4.9, so we will skip that.
</P>
<P>
Download the latest Qwt 5.x or 6.x source from:
Download the latest Qwt 6.0 source (6.1 does not work with the QwtPolar in QGIS) from:
</P>
<P>
<A HREF="http://sourceforge.net/projects/qwt">http://sourceforge.net/projects/qwt</A>
Expand All @@ -2312,71 +2312,25 @@ <H3>5.4.9. Additional dependencies: Qwt</H3>
Terminal.
</P>
<P>
Type these commands to build and install 5.x.x (assumes v5.2.2, adjust commands
Type these commands to build and install 6.0.x (assumes v6.0.2, adjust commands
for other version as needed):
</P>

<div class="code"><PRE>
cat &gt;&gt; qwtconfig.pri &lt;&lt;EOF
QWT_CONFIG -= QwtFramework
EOF
qmake -spec macx-g++
make -j [#cpus]
sudo make install

sudo install_name_tool -id /usr/local/qwt-5.2.2/lib/libqwt.5.dylib \
/usr/local/qwt-5.2.2/lib/libqwt.5.dylib
sudo install_name_tool -id /usr/local/qwt-6.0.2/lib/libqwt.6.dylib \
/usr/local/qwt-6.0.2/lib/libqwt.6.dylib
</PRE></div>

<P>
The Qwt shared library is now installed in /usr/local/qwt-5.x.x (x.x is
the minor.point version). Remember this for QGIS configuration.
</P>
<P>
Qwt 6.x.x is similarly built, but defaults to being installed as a framework:
</P>

<div class="code"><PRE>
cd &lt;Qwt 6.x.x source directory&gt;
qmake -spec macx-g++
make -j [#cpus]
sudo make install
</PRE></div>

<P>
<B>TODO:</B> Remedy for :
</P>

<div class="code"><PRE>
shrub:qwt-6.1-rc3 timlinux$ sudo make install
Password:
cd src/ &amp;&amp; make -f Makefile install
rm -f -r "/usr/local/qwt-6.1.0-rc3/lib/qwt.framework"
cp -f -R "../lib/qwt.framework" "/usr/local/qwt-6.1.0-rc3/lib/qwt.framework"
cp -f -R /Users/timlinux/dev/cpp/qwt-6.1-rc3/doc/html /usr/local/qwt-6.1.0-rc3/doc/
cp -f -R /Users/timlinux/dev/cpp/qwt-6.1-rc3/doc/man /usr/local/qwt-6.1.0-rc3/doc/
cd textengines/ &amp;&amp; make -f Makefile install
make[1]: Nothing to be done for `install'.
cd designer/ &amp;&amp; make -f Makefile install
rm -f libqwt_designer_plugin.dylib
linking plugins/designer/libqwt_designer_plugin.dylib
ld: library not found for -lqwt
collect2: ld returned 1 exit status
make[1]: *** [plugins/designer/libqwt_designer_plugin.dylib] Error 1
make: *** [sub-designer-install_subtargets-ordered] Error 2
</PRE></div>

<div class="code"><PRE>
sudo install_name_tool -id /usr/local/qwt-6.0.1/lib/qwt.framework/Versions/6/qwt \
/usr/local/qwt-6.0.1/lib/qwt.framework/Versions/6/qwt
</PRE></div>

<P>
This installs to the following location
</P>
<P>
/usr/local/qwt-6.x.x/lib/qwt.framework/qwt
/usr/local/qwt-6.x.x/lib/qwt.framework/Headers
</P>
<P>
(x.x is the minor.point version). Remember these for QGIS configuration.
The Qwt shared library is now installed in /usr/local/qwt-6.0.x (x is
the point version). Remember this for QGIS configuration.
</P>

<H3>5.4.10. Additional dependencies: Bison</H3>
Expand Down Expand Up @@ -3234,5 +3188,5 @@ <H1>9. Authors and Acknowledgments</H1>

</DIV>
<!-- html code generated by txt2tags 2.6 (http://txt2tags.org) -->
<!-- cmdline: txt2tags -o doc/INSTALL.html -t html doc/INSTALL.t2t -->
<!-- cmdline: txt2tags -t html -o INSTALL.html INSTALL.t2t -->
</BODY></HTML>
57 changes: 9 additions & 48 deletions doc/osx.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -504,70 +504,31 @@ The GPS tracking feature uses Qwt.

NOTE: PyQwt is not compatible with PyQt 4.9, so we will skip that.

Download the latest Qwt 5.x or 6.x source from:
Download the latest Qwt 6.0 source (6.1 does not work with the QwtPolar in QGIS) from:

http://sourceforge.net/projects/qwt

Double-click the tarball to unpack it. Now, cd to the qwt source folder in a
Terminal.

Type these commands to build and install 5.x.x (assumes v5.2.2, adjust commands
Type these commands to build and install 6.0.x (assumes v6.0.2, adjust commands
for other version as needed):

```
cat >> qwtconfig.pri <<EOF
QWT_CONFIG -= QwtFramework
EOF
qmake -spec macx-g++
make -j [#cpus]
sudo make install

sudo install_name_tool -id /usr/local/qwt-5.2.2/lib/libqwt.5.dylib \
/usr/local/qwt-5.2.2/lib/libqwt.5.dylib
```

The Qwt shared library is now installed in /usr/local/qwt-5.x.x (x.x is
the minor.point version). Remember this for QGIS configuration.

Qwt 6.x.x is similarly built, but defaults to being installed as a framework:

```
cd <Qwt 6.x.x source directory>
qmake -spec macx-g++
make -j [#cpus]
sudo make install
```

**TODO:** Remedy for :

sudo install_name_tool -id /usr/local/qwt-6.0.2/lib/libqwt.6.dylib \
/usr/local/qwt-6.0.2/lib/libqwt.6.dylib
```
shrub:qwt-6.1-rc3 timlinux$ sudo make install
Password:
cd src/ && make -f Makefile install
rm -f -r "/usr/local/qwt-6.1.0-rc3/lib/qwt.framework"
cp -f -R "../lib/qwt.framework" "/usr/local/qwt-6.1.0-rc3/lib/qwt.framework"
cp -f -R /Users/timlinux/dev/cpp/qwt-6.1-rc3/doc/html /usr/local/qwt-6.1.0-rc3/doc/
cp -f -R /Users/timlinux/dev/cpp/qwt-6.1-rc3/doc/man /usr/local/qwt-6.1.0-rc3/doc/
cd textengines/ && make -f Makefile install
make[1]: Nothing to be done for `install'.
cd designer/ && make -f Makefile install
rm -f libqwt_designer_plugin.dylib
linking plugins/designer/libqwt_designer_plugin.dylib
ld: library not found for -lqwt
collect2: ld returned 1 exit status
make[1]: *** [plugins/designer/libqwt_designer_plugin.dylib] Error 1
make: *** [sub-designer-install_subtargets-ordered] Error 2
```


```
sudo install_name_tool -id /usr/local/qwt-6.0.1/lib/qwt.framework/Versions/6/qwt \
/usr/local/qwt-6.0.1/lib/qwt.framework/Versions/6/qwt
```

This installs to the following location

/usr/local/qwt-6.x.x/lib/qwt.framework/qwt
/usr/local/qwt-6.x.x/lib/qwt.framework/Headers
The Qwt shared library is now installed in /usr/local/qwt-6.0.x (x is
the point version). Remember this for QGIS configuration.

(x.x is the minor.point version). Remember these for QGIS configuration.

=== Additional dependencies: Bison ===

Expand Down

0 comments on commit 68f0a87

Please sign in to comment.