[brlcad-commits] SF.net SVN: brlcad:[70273] brlcad/trunk/src/other/gdal

2017-09-13 Thread starseeker--- via brlcad-commits
Revision: 70273
  http://sourceforge.net/p/brlcad/code/70273
Author:   starseeker
Date: 2017-09-13 15:31:23 + (Wed, 13 Sep 2017)
Log Message:
---
We can safely add png to the formats list since we guarantee libpng

Modified Paths:
--
brlcad/trunk/src/other/gdal/CMakeLists.txt

Added Paths:
---
brlcad/trunk/src/other/gdal/frmts/png/
brlcad/trunk/src/other/gdal/frmts/png/CMakeLists.txt
brlcad/trunk/src/other/gdal/frmts/png/pngdataset.cpp

Modified: brlcad/trunk/src/other/gdal/CMakeLists.txt
===
--- brlcad/trunk/src/other/gdal/CMakeLists.txt  2017-09-13 14:14:46 UTC (rev 
70272)
+++ brlcad/trunk/src/other/gdal/CMakeLists.txt  2017-09-13 15:31:23 UTC (rev 
70273)
@@ -106,6 +106,7 @@
 find_package(PNG)
 if(PNG_LIBRARY)
   include_directories(${PNG_INCLUDE_DIR})
+  add_definitions(-DUSE_PNG)
 endif(PNG_LIBRARY)
 
 
@@ -210,7 +211,7 @@
   map
   ngsgeoid nitf northwood
   ozi
-  pds prf
+  pds png prf
   r rik rmf rs2
   safe saga
   sentinel2 sgi srtmhgt

Added: brlcad/trunk/src/other/gdal/frmts/png/CMakeLists.txt
===
--- brlcad/trunk/src/other/gdal/frmts/png/CMakeLists.txt
(rev 0)
+++ brlcad/trunk/src/other/gdal/frmts/png/CMakeLists.txt2017-09-13 
15:31:23 UTC (rev 70273)
@@ -0,0 +1,2 @@
+include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+add_library(frmt_png OBJECT pngdataset.cpp)


Property changes on: brlcad/trunk/src/other/gdal/frmts/png/CMakeLists.txt
___
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/trunk/src/other/gdal/frmts/png/pngdataset.cpp
===
--- brlcad/trunk/src/other/gdal/frmts/png/pngdataset.cpp
(rev 0)
+++ brlcad/trunk/src/other/gdal/frmts/png/pngdataset.cpp2017-09-13 
15:31:23 UTC (rev 70273)
@@ -0,0 +1,2377 @@
+/**
+ *
+ * Project:  PNG Driver
+ * Purpose:  Implement GDAL PNG Support
+ * Author:   Frank Warmerdam, warme...@home.com
+ *
+ **
+ * Copyright (c) 2000, Frank Warmerdam
+ * Copyright (c) 2007-2014, Even Rouault 
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ **
+ *
+ * ISSUES:
+ *  o CollectMetadata() will only capture TEXT chunks before the image
+ *data as the code is currently structured.
+ *  o Interlaced images are read entirely into memory for use.  This is
+ *bad for large images.
+ *  o Image reading is always strictly sequential.  Reading backwards will
+ *cause the file to be rewound, and access started again from the
+ *beginning.
+ *  o 16 bit alpha values are not scaled by to eight bit.
+ *
+ */
+
+#include "cpl_string.h"
+#include "gdal_frmts.h"
+#include "gdal_pam.h"
+#include "png.h"
+
+#include 
+
+#include 
+
+CPL_CVSID("$Id: pngdataset.cpp 37784 2017-03-18 23:29:45Z rouault $");
+
+// Note: Callers must provide blocks in increasing Y order.
+// Disclaimer (E. Rouault): this code is not production ready at all. A lot of
+// issues remain: uninitialized variables, unclosed files, lack of proper
+// multiband handling, and an inability to read and write at the same time. Do
+// not use it unless you're ready to fix it.
+
+// Define SUPPORT_CREATE to enable use of the Create() call.
+// #define SUPPORT_CREATE
+
+#ifdef _MSC_VER
+#  pragma warning(disable:4611)
+#endif
+
+static void
+png_vsi_read_data(png_structp png_ptr, png_bytep data, png_size_t length);
+
+static void

[brlcad-commits] SF.net SVN: brlcad:[70275] brlcad/trunk

2017-09-13 Thread starseeker--- via brlcad-commits
Revision: 70275
  http://sourceforge.net/p/brlcad/code/70275
Author:   starseeker
Date: 2017-09-13 23:26:14 + (Wed, 13 Sep 2017)
Log Message:
---
Consolidate BRLCAD_CompilerFlags.cmake into the toplevel CMakeLists.txt file.

Modified Paths:
--
brlcad/trunk/CMakeLists.txt
brlcad/trunk/misc/CMake/CMakeLists.txt

Removed Paths:
-
brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake

Modified: brlcad/trunk/CMakeLists.txt
===
--- brlcad/trunk/CMakeLists.txt 2017-09-13 23:21:46 UTC (rev 70274)
+++ brlcad/trunk/CMakeLists.txt 2017-09-13 23:26:14 UTC (rev 70275)
@@ -1903,12 +1903,233 @@
 set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS_BAK})
 
 # *** #
+# The following tests are almost entirely for gcc-style flags.
+if(NOT MSVC)
+  # -ffast-math provokes a stack corruption in the shadow computations because
+  # of strict aliasing getting enabled.  we _require_
+  # -fno-strict-aliasing until someone changes how lists are managed.
+  # -fast-math results in non-IEEE floating point math among a handful
+  # of other optimizations that cause substantial error in ray tracing
+  # and tessellation (and probably more).
+  CHECK_C_FLAG(O3 GROUPS OPTIMIZE_C_FLAGS)
+  # CHECK_C_FLAG(Ofast GROUPS OPTIMIZE_C_FLAGS)
+  # CHECK_C_FLAG(march=native GROUPS OPTIMIZE_C_FLAGS)
+  CHECK_C_FLAG(fstrength-reduce GROUPS OPTIMIZE_C_FLAGS)
+  CHECK_C_FLAG(fexpensive-optimizations GROUPS OPTIMIZE_C_FLAGS)
+  CHECK_C_FLAG(finline-functions GROUPS OPTIMIZE_C_FLAGS)
+  CHECK_C_FLAG("finline-limit=1 --param inline-unit-growth=300 --param 
large-function-growth=300" GROUPS OPTIMIZE_C_FLAGS)
+  CHECK_CXX_FLAG(O3 GROUPS OPTIMIZE_CXX_FLAGS)
+  # CHECK_CXX_FLAG(Ofast GROUPS OPTIMIZE_CXX_FLAGS)
+  # CHECK_CXX_FLAG(march=native GROUPS OPTIMIZE_CXX_FLAGS)
+  CHECK_CXX_FLAG(fstrength-reduce GROUPS OPTIMIZE_CXX_FLAGS)
+  CHECK_CXX_FLAG(fexpensive-optimizations GROUPS OPTIMIZE_CXX_FLAGS)
+  CHECK_CXX_FLAG(finline-functions GROUPS OPTIMIZE_CXX_FLAGS)
+  CHECK_CXX_FLAG("finline-limit=1 --param inline-unit-growth=300 --param 
large-function-growth=300" GROUPS OPTIMIZE_CXX_FLAGS)
 
-if(NOT MSVC)
-  # We could include this, but these tests are almost entirely for
-  # gcc-style flags.  This file is intentionally included after we
-  # wipe out the various FLAGS variables.
-  include(BRLCAD_CompilerFlags)
+  # FIXME: need to conditionally set gcc-ar/gcc-ranlib if we using -flto
+  ###
+  # CHECK_C_FLAG(flto GROUPS OPTIMIZE_C_FLAGS)
+  # CHECK_CXX_FLAG(flto GROUPS OPTIMIZE_CXX_FLAGS)
+  # SET(CMAKE_AR "gcc-ar" CACHE FILEPATH "Archiver" FORCE)
+  # SET(CMAKE_RANLIB "gcc-ranlib" CACHE FILEPATH "Ranlib" FORCE)
+  if(${BRLCAD_OPTIMIZED_BUILD} MATCHES "ON")
+if(NOT BRLCAD_ENABLE_PROFILING AND NOT BRLCAD_FLAGS_DEBUG)
+  CHECK_C_FLAG(fomit-frame-pointer GROUPS OPTIMIZE_C_FLAGS)
+  CHECK_CXX_FLAG(fomit-frame-pointer GROUPS OPTIMIZE_CXX_FLAGS)
+else(NOT BRLCAD_ENABLE_PROFILING AND NOT BRLCAD_FLAGS_DEBUG)
+  CHECK_C_FLAG(fno-omit-frame-pointer GROUPS OPTIMIZE_C_FLAGS)
+  CHECK_CXX_FLAG(fno-omit-frame-pointer GROUPS OPTIMIZE_CXX_FLAGS)
+endif(NOT BRLCAD_ENABLE_PROFILING AND NOT BRLCAD_FLAGS_DEBUG)
+  endif(${BRLCAD_OPTIMIZED_BUILD} MATCHES "ON")
+
+  if(${BRLCAD_FLAGS_OPTIMIZATION} MATCHES "AUTO")
+if(CMAKE_CONFIGURATION_TYPES)
+  set(opt_conf_list "Release")
+else(CMAKE_CONFIGURATION_TYPES)
+  if(${BRLCAD_OPTIMIZED_BUILD} MATCHES "ON")
+   set(opt_conf_list "ALL")
+  endif(${BRLCAD_OPTIMIZED_BUILD} MATCHES "ON")
+endif(CMAKE_CONFIGURATION_TYPES)
+  else(${BRLCAD_FLAGS_OPTIMIZATION} MATCHES "AUTO")
+if(${BRLCAD_OPTIMIZED_BUILD} MATCHES "ON")
+  set(opt_conf_list "ALL")
+endif(${BRLCAD_OPTIMIZED_BUILD} MATCHES "ON")
+  endif(${BRLCAD_FLAGS_OPTIMIZATION} MATCHES "AUTO")
+  if(opt_conf_list)
+ADD_NEW_FLAG(C OPTIMIZE_C_FLAGS "${opt_conf_list}")
+ADD_NEW_FLAG(CXX OPTIMIZE_CXX_FLAGS "${opt_conf_list}")
+  endif(opt_conf_list)
+
+  # enable stack protection for unoptimized debug builds.  this is
+  # intended to help make it easier to identify problematic code but
+  # only when compiling unoptimized (because the extra barrier checks
+  # can affect the memory footprint and runtime performance.
+  if(${BRLCAD_OPTIMIZED_BUILD} MATCHES "OFF" AND BRLCAD_FLAGS_DEBUG)
+CHECK_C_FLAG(fstack-protector-all)
+CHECK_CXX_FLAG(fstack-protector-all)
+# checking both in case compiling c/c++ with different compilers
+CHECK_C_FLAG(qstackprotect)
+CHECK_CXX_FLAG(qstackprotect)
+  endif(${BRLCAD_OPTIMIZED_BUILD} MATCHES "OFF" AND BRLCAD_FLAGS_DEBUG)
+
+  # enable memory error detector AddressSanitizer (see
+  # https://code.google.com/p/address-sanitizer/ for more info.)
+  if(${BRLCAD_OPTIMIZED_BUILD} MATCHES "OFF" AND BRLCAD_FLAGS_DEBUG AND 
BRLCAD_ADDRESS_SANITIZER)
+CHECK_C_FLAG(fsanitize=address)
+ 

[brlcad-commits] SF.net SVN: brlcad:[70277] brlcad/trunk/TODO

2017-09-13 Thread starseeker--- via brlcad-commits
Revision: 70277
  http://sourceforge.net/p/brlcad/code/70277
Author:   starseeker
Date: 2017-09-14 00:20:51 + (Thu, 14 Sep 2017)
Log Message:
---
look into using hsregex as an update to libregex - our copy of Spencer's 
libregex appears to be one of the older ones.  I'm wondering too if we should 
be including Spencer's COPYRIGHT file the way FreeBSD and some of the Linux 
distros appear to... updating to the newer one would avoid that concern.

Modified Paths:
--
brlcad/trunk/TODO

Modified: brlcad/trunk/TODO
===
--- brlcad/trunk/TODO   2017-09-13 23:30:24 UTC (rev 70276)
+++ brlcad/trunk/TODO   2017-09-14 00:20:51 UTC (rev 70277)
@@ -112,6 +112,11 @@
 THESE ARE UNSCHEDULED BACKLOG TASKS
 ---
 
+* look into https://github.com/garyhouston/hsrex, which
+  is a stand-alone version of Henry Spencer's most modern
+  regex library, as a replacement for the older version in
+  src/other/libregex
+
 * afl on libged/mged/rt/...
 
 * moodycamel as libbu queue/list/ptbl implementation

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[70278] brlcad/trunk/TODO

2017-09-13 Thread starseeker--- via brlcad-commits
Revision: 70278
  http://sourceforge.net/p/brlcad/code/70278
Author:   starseeker
Date: 2017-09-14 00:45:07 + (Thu, 14 Sep 2017)
Log Message:
---
more notes

Modified Paths:
--
brlcad/trunk/TODO

Modified: brlcad/trunk/TODO
===
--- brlcad/trunk/TODO   2017-09-14 00:20:51 UTC (rev 70277)
+++ brlcad/trunk/TODO   2017-09-14 00:45:07 UTC (rev 70278)
@@ -115,7 +115,9 @@
 * look into https://github.com/garyhouston/hsrex, which
   is a stand-alone version of Henry Spencer's most modern
   regex library, as a replacement for the older version in
-  src/other/libregex
+  src/other/libregex.  May actually want to re-do the
+  extraction from Tcl, as they have recent patches:
+  https://github.com/tcltk/tcl/tree/master/generic
 
 * afl on libged/mged/rt/...
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[70274] brlcad/trunk/TODO

2017-09-13 Thread starseeker--- via brlcad-commits
Revision: 70274
  http://sourceforge.net/p/brlcad/code/70274
Author:   starseeker
Date: 2017-09-13 23:21:46 + (Wed, 13 Sep 2017)
Log Message:
---
Add TODO notes for multispectral removal and miniz/lodepng investigation, but 
for two releases out - for now, need to keep the codebase relatively stable in 
anticipation of a possible patch release.

Modified Paths:
--
brlcad/trunk/TODO

Modified: brlcad/trunk/TODO
===
--- brlcad/trunk/TODO   2017-09-13 15:31:23 UTC (rev 70273)
+++ brlcad/trunk/TODO   2017-09-13 23:21:46 UTC (rev 70274)
@@ -34,6 +34,18 @@
 THESE TASKS SHOULD HAPPEN WITHIN TWO RELEASE ITERATIONS
 ---
 
+* investigate possibility of using simple, compact libs
+  like miniz and lodepng to replace the complexity of
+  managing zlib and libpng in src/other.  These have been
+  a source of ongoing annoyance, particularly (but not
+  exclusively) on OSX.
+
+* remove libmultispectral and related codes - investigation
+  by Sean indicates these haven't been working for a while
+  and may not have been fully mature originally.  They are
+  also adding complexity and maintenance burden, so time to
+  remove.
+
 * f_dbopen in MGED doesn't seem to be reporting failure
   if a non-.g file is fed to opendb.  That doesn't seem
   right... shouldn't the open process completely fail

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[70276] brlcad/trunk/CMakeLists.txt

2017-09-13 Thread starseeker--- via brlcad-commits
Revision: 70276
  http://sourceforge.net/p/brlcad/code/70276
Author:   starseeker
Date: 2017-09-13 23:30:24 + (Wed, 13 Sep 2017)
Log Message:
---
Make a note to use CMakePushCheckState to clean up some of the required flags 
management.

Modified Paths:
--
brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===
--- brlcad/trunk/CMakeLists.txt 2017-09-13 23:26:14 UTC (rev 70275)
+++ brlcad/trunk/CMakeLists.txt 2017-09-13 23:30:24 UTC (rev 70276)
@@ -1848,6 +1848,7 @@
 # *** #
 # For some tests, we need Werror to make sure the test actually fails
 
+# TODO - replace this cache approach with the CMakePushCheckState module
 set(CMAKE_REQUIRED_FLAGS_BAK ${CMAKE_REQUIRED_FLAGS})
 CHECK_C_FLAG(Werror VARS ERROR_FLAG)
 if (ERROR_FLAG)
@@ -2215,6 +2216,7 @@
 
 # timeSetEvent in Windows memory management
 if("${HAVE_TIMESETEVENT}" MATCHES "^${HAVE_TIMESETEVENT}$")
+  # TODO - replace this cache approach with the CMakePushCheckState module
   set(CMAKE_REQUIRED_LIBRARIES_BAK ${CMAKE_REQUIRED_LIBRARIES})
   set(CMAKE_REQUIRED_LIBRARIES "winmm.lib")
   check_c_source_compiles("#include \nint main() 
{(void)timeSetEvent(1000, 100, (LPTIMECALLBACK)NULL, (DWORD_PTR)NULL, 
TIME_ONESHOT);}" HAVE_TIMESETEVENT)
@@ -2581,6 +2583,7 @@
   COMPILE_TEST_SRCS lrint_test lrint_test_negative
   REQUIRED_LIBS ${M_LIBRARY})
 if(NOT HAVE_LRINT AND "${HAVE_WORKING_LRINT_MACRO}" MATCHES 
"^${HAVE_WORKING_LRINT_MACRO}$")
+  # TODO - replace this cache approach with the CMakePushCheckState module
   set(CMAKE_REQUIRED_LIBRARIES_BAK ${CMAKE_REQUIRED_LIBRARIES})
   set(CMAKE_REQUIRED_LIBRARIES ${M_LIBRARY})
   # NOTE: this must match the lrint #define in include/common.h
@@ -2593,6 +2596,7 @@
 
 # test for lrint() declaration
 if(HAVE_LRINT AND "${HAVE_DECL_LRINT}" MATCHES "^${HAVE_DECL_LRINT}$")
+  # TODO - replace this cache approach with the CMakePushCheckState module
   set(CMAKE_REQUIRED_LIBRARIES_BAK ${CMAKE_REQUIRED_LIBRARIES})
   set(CMAKE_REQUIRED_LIBRARIES ${M_LIBRARY})
   check_c_source_compiles("#include \nint main() { (void)lrint(0); 
return 0; }" HAVE_DECL_LRINT)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[70268] brlcad/trunk/misc/pkgconfig/CMakeLists.txt

2017-09-13 Thread d_rossberg--- via brlcad-commits
Revision: 70268
  http://sourceforge.net/p/brlcad/code/70268
Author:   d_rossberg
Date: 2017-09-13 06:54:10 + (Wed, 13 Sep 2017)
Log Message:
---
quell CMake warning

Modified Paths:
--
brlcad/trunk/misc/pkgconfig/CMakeLists.txt

Modified: brlcad/trunk/misc/pkgconfig/CMakeLists.txt
===
--- brlcad/trunk/misc/pkgconfig/CMakeLists.txt  2017-09-12 20:46:07 UTC (rev 
70267)
+++ brlcad/trunk/misc/pkgconfig/CMakeLists.txt  2017-09-13 06:54:10 UTC (rev 
70268)
@@ -16,7 +16,7 @@
 endif(REGEX_LIBRARY)
 if(UUID_LIBRARIES)
   set(LIBUUID "-l${UUID_LIBRARIES}")
-endif(UUID_LIBRARY)
+endif(UUID_LIBRARIES)
 
 #The CMake system relies on the C++ compiler to find
 #this, so we set it manually for pkgconfig

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[70269] brlcad/trunk/misc/CMake/ BRLCAD_CompilerFlags.cmake

2017-09-13 Thread brlcad--- via brlcad-commits
Revision: 70269
  http://sourceforge.net/p/brlcad/code/70269
Author:   brlcad
Date: 2017-09-13 12:34:54 + (Wed, 13 Sep 2017)
Log Message:
---
need a better way to conditionally toggle compile-time flags, but stash these 
for now

Modified Paths:
--
brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake

Modified: brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake
===
--- brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake  2017-09-13 06:54:10 UTC 
(rev 70268)
+++ brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake  2017-09-13 12:34:54 UTC 
(rev 70269)
@@ -34,7 +34,7 @@
 #
 ###
 
-# -fast provokes a stack corruption in the shadow computations because
+# -ffast-math provokes a stack corruption in the shadow computations because
 # of strict aliasing getting enabled.  we _require_
 # -fno-strict-aliasing until someone changes how lists are managed.
 # -fast-math results in non-IEEE floating point math among a handful
@@ -41,15 +41,27 @@
 # of other optimizations that cause substantial error in ray tracing
 # and tessellation (and probably more).
 CHECK_C_FLAG(O3 GROUPS OPTIMIZE_C_FLAGS)
+# CHECK_C_FLAG(Ofast GROUPS OPTIMIZE_C_FLAGS)
+# CHECK_C_FLAG(march=native GROUPS OPTIMIZE_C_FLAGS)
 CHECK_C_FLAG(fstrength-reduce GROUPS OPTIMIZE_C_FLAGS)
 CHECK_C_FLAG(fexpensive-optimizations GROUPS OPTIMIZE_C_FLAGS)
 CHECK_C_FLAG(finline-functions GROUPS OPTIMIZE_C_FLAGS)
 CHECK_C_FLAG("finline-limit=1 --param inline-unit-growth=300 --param 
large-function-growth=300" GROUPS OPTIMIZE_C_FLAGS)
 CHECK_CXX_FLAG(O3 GROUPS OPTIMIZE_CXX_FLAGS)
+# CHECK_CXX_FLAG(Ofast GROUPS OPTIMIZE_CXX_FLAGS)
+# CHECK_CXX_FLAG(march=native GROUPS OPTIMIZE_CXX_FLAGS)
 CHECK_CXX_FLAG(fstrength-reduce GROUPS OPTIMIZE_CXX_FLAGS)
 CHECK_CXX_FLAG(fexpensive-optimizations GROUPS OPTIMIZE_CXX_FLAGS)
 CHECK_CXX_FLAG(finline-functions GROUPS OPTIMIZE_CXX_FLAGS)
 CHECK_CXX_FLAG("finline-limit=1 --param inline-unit-growth=300 --param 
large-function-growth=300" GROUPS OPTIMIZE_CXX_FLAGS)
+
+# FIXME: need to conditionally set gcc-ar/gcc-ranlib if we using -flto
+###
+# CHECK_C_FLAG(flto GROUPS OPTIMIZE_C_FLAGS)
+# CHECK_CXX_FLAG(flto GROUPS OPTIMIZE_CXX_FLAGS)
+# SET(CMAKE_AR "gcc-ar" CACHE FILEPATH "Archiver" FORCE)
+# SET(CMAKE_RANLIB "gcc-ranlib" CACHE FILEPATH "Ranlib" FORCE)
+
 if(${BRLCAD_OPTIMIZED_BUILD} MATCHES "ON")
   if(NOT BRLCAD_ENABLE_PROFILING AND NOT BRLCAD_FLAGS_DEBUG)
 CHECK_C_FLAG(fomit-frame-pointer GROUPS OPTIMIZE_C_FLAGS)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[70270] brlcad/trunk/src/libged/simulate/bullet/ BulletCollision/Gimpact/btContactProcessing.h

2017-09-13 Thread brlcad--- via brlcad-commits
Revision: 70270
  http://sourceforge.net/p/brlcad/code/70270
Author:   brlcad
Date: 2017-09-13 13:42:58 + (Wed, 13 Sep 2017)
Log Message:
---
there are two definitions of this class, they need to match for lto to work

Modified Paths:
--

brlcad/trunk/src/libged/simulate/bullet/BulletCollision/Gimpact/btContactProcessing.h

Modified: 
brlcad/trunk/src/libged/simulate/bullet/BulletCollision/Gimpact/btContactProcessing.h
===
--- 
brlcad/trunk/src/libged/simulate/bullet/BulletCollision/Gimpact/btContactProcessing.h
   2017-09-13 12:34:54 UTC (rev 70269)
+++ 
brlcad/trunk/src/libged/simulate/bullet/BulletCollision/Gimpact/btContactProcessing.h
   2017-09-13 13:42:58 UTC (rev 70270)
@@ -46,8 +46,8 @@
 btVector3 m_normal;
 btScalar m_depth;//Positive value indicates interpenetration
 btScalar m_distance;//Padding not for use
-int m_feature1;//Face number
-int m_feature2;//Face number
+unsigned int m_feature1;//Face number
+unsigned int m_feature2;//Face number
 public:
 GIM_CONTACT()
 {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[70271] brlcad/trunk/src/libged/simulate/bullet/ BulletSoftBody/btSoftBody.cpp

2017-09-13 Thread brlcad--- via brlcad-commits
Revision: 70271
  http://sourceforge.net/p/brlcad/code/70271
Author:   brlcad
Date: 2017-09-13 13:43:14 + (Wed, 13 Sep 2017)
Log Message:
---
unint warning

Modified Paths:
--
brlcad/trunk/src/libged/simulate/bullet/BulletSoftBody/btSoftBody.cpp

Modified: brlcad/trunk/src/libged/simulate/bullet/BulletSoftBody/btSoftBody.cpp
===
--- brlcad/trunk/src/libged/simulate/bullet/BulletSoftBody/btSoftBody.cpp   
2017-09-13 13:42:58 UTC (rev 70270)
+++ brlcad/trunk/src/libged/simulate/bullet/BulletSoftBody/btSoftBody.cpp   
2017-09-13 13:43:14 UTC (rev 70271)
@@ -381,6 +381,9 @@
a.m_local   =   localPivot;
a.m_node->m_battach =   1;
a.m_influence = influence;
+a.m_c0[0] = a.m_c0[1] = a.m_c0[2] = btVector3(0.0, 0.0, 0.0);
+a.m_c1 = btVector3(0.0, 0.0, 0.0);
+a.m_c2 = 0.0;
m_anchors.push_back(a);
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[70272] brlcad/trunk/src/other

2017-09-13 Thread starseeker--- via brlcad-commits
Revision: 70272
  http://sourceforge.net/p/brlcad/code/70272
Author:   starseeker
Date: 2017-09-13 14:14:46 + (Wed, 13 Sep 2017)
Log Message:
---
Add another gdal tool

Modified Paths:
--
brlcad/trunk/src/other/gdal/progs/CMakeLists.txt
brlcad/trunk/src/other/gdal.dist

Added Paths:
---
brlcad/trunk/src/other/gdal/progs/gdalbuildvrt_bin.cpp

Modified: brlcad/trunk/src/other/gdal/progs/CMakeLists.txt
===
--- brlcad/trunk/src/other/gdal/progs/CMakeLists.txt2017-09-13 13:43:14 UTC 
(rev 70271)
+++ brlcad/trunk/src/other/gdal/progs/CMakeLists.txt2017-09-13 14:14:46 UTC 
(rev 70272)
@@ -32,3 +32,8 @@
 set_target_properties(gdalwarp PROPERTIES FOLDER "Third Party Libraries/gdal")
 install(TARGETS gdalwarp DESTINATION ${BIN_DIR})
 
+add_executable(gdalbuildvrt gdalbuildvrt_bin.cpp)
+target_link_libraries(gdalbuildvrt gdal)
+set_target_properties(gdalbuildvrt PROPERTIES FOLDER "Third Party 
Libraries/gdal")
+install(TARGETS gdalbuildvrt DESTINATION ${BIN_DIR})
+

Added: brlcad/trunk/src/other/gdal/progs/gdalbuildvrt_bin.cpp
===
--- brlcad/trunk/src/other/gdal/progs/gdalbuildvrt_bin.cpp  
(rev 0)
+++ brlcad/trunk/src/other/gdal/progs/gdalbuildvrt_bin.cpp  2017-09-13 
14:14:46 UTC (rev 70272)
@@ -0,0 +1,213 @@
+/**
+ *
+ * Project:  GDAL Utilities
+ * Purpose:  Command line application to build VRT datasets from raster 
products or content of SHP tile index
+ * Author:   Even Rouault, 
+ *
+ **
+ * Copyright (c) 2007-2016, Even Rouault 
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ /
+
+#include "cpl_string.h"
+#include "cpl_error.h"
+#include "commonutils.h"
+#include "gdal_utils_priv.h"
+
+CPL_CVSID("$Id: gdalbuildvrt_bin.cpp 37978 2017-04-13 15:25:54Z rouault $");
+
+//
+/*   Usage()*/
+//
+
+static void Usage(const char* pszErrorMsg = NULL) CPL_NO_RETURN;
+
+static void Usage(const char* pszErrorMsg)
+
+{
+fprintf(stdout, "%s",
+"Usage: gdalbuildvrt [-tileindex field_name]\n"
+"[-resolution {highest|lowest|average|user}]\n"
+"[-te xmin ymin xmax ymax] [-tr xres yres] 
[-tap]\n"
+"[-separate] [-b band] [-sd subdataset]\n"
+"[-allow_projection_difference] [-q]\n"
+"[-addalpha] [-hidenodata]\n"
+"[-srcnodata \"value [value...]\"] [-vrtnodata 
\"value [value...]\"] \n"
+"[-a_srs srs_def]\n"
+"[-r 
{nearest,bilinear,cubic,cubicspline,lanczos,average,mode}]\n"
+"[-oo NAME=VALUE]*\n"
+"[-input_file_list my_list.txt] [-overwrite] 
output.vrt [gdalfile]*\n"
+"\n"
+"e.g.\n"
+"  % gdalbuildvrt doq_index.vrt doq/*.tif\n"
+"  % gdalbuildvrt -input_file_list my_list.txt doq_index.vrt\n"
+"\n"
+"NOTES:\n"
+"  o With -separate, each files goes into a separate band in the 
VRT band.\n"
+"Otherwise, the files are considered as tiles of a larger 
mosaic.\n"
+"  o -b option selects a band to add into vrt.  Multiple bands can 
be listed.\n"
+"By default all bands are queried.\n"
+"  o The