Skip to content

Instantly share code, notes, and snippets.

View dakcarto's full-sized avatar

Larry Shaffer dakcarto

  • Black Hills, South Dakota
View GitHub Profile
# cmake_minimum_required(VERSION 2.8.11)
set(CMAKE_MODULE_PATH
"${QGIS_SRC}/cmake"
${CMAKE_MODULE_PATH}
)
set(CMAKE_FIND_LIBRARY_PREFIXES lib)
set(CMAKE_FIND_LIBRARY_SUFFIXES .dylib .so .a)
diff --git a/frmts/jpeg2000/jpeg2000_vsil_io.cpp b/frmts/jpeg2000/jpeg2000_vsil_io.cpp
index 74f1e64..789e9ef 100644
--- a/frmts/jpeg2000/jpeg2000_vsil_io.cpp
+++ b/frmts/jpeg2000/jpeg2000_vsil_io.cpp
@@ -194,7 +194,7 @@ static void JPEG2000_VSIL_jas_stream_initbuf(jas_stream_t *stream, int bufmode,
if (!buf) {
/* The caller has not specified a buffer to employ, so allocate
one. */
- if ((stream->bufbase_ = (unsigned char*)jas_malloc(JAS_STREAM_BUFSIZE +
+ if ((stream->bufbase_ = (jas_uchar*)jas_malloc(JAS_STREAM_BUFSIZE +
From d527c8571c4a7e9ed2a671126faa0284ff436019 Mon Sep 17 00:00:00 2001
From: Matteo Ghetta <matteo.ghetta@gmail.com>
Date: Mon, 10 Oct 2016 10:48:27 +0200
Subject: [PATCH] Missing import fixed for R algorithm
---
python/plugins/processing/algs/r/RUtils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/plugins/processing/algs/r/RUtils.py b/python/plugins/processing/algs/r/RUtils.py
@dakcarto
dakcarto / code-sign-exe.bat
Last active November 1, 2016 17:23
Win Batch script for SHA256 signing an exe using a DigiCert cert
@echo off
:: Code-sign .exe file using signtool and installed DigiCert code-signing cert/key and CA
:: Larry Shaffer lshaffer at boundlessgeo dot com, Oct 2016
::
:: See usage at bottom of script
::
:: Requirements:
:: Need Win SDK 7.0 or higher
:: Need internet connection
#TODO: g2clib and grib (said to be modified)
#TODO: Python 3 modules should be possible since 1.7
#TODO: Create script to make clean tarball
#TODO: msg needs to have PublicDecompWT.zip from EUMETSAT, which is not free;
# Building without msg therefore
#TODO: e00compr bundled?
#TODO: There are tests for bindings -- at least for Perl
#TODO: Java has a directory with test data and a build target called test
# It uses %{JAVA_RUN}; make test seems to work in the build directory
#TODO: e00compr source is the same in the package and bundled in GDAL
Summary: Geospatial Data Abstraction Library
Name: gdal
Version: 1.11.2
Release: 3%{?dist}
License: MIT/X
Group: Applications/Engineering
URL: http://www.gdal.org/
Source: http://download.osgeo.org/gdal/gdal-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-DCMAKE_PREFIX_PATH="/usr/local/opt/libxml2;/usr/local/opt/expat;/usr/local/opt/gettext;/usr/local/opt/sqlite;/usr/local/opt/gdal-20;/usr/local" \
-DCMAKE_FRAMEWORK_PATH="/usr/local/opt/qca/lib;/usr/local/opt/qwt/lib;/usr/local/opt/qwtpolar/lib" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_FIND_FRAMEWORK=LAST \
-DCMAKE_CXX_FLAGS="-I/usr/local/opt/gettext/include" \
-DCMAKE_EXE_LINKER_FLAGS="-F/usr/local/Frameworks" \
-DCMAKE_MODULE_LINKER_FLAGS="-F/usr/local/Frameworks" \
-DCMAKE_SHARED_LINKER_FLAGS="-F/usr/local/Frameworks" \
-DCXX_EXTRA_FLAGS="-Wno-unused-private-field -Wno-deprecated-register" \
-DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison \
============================
Testing testhdf5
Finished testing testhdf5
============================
testhdf5 Test Log
============================
For help use: /mnt/ebs/hudson/jobs/hdf5/workspace/installer/linux/rpm/rpmbuild/BUILD/hdf5-1.8.12/build/test/.libs/lt-testhdf5 -help
Linked with hdf5 version 1.8 release 12
Testing -- Configure definitions (config)
diff --git a/Modules/Core/Common/include/otbConfigurationManager.h b/Modules/Core/Common/include/otbConfigurationManager.h
index d89de91..6d8e7bc 100644
--- a/Modules/Core/Common/include/otbConfigurationManager.h
+++ b/Modules/Core/Common/include/otbConfigurationManager.h
@@ -18,7 +18,13 @@
#ifndef _otbConfigurationManager_h
#define _otbConfigurationManager_h
+#include "itkVersion.h"
+
From 22678d97dcf9c9e0f56ac9ffdf89785395521b27 Mon Sep 17 00:00:00 2001
From: "Juergen E. Fischer" <jef@norbit.de>
Date: Fri, 25 Mar 2016 13:19:22 +0100
Subject: [PATCH] Release of 2.8.8
---
CMakeLists.txt | 2 +-
ChangeLog | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
debian/changelog | 10 ++++--
3 files changed, 101 insertions(+), 3 deletions(-)