Hi,

I had pushed a fix to trunk[1], you can update your sources and try build
again. If you receive a warning about cmake policy, ignore it for now. I
had mentioned this also in bug report.

[1] http://hg.orfeo-toolbox.org/OTB/rev/b6ece1fec004


On Fri, Jun 20, 2014 at 11:31 AM, Argyros Argyridis <[email protected]>
wrote:

>  Thanks for the information, I will remove the flags you mentioned.
>
>
>
> Argyros
>
>
>
>
>
>
>
> > Hello,
>
> >
>
> > On Fri, Jun 20, 2014 at 9:44 AM, Argyros Argyridis <
> [email protected]>
>
> > wrote:
>
> >
>
> > > Good morning to all,
>
> > >
>
> > >
>
> > >
>
> > > I am trying to compile orfeo toolbox 4.0 with cmake 3.0.
>
> > >
>
> > >
>
> > >
>
> > > CMake fails to complete the process due to the following error:
>
> > >
>
> > >
>
> > >
>
> > > CMake Error: Error in cmake code at
>
> > >
> /home/argyros/builds/orfeo-toolbox/src/OTB-4.0.0/CMake/ImportGdal.cmake:36:
>
> > > Parse error. Function missing ending ")". Instead found bad character
> with
>
> > > text "[".
>
> > >
>
> > > CMake Error at CMakeLists.txt:206 (include):
>
> > > include could not find load file:
>
> > >
>
> > >
>
> > >
>
> > > /home/argyros/builds/orfeo-toolbox/src/OTB-4.0.0/CMake/ImportGdal.cmake
>
> > >
>
> > >
>
> > >
>
> > > Trying to compile with cmake 2.8 everything works OK.
>
> > >
>
> > >
>
> > >
>
> > I can confirm this bug with cmake 3.0.0. I had tracked this bug in
>
> > mantis[1] and will push a fix soon.
>
> >
>
> > [1] http://bugs.orfeo-toolbox.org/view.php?id=950
>
> >
>
> >
>
> > > I am using the following cmake flags for the compilation:
>
> > >
>
> > >
>
> > >
>
> > > cmake ../OTB-$pkgver -DOTB_USE_EXTERNAL_BOOST:BOOL=ON \
>
> > >
>
> > > -DCMAKE_INSTALL_PREFIX=/usr \
>
> > >
>
> > > -DOTB_USE_CURL:BOOL=ON \
>
> > >
>
> > > -DOTB_USE_LIBLAS:BOOL=ON \
>
> > >
>
> > > -DOTB_USE_EXTERNAL_EXPAT:BOOL=ON \
>
> > >
>
> > > -DOTB_USE_EXTERNAL_LIBLAS:BOOL=OFF \
>
> > >
>
> > > -DOTB_USE_GETTEXT:BOOL=OFF \
>
> > >
>
> > > -DOTB_USE_JPEG2000:BOOL=ON \
>
> > >
>
> > > -DOTB_USE_EXTERNAL_TINYXML:BOOL=ON \
>
> > >
>
> > > -DOTB_USE_EXTERNAL_FLTK:BOOL=ON \
>
> > >
>
> > > -DOTB_USE_EXTERNAL_MUPARSER=ON \
>
> > >
>
> > > -DOTB_BUILD_TESTING:BOOL=OFF \
>
> > >
>
> > > -DOTB_BUILD_EXAMPLES:BOOL=OFF \
>
> > >
>
> > > -DOTB_BUILD_APPLICATIONS:BOOL=ON \
>
> > >
>
> > > -DOTB_WRAP_PYTHON:BOOL=ON \
>
> > >
>
> > > -DPYTHON_EXECUTABLE=/usr/bin/python2 \
>
> > >
>
> > > -DPYTHON_LIBRARIES=/usr/lib/libpython2.7.so \
>
> > >
>
> > > -DPYTHON_INCLUDE_PATH=/usr/include/python2.7/ \
>
> > >
>
> > > -DOTB_INSTALL_PYTHON_DIR=/usr/lib/python2.7/site-packages/ \
>
> > >
>
> > > -DOTB_USE_EXTERNAL_ITK=OFF \
>
> > >
>
> > > -DOTB_WRAP_QT:BOOL=ON \
>
> > >
>
> > > -DOTB_USE_VISU_GUI:BOOL=ON
>
> > >
>
> >
>
> > One thing I had to say here is there some dependencies are removed in
>
> > latest OTB. Gettext, libLAS, FLTK(moved to Monterverdi).
>
> >
>
> > So you no longer need -DOTB_USE_LIBLAS:BOOL=ON \
> -DOTB_USE_GETTEXT:BOOL=OFF
>
> > \ -DOTB_USE_EXTERNAL_FLTK:BOOL=ON \ -DOTB_USE_VISU_GUI:BOOL=ON
>
> >
>
> >
>
> > Thanks for reporting.
>
> >
>
> >
>
> > >
>
> > > Thank you for your time,
>
> > >
>
> > >
>
> > >
>
> > > Argyros
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > Argyros Argyridis
>
> > >
>
> > >
>
> > >
>
> > > Phd Student at National Technical University of Athens,
>
> > >
>
> > >
>
> > >
>
> > > Remote Sensing Laboratory
>
> > >
>
> > >
>
> > >
>
> > > Member of OSGeo
>
> > >
>
> > >
>
> > >
>
> > > http://users.ntua.gr/arargyr/
>
> > >
>
> > >
>
> > >
>
> > > tel. +30 210 772 2684
>
> > >
>
> > >
>
> > >
>
> > > --
>
> > > --
>
> > > Check the OTB FAQ at
>
> > > http://www.orfeo-toolbox.org/FAQ.html
>
> > >
>
> > > You received this message because you are subscribed to the Google
>
> > > Groups "otb-users" group.
>
> > > To post to this group, send email to [email protected]
>
> > > To unsubscribe from this group, send email to
>
> > > [email protected]
>
> > > For more options, visit this group at
>
> > > http://groups.google.com/group/otb-users?hl=en
>
> > > ---
>
> > > You received this message because you are subscribed to the Google
> Groups
>
> > > "otb-users" group.
>
> > > To unsubscribe from this group and stop receiving emails from it, send
> an
>
> > > email to [email protected].
>
> > > For more options, visit https://groups.google.com/d/optout.
>
> > >
>
> >
>
> >
>
> >
>
> > --
>
> > Regards,
>
> > Rashad
>
> >
>
> > --
>
> > --
>
> > Check the OTB FAQ at
>
> > http://www.orfeo-toolbox.org/FAQ.html
>
> >
>
> > You received this message because you are subscribed to the Google
>
> > Groups "otb-users" group.
>
> > To post to this group, send email to [email protected]
>
> > To unsubscribe from this group, send email to
>
> > [email protected]
>
> > For more options, visit this group at
>
> > http://groups.google.com/group/otb-users?hl=en
>
> > ---
>
> > You received this message because you are subscribed to the Google
> Groups "otb-users" group.
>
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
>
> > For more options, visit https://groups.google.com/d/optout.
>
> Argyros Argyridis
>
>
>
> Phd Student at National Technical University of Athens,
>
>
>
> Remote Sensing Laboratory
>
>
>
> Member of OSGeo
>
>
>
> http://users.ntua.gr/arargyr/
>
>
>
> tel. +30 210 772 2684
>
> --
> --
> Check the OTB FAQ at
> http://www.orfeo-toolbox.org/FAQ.html
>
> You received this message because you are subscribed to the Google
> Groups "otb-users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/otb-users?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "otb-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
   Rashad

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to