Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
941391c0
Commit
941391c0
authored
Aug 25, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix openexr build with MSVC
parent
867777f8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
100 deletions
+11
-100
CMakeLists.txt
3rdparty/openexr/CMakeLists.txt
+5
-2
ImfPxr24Compressor.cpp
3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp
+1
-1
ImfZipCompressor.cpp
3rdparty/openexr/IlmImf/ImfZipCompressor.cpp
+1
-1
ImathBox.cpp
3rdparty/openexr/Imath/ImathBox.cpp
+0
-37
ImathShear.cpp
3rdparty/openexr/Imath/ImathShear.cpp
+0
-54
grfmt_exr.cpp
modules/highgui/src/grfmt_exr.cpp
+4
-5
No files found.
3rdparty/openexr/CMakeLists.txt
View file @
941391c0
...
...
@@ -37,8 +37,11 @@ endif()
source_group
(
"Include"
FILES
${
lib_hdrs
}
)
source_group
(
"Src"
FILES
${
lib_srcs
}
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wshadow -Wunused -Wsign-compare -Wundef -Wmissing-declarations -Wuninitialized -Wswitch
/wd4018 /wd4099 /wd4100 /wd4101 /wd4127 /wd4189 /wd4244 /wd4245 /wd4267 /wd4305 /wd4334 /wd4389 /wd4512 /wd4701 /wd4702 /wd4706 /wd4800
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wshadow -Wunused -Wsign-compare -Wundef -Wmissing-declarations -Wuninitialized -Wswitch -Wparentheses
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS /wd4018 /wd4099 /wd4100 /wd4101 /wd4127 /wd4189 /wd4245 /wd4305 /wd4389 /wd4512 /wd4701 /wd4702 /wd4706 /wd4800
)
# vs2005
ocv_warnings_disable
(
CMAKE_CXX_FLAGS /wd4334
)
# vs2005 Win64
ocv_warnings_disable
(
CMAKE_CXX_FLAGS /wd4244
)
# vs2008
ocv_warnings_disable
(
CMAKE_CXX_FLAGS /wd4267
)
# vs2008 Win64
add_library
(
IlmImf STATIC
${
lib_hdrs
}
${
lib_srcs
}
)
target_link_libraries
(
IlmImf
${
ZLIB_LIBRARIES
}
)
...
...
3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp
View file @
941391c0
...
...
@@ -62,7 +62,7 @@
// string of bytes is compressed with zlib.
//
//-----------------------------------------------------------------------------
#define ZLIB_WINAPI
//
#define ZLIB_WINAPI
#include <ImfPxr24Compressor.h>
#include <ImfHeader.h>
...
...
3rdparty/openexr/IlmImf/ImfZipCompressor.cpp
View file @
941391c0
...
...
@@ -39,7 +39,7 @@
// class ZipCompressor
//
//-----------------------------------------------------------------------------
#define ZLIB_WINAPI
//
#define ZLIB_WINAPI
#include <ImfZipCompressor.h>
#include <ImfCheckedArithmetic.h>
...
...
3rdparty/openexr/Imath/ImathBox.cpp
deleted
100644 → 0
View file @
867777f8
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Industrial Light & Magic nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
///////////////////////////////////////////////////////////////////////////
#include "ImathBox.h"
// this file is necessary for template instantiation on windows
3rdparty/openexr/Imath/ImathShear.cpp
deleted
100644 → 0
View file @
867777f8
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2002, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Industrial Light & Magic nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
///////////////////////////////////////////////////////////////////////////
//----------------------------------------------------------------------------
//
// Specializations of the Shear6<T> template.
//
//----------------------------------------------------------------------------
#include "ImathShear.h"
namespace
Imath
{
// empty
}
// namespace Imath
modules/highgui/src/grfmt_exr.cpp
View file @
941391c0
...
...
@@ -44,6 +44,10 @@
#ifdef HAVE_OPENEXR
#if defined _MSC_VER && _MSC_VER >= 1200
# pragma warning( disable: 4100 4244 4267 )
#endif
#include <ImfHeader.h>
#include <ImfInputFile.h>
#include <ImfOutputFile.h>
...
...
@@ -53,11 +57,6 @@
#include "grfmt_exr.hpp"
#if defined _MSC_VER && _MSC_VER >= 1200
#pragma comment(lib, "Half.lib")
#pragma comment(lib, "Iex.lib")
#pragma comment(lib, "IlmImf.lib")
#pragma comment(lib, "IlmThread.lib")
#pragma comment(lib, "Imath.lib")
#undef UINT
#define UINT ((Imf::PixelType)0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment