[Insight-developers] openjpg include dir not exported
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Sat Aug 28 11:26:43 EDT 2010
Le 28 août 10 à 00:53, Luis Ibanez a écrit :
>
> Hi Gaetan,
Hi Luis,
>
> Are you doing this with an installed version of ITK ?
No, I'm using it in the build tree.
>
> I just verified that I can use JPEG2000ImageIO
> from a small example outside of the ITK build tree.
>
> (Note that you must have configured ITK with
> ITK_USE_REVIEW ON).
Yes, that's on.
>
> Please let me know how I can reproduce the problem
> that you are observing.
I'm trying to add JPEG2000ImageIO to wrapitk, but openjpeg.h can't be
found.
I have to add the path to this file in ITK_INCLUDE_DIRS in
ITKConfig.cmake
Without this manual fix, I get the following error message:
[ 80%] Generating wrap_ITKIOBase.xml
In file included from /home/glehmann/src/tests/wrapitk/build/Libraries/
IO/wrap_ITKIOBase.cxx:77:
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:35:24:
error: openjpeg.h: No such file or directory
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:36:19:
error: j2k.h: No such file or directory
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:37:19:
error: jp2.h: No such file or directory
In file included from /home/glehmann/src/tests/wrapitk/build/Libraries/
IO/wrap_ITKIOBase.cxx:77:
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:111:
error: 'opj_dparameters_t' does not name a type
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:130:
error: ISO C++ forbids declaration of 'opj_codec_t' with no type
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:130:
error: expected ';' before '*' token
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:132:
error: 'OPJ_UINT32' does not name a type
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:133:
error: 'OPJ_UINT32' does not name a type
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:135:
error: 'OPJ_UINT32' does not name a type
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:136:
error: 'OPJ_UINT32' does not name a type
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:138:
error: 'OPJ_UINT32' does not name a type
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:139:
error: 'OPJ_UINT32' does not name a type
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h: In
member function 'void itk::JPEG2000ImageIO::SetTileSize(int, int)':
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:102:
error: 'm_TileWidth' was not declared in this scope
/home/glehmann/src/tests/ITK/Code/Review/itkJPEG2000ImageIO.h:103:
error: 'm_TileHeight' was not declared in this scope
make[3]: *** [Libraries/IO/wrap_ITKIOBase.xml] Erreur 1
make[2]: *** [Libraries/IO/CMakeFiles/IOIdx.dir/all] Erreur 2
make[1]: *** [Libraries/IO/CMakeFiles/IOPython.dir/rule] Erreur 2
make: *** [IOPython] Erreur 2
Gaëtan
>
>
> Thanks
>
>
> Luis
>
>
> -------------------
> 2010/8/27 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>
>
> Hi,
>
> I found a small problem with openjpg: the include dir is not
> exported, and thus openjpeg.h can't be found while using
> JPEG2000ImageIO outside of the ITK build tree.
> I tried to fix that but I'm not sure how to do it right.
>
> It would be nice if someone used to how the utilities are managed in
> ITK can fix that!
>
> Thanks,
>
> Gaëtan
>
>
> --
> Gaëtan Lehmann
> Biologie du Développement et de la Reproduction
> INRA de Jouy-en-Josas (France)
> tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
> http://voxel.jouy.inra.fr http://www.itk.org
> http://www.mandriva.org http://www.bepo.fr
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100828/7feaaa55/attachment.pgp>
More information about the Insight-developers
mailing list