cleanup Qwt build for OS X

This commit is contained in:
William Kyngesburye 2013-04-07 11:18:33 -05:00
parent baedeb27ed
commit 68f0a87a9b
3 changed files with 37 additions and 155 deletions

59
INSTALL
View File

@ -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
@ -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:
@ -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
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
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 :
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

View File

@ -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;
@ -77,13 +77,13 @@ label{ background-color: #FFFFCC;
<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">
@ -210,7 +210,7 @@ Required build deps:
<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>
@ -2302,7 +2302,7 @@ The GPS tracking feature uses Qwt.
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>
@ -2312,71 +2312,25 @@ Double-click the tarball to unpack it. Now, cd to the qwt source folder in a
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>
@ -3234,5 +3188,5 @@ The following people have contributed to this document:
</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>

View File

@ -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
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
```
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.
The Qwt shared library is now installed in /usr/local/qwt-6.0.x (x is
the 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 :
```
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.
=== Additional dependencies: Bison ===