fixes opjviewer build
This commit is contained in:
parent
b8bd1b0e07
commit
c9ff4d3482
|
@ -4,17 +4,13 @@ find_package(wxWidgets REQUIRED)
|
||||||
include(${wxWidgets_USE_FILE})
|
include(${wxWidgets_USE_FILE})
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
||||||
${OPENJPEG_SOURCE_DIR}/src/lib
|
${OPENJPEG_SOURCE_DIR}/src/lib
|
||||||
${OPENJPEG_SOURCE_DIR}/src/bin
|
${OPENJPEG_SOURCE_DIR}/src/bin
|
||||||
${OPENJPEG_SOURCE_DIR}/src/lib/openjp2
|
${OPENJPEG_SOURCE_DIR}/src/lib/openjp2
|
||||||
${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h and opj_config_private.h
|
${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h and opj_config_private.h
|
||||||
)
|
)
|
||||||
|
|
||||||
# original flags:
|
add_definitions(-DwxUSE_LIBOPENJPEG -DOPENJPEG_VERSION="${OPENJPEG_VERSION}")
|
||||||
# -DUSE_JPWL -DwxUSE_LIBOPENJPEG -DwxUSE_GUI=1 -DOPJ_STATIC -DOPJ_HTMLABOUT -DOPJ_INICONFIG -DUSE_JPSEC -DOPJ_MANYFORMATS
|
|
||||||
add_definitions(-DwxUSE_LIBOPENJPEG -DOPENJPEG_VERSION="1.5.0")
|
|
||||||
set(OPJV_SRCS
|
set(OPJV_SRCS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/source/imagjpeg2000.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/source/imagjpeg2000.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/source/wxj2kparser.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/source/wxj2kparser.cpp
|
||||||
|
|
|
@ -106,8 +106,6 @@
|
||||||
#include "wx/toolbar.h"
|
#include "wx/toolbar.h"
|
||||||
#include "wx/artprov.h"
|
#include "wx/artprov.h"
|
||||||
|
|
||||||
#include "openjp2/openjpeg.h"
|
|
||||||
|
|
||||||
//#include "imagj2k.h"
|
//#include "imagj2k.h"
|
||||||
//#include "imagjp2.h"
|
//#include "imagjp2.h"
|
||||||
//#include "imagmj2.h"
|
//#include "imagmj2.h"
|
||||||
|
|
|
@ -56,8 +56,6 @@
|
||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "openjp2/openjpeg.h"
|
|
||||||
|
|
||||||
#include "wx/filefn.h"
|
#include "wx/filefn.h"
|
||||||
#include "wx/wfstream.h"
|
#include "wx/wfstream.h"
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,8 @@
|
||||||
#if wxUSE_LIBOPENJPEG
|
#if wxUSE_LIBOPENJPEG
|
||||||
|
|
||||||
#include "wx/image.h"
|
#include "wx/image.h"
|
||||||
#include "openjp2/openjpeg.h"
|
#include "openmj2/openjpeg.h"
|
||||||
|
#include "openmj2/event.h"
|
||||||
#include "jp2/index.h"
|
#include "jp2/index.h"
|
||||||
|
|
||||||
#define wxBITMAP_TYPE_JPEG2000 50
|
#define wxBITMAP_TYPE_JPEG2000 50
|
||||||
|
|
Loading…
Reference in New Issue