Hello,

On Tue, Nov 4, 2014 at 2:21 AM, <[email protected]> wrote:

> Hi,
>
> I'm building OTB newest version on Fedora 20, and I get the following
> message during configuring phase:
>
>  CMake Warning at CMake/ImportLibKML.cmake:22 (message):
>    There is a known issue which does not allow to use internal libKML with
>    external ITK in OTB.You might consider using an external LibKML.  See
>    http://bugs.orfeo-toolbox.org/view.php?id=896 for details
>  Call Stack (most recent call first):
>    CMakeLists.txt:220 (include)
>

This warning was introduced with ITK 4.5 which uses internal version of
expat that conflicts with system installed expat.

since the release of ITK 4.6. it is possible to use internal libkml in OTB
with external ITK (ignoring this error message)

See this comment on bug 879 [1].

[1] http://bugs.orfeo-toolbox.org/view.php?id=879#c2405

For your problem,
try build ITK 4.6 with ITK_USE_SYSTEM_EXPAT=ON
rebuild OTB with internal LibKML




> I have already built external ITK. Now I downloaded LibKML 1.2.0 and I'm
> configuring it (as far as I understand this message suggests to do so). But
> I get the following weird message:
>

The below is all related to LibKML and not OTB. But as another person who
share frustration on building LibKML, I will comment on this.



> configure: WARNING: You have SWIG 2.0.11 installed, but libkml requires at
> least SWIG 1.3.35. The bindings will not be built.
>

libkml 1.2.0 is too old and libraries such as GDAL uses libkml 1.3.0 which
is not released.  there is only one issue with libkml 1.3.0 which is
development is highly inactive.

>
> (seriously?)
>

Yeah!! don't get started.

After swig, there is boost, expat, uriparser,gtest, zlib, minizip in
thirdparty and libkml sources.. So if you dont have those installed in your
system. it simply uses an old version..

>
> If I try to ignore and run make, I get
>
> [...]
>
> file_posix.cc: In static member function ‘static bool
> kmlbase::File::Delete(const string&)’:
> file_posix.cc:56:33: error: ‘unlink’ was not declared in this scope
>    return unlink(filepath.c_str()) == 0;
>                                  ^
> file_posix.cc: In static member function ‘static bool
> kmlbase::File::CreateNewTempFile(std::string*)’:
> file_posix.cc:68:11: error: ‘close’ was not declared in this scope
>    close(fd);
>            ^
> file_posix.cc: In static member function ‘static bool
> kmlbase::File::Delete(const string&)’:
> file_posix.cc:57:1: error: control reaches end of non-void function
> [-Werror=return-type]
>  }
>

This is related to missing header. I remember seeing a patch in their
tracker some time ago.

>  ^
> cc1plus: all warnings being treated as errors
> make[4]: *** [file_posix.lo] Error 1
> make[4]: Leaving directory `/home/madi/gis/libkml-1.2.0/src/kml/base'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/madi/gis/libkml-1.2.0/src/kml'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/madi/gis/libkml-1.2.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/madi/gis/libkml-1.2.0'
> make: *** [all] Error 2
>
>
> Do you have any pointers how to bypass this and get OTB built on Fedora 20?
>
> Thank you very much in advance
>
> Margherita
>
> --
> --
> 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