Windows Visual Studio 2010 Build Problems for OSSIM r23001

classic Classic list List threaded Threaded
2 messages Options
B B
Reply | Threaded
Open this post in threaded view
|

Windows Visual Studio 2010 Build Problems for OSSIM r23001

B B
FYI

I had to make a few changes to get the 23001 revision of OSSIM to build for Visual Studio 2010. I checked my changes against the latest trunk code and it looks like the issues below still exist:



Index: ossim_package_support/cmake/CMakeModules/OssimUtilities.cmake
===================================================================
--- ossim_package_support/cmake/CMakeModules/OssimUtilities.cmake (revision 23001)
+++ ossim_package_support/cmake/CMakeModules/OssimUtilities.cmake (working copy)
@@ -76,7 +76,7 @@
       ENDIF(NOT EXISTS "${CMAKE_BINARY_DIR}/get_date.cmd")
  
       EXECUTE_PROCESS(COMMAND "cmake" "-E" "comspec" "${CMAKE_BINARY_DIR}/get_date.cmd"  OUTPUT_VARIABLE ${RESULT})
-      string(REGEX REPLACE "\n|\r" "" ${RESULT} ${${RESULT}})
+      string(REGEX REPLACE "\n|\r" "" RESULT ${RESULT})
    ELSEIF(CMAKE_HOST_UNIX)
       EXECUTE_PROCESS(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE ${RESULT})
       string(REGEX REPLACE "(..)/(..)/..(..).*" "\\3\\2\\1" ${RESULT} ${${RESULT}})

Index: ossim_plugins/png/ossimPngCodecFactory.h
===================================================================
--- ossim_plugins/png/ossimPngCodecFactory.h (revision 23001)
+++ ossim_plugins/png/ossimPngCodecFactory.h (working copy)
@@ -13,7 +13,7 @@
 #ifndef ossimPngCodecFactory_HEADER
 #define ossimPngCodecFactory_HEADER 1
 
-#include <ossim/base/ossimConstants.h>
+#include <ossimPluginConstants.h>
 #include <ossim/imaging/ossimCodecFactoryInterface.h>
 
 class ossimFilename;
@@ -22,7 +22,7 @@
 /**
  * @brief Codec factory.
  */
-class OSSIM_DLL ossimPngCodecFactory : public ossimCodecFactoryInterface
+class OSSIM_PLUGINS_DLL ossimPngCodecFactory : public ossimCodecFactoryInterface
 {
 public:
 
Index: ossimPredator/include/ossimPredator/ffmpegApi.h
===================================================================
--- ossimPredator/include/ossimPredator/ffmpegApi.h (revision 23001)
+++ ossimPredator/include/ossimPredator/ffmpegApi.h (working copy)
@@ -12,6 +12,9 @@
 #include <ffmpeg/avdevice.h>
 #include <ffmpeg/swscale.h>
 #else
+#ifndef __STDC_CONSTANT_MACROS
+#define __STDC_CONSTANT_MACROS
+#endif
 #include <libavcodec/avcodec.h>
 #include <libavdevice/avdevice.h>
 #include <libavformat/avformat.h>


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: Windows Visual Studio 2010 Build Problems for OSSIM r23001

David Burken
Thanks Bryan, started a fresh windows build tonight.  Will check your stuff in the morning.
Dave

On 12/01/2014 06:20 PM, Bryan Bagnall wrote:
FYI

I had to make a few changes to get the 23001 revision of OSSIM to build for Visual Studio 2010. I checked my changes against the latest trunk code and it looks like the issues below still exist:



Index: ossim_package_support/cmake/CMakeModules/OssimUtilities.cmake
===================================================================
--- ossim_package_support/cmake/CMakeModules/OssimUtilities.cmake (revision 23001)
+++ ossim_package_support/cmake/CMakeModules/OssimUtilities.cmake (working copy)
@@ -76,7 +76,7 @@
       ENDIF(NOT EXISTS "${CMAKE_BINARY_DIR}/get_date.cmd")
  
       EXECUTE_PROCESS(COMMAND "cmake" "-E" "comspec" "${CMAKE_BINARY_DIR}/get_date.cmd"  OUTPUT_VARIABLE ${RESULT})
-      string(REGEX REPLACE "\n|\r" "" ${RESULT} ${${RESULT}})
+      string(REGEX REPLACE "\n|\r" "" RESULT ${RESULT})
    ELSEIF(CMAKE_HOST_UNIX)
       EXECUTE_PROCESS(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE ${RESULT})
       string(REGEX REPLACE "(..)/(..)/..(..).*" "\\3\\2\\1" ${RESULT} ${${RESULT}})

Index: ossim_plugins/png/ossimPngCodecFactory.h
===================================================================
--- ossim_plugins/png/ossimPngCodecFactory.h (revision 23001)
+++ ossim_plugins/png/ossimPngCodecFactory.h (working copy)
@@ -13,7 +13,7 @@
 #ifndef ossimPngCodecFactory_HEADER
 #define ossimPngCodecFactory_HEADER 1
 
-#include <ossim/base/ossimConstants.h>
+#include <ossimPluginConstants.h>
 #include <ossim/imaging/ossimCodecFactoryInterface.h>
 
 class ossimFilename;
@@ -22,7 +22,7 @@
 /**
  * @brief Codec factory.
  */
-class OSSIM_DLL ossimPngCodecFactory : public ossimCodecFactoryInterface
+class OSSIM_PLUGINS_DLL ossimPngCodecFactory : public ossimCodecFactoryInterface
 {
 public:
 
Index: ossimPredator/include/ossimPredator/ffmpegApi.h
===================================================================
--- ossimPredator/include/ossimPredator/ffmpegApi.h (revision 23001)
+++ ossimPredator/include/ossimPredator/ffmpegApi.h (working copy)
@@ -12,6 +12,9 @@
 #include <ffmpeg/avdevice.h>
 #include <ffmpeg/swscale.h>
 #else
+#ifndef __STDC_CONSTANT_MACROS
+#define __STDC_CONSTANT_MACROS
+#endif
 #include <libavcodec/avcodec.h>
 #include <libavdevice/avdevice.h>
 #include <libavformat/avformat.h>



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk


_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer