Re: [Gdal-dev] building gdal for OpenZaurus

Yan Seiner <[email protected]>
Newsgroups gmane.comp.handhelds.openzaurus.devel
Message-ID <[email protected]>
Koen Kooi wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>http://www.openembedded.org/filebrowser/org.openembedded.dev/packages/gdal
>  
>
Thanks!

Minor patch needed to get gdal to build on my system, attached.

I also have successfully built gpsdrive from current cvs, albeit with a 
few hacks; mostly I haven't figured out a graceful way to set 
gdal-config to the right place, and for some reason the src/mysql 
subdirectory got left out of CVS, so you have to copy that over from an 
older release.

ipks at <http://www.seiner.com/zaurus>

Ir requires a lot of newer versions, but most of those are trivial fixes 
to bb files.

--Yan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Openzaurus-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openzaurus-devel
gpsdrive_cvs.bb (text/plain, 1 KB)
inherit autotools pkgconfig

PR = "r1"
# PV = "2.10pre3+cvs-${CVSDATE}"
PV = "2.10pre3+cvs"
DEFAULT_PREFERENCE="-1"

PACKAGES += "gpsdrive-add"
DESCRIPTION = "GPS navigation/map display software"
DEPENDS = "virtual/libc libart-lgpl gtk+ pcre gpsd cairo gdal"
RDEPENDS_${PN} = "gdk-pixbuf-loader-gif gpsd"
MAINTAINER = "Koen Kooi <[email protected]>"
SECTION = "x11"
PRIORITY = "optional"
LICENSE = "GPL"

SRC_URI = "cvs://[email protected]/cvsroot;module=gpsdrive \
           file://gpsdrive.desktop"

S = "${WORKDIR}/gpsdrive"
CFLAGS += "-D_GNU_SOURCE"

FILES_${PN} = "${bindir}/gpsdrive ${bindir}/wpcvt ${bindir}/wpget ${datadir}/pixmaps ${datadir}/applications"
FILES_${PN} += "${datadir}/${PN}"

FILES_gpsdrive-add = "${libdir}"
 
EXTRA_OECONF = "--disable-garmin --with-gdal=/home/local/zaurus/tmp/work/armv5te-linux/gdal-1.3.2-r0/gdal-1.3.2/apps/gdal-config --without-mysql"

do_install_append () {
        mkdir -p  ${D}${datadir}/applications
        install -m 0644 ${WORKDIR}/gpsdrive.desktop ${D}${datadir}/applications/gpsdrive.desktop
}
nan.patch (text/x-patch, 549 B)
--- gdal-1.3.2/port/cpl_strtod.cpp        2006-04-21 07:43:52.000000000 -0700
+++ gdal-1.3.2/port/cpl_strtod.cpp        2006-08-24 09:25:34.000000000 -0700
@@ -169,13 +169,14 @@
 */

 /* includes needed by this file */
-#include <ctype.h>
-#include <errno.h>
-#include <float.h>
-#include <limits.h>
-#include <math.h>
-#include <stdlib.h>
-#include <string.h>
+
+#include <cctype>
+#include <cerrno>
+#include <cfloat>
+#include <climits>
+#include <cmath>
+#include <cstdlib> // this is most important!
+#include <cstring>

 #include "cpl_conv.h"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.