Open GoogleCodeExporter opened 9 years ago
The OPJViewer program must fail in the TRUNK: is has been copied from the
BRANCH to the TRUNK; and nothing more.
E.g. the 'opj_dinfo_t' structure or 'opj_cio_open()' are part of the BRANCH,
not the TRUNK.
I have tried to run the BRANCH-viewer on SLACKWARE Linux: it fails. This
should perhaps be the same on UBUNTU. But if you want to try yourself:
download the openjpeg-branch15 from SVN, compile and run it.
winfried
Original comment by szukw...@arcor.de
on 16 Mar 2013 at 10:54
Original comment by mathieu.malaterre
on 24 Feb 2014 at 1:37
I checked out 1.5 using;
svn checkout http://openjpeg.googlecode.com/svn/branches/openjpeg-1.5 .
did a cmake;
cmake . -DBUILD_THIRDPARTY:BOOL=ON -DBUILD_VIEWER:BOOL=O
But ......... when I do make, all other stuff compiles ... but ....
The OPJViewer program fails in branch 1.5 also with errors;
[100%] Building C object
applications/OPJViewer/CMakeFiles/opjviewer.dir/__/codec/index.c.o
/home/user/VDSU/openjpeg-2.1.0-Linux-i386/ojp-br15/applications/codec/index.c:32
:22: fatal error: openjpeg.h: No such file or directory
compilation terminated.
make[2]: ***
[applications/OPJViewer/CMakeFiles/opjviewer.dir/__/codec/index.c.o] Error 1
make[1]: *** [applications/OPJViewer/CMakeFiles/opjviewer.dir/all] Error 2
make: *** [all] Error 2
Original comment by kha...@gmail.com
on 29 Oct 2014 at 3:54
BTW, 2.0 gives the same error as 2.1.
Original comment by kha...@gmail.com
on 29 Oct 2014 at 3:58
It seems that you use LINUX.
But which WX version do you use? Wich compiler version do you use?
First you have to apply the attached patch.
Then - depending on the WX version - compilation may stop with:
openjpeg-1.5.x-branch-r2918-1/applications/OPJViewer/source/imagjpeg2000.cpp:
In member function 'virtual bool wxJPEG2000Handler::SaveFile(wxImage*,
wxOutputStream&, bool)':
/sources/LIB/IMAGE_FORMATS/OPENJPEG/BRANCH/openjpeg-1.5.x-branch-r2918-1/applica
tions/OPJViewer/source/imagjpeg2000.cpp:1099:51: error: invalid cast from type
'wxCStrData' to type 'char*'
char *s = (char *) m_prsize.c_str();
^
make[2]: ***
[applications/OPJViewer/CMakeFiles/opjviewer.dir/source/imagjpeg2000.cpp.o]
Error 1
make[1]: *** [applications/OPJViewer/CMakeFiles/opjviewer.dir/all] Error 2
make: *** [all] Error 2
It seems that the last working WX version was 2.8; later
versions may fail.
winfried
Original comment by szukw...@arcor.de
on 29 Oct 2014 at 5:35
Attachments:
Original issue reported on code.google.com by
joep.w.j...@gmail.com
on 15 Mar 2013 at 3:52