On Wed, Dec 16, 2015 at 10:43 AM, Guillaume Pasero <[email protected]>
wrote:

> Hi,
>
> SuperBuild on MacOS can be tricky because some system libs have
> dependencies that are also part of superbuild. In this case, it is curl
> that drags CFNetwork. As a first step, try to disable curl
> (OTB_USE_CURL=OFF).
>

This is becoming a recurring issue on mac users.  I propose the following.

use RPATH, install_name_tool in superbuild for Mac.
after installing each external library a macro can be called to update the
dylib's rpath via install_name_tool. For those dependencies that are from
system are ignored. I think that can be easily checked with the value of
USE_SYSTEM_* variables.

This way we can ensure the linking is done properly whether or no there
exists same dylib in the disk somewhere. In  this case it is sqlite3.

@Firman,
Can you file a bug on bugs.orfeo-toolbox.org  ?

I will push a fix following that.



>
> Regards,
> Guillaume
>
> On 12/16/2015 10:22 AM, Firman Hadi wrote:
> > Dear all,
> >
> > I have been trying to install Orfeo Toolbox in my Mac (Yosemite) using
> > Superbuild.
> > I think I have reached the final step of installation but it was failed.
> > It seems the error is related to dynamic link.
> > Please advise me on how to solve the problem.
> > I attach the error log for your reference.
> >
> >
> > Thanks.
> >
> > Best regards,
> >
> > Firman Hadi
> > Research Specialist
> > Geoinformatics Center
> > Asian Institute of Technology
> >
> > ============================
> >
> > Scanning dependencies of target QT4
> > [ 95%] Built target QT4
> > Scanning dependencies of target OTB
> > [ 95%] Creating directories for 'OTB'
> > [ 96%] No download step for 'OTB'
> > [ 97%] No patch step for 'OTB'
> > [ 97%] No update step for 'OTB'
> > [ 97%] Performing configure step for 'OTB'
> > dyld: Library not loaded: /usr/lib/libsqlite3.dylib
> >   Referenced from:
> > /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
> >   Reason: Incompatible library version: CFNetwork requires version 9.0.0
> > or later, but libsqlite3.dylib provides version 0.0.0
> > /bin/sh: line 1: 18065 Trace/BPT trap: 5       env
> > DYLD_LIBRARY_PATH=/usr/local/lib:
> > /usr/local/Cellar/cmake/3.2.3/bin/cmake
> >
> -C/Users/firmanhadi/OTB/OTB_SOURCE/Superbuild/build/OTB/tmp/OTB-cache.cmake
> > "-GUnix Makefiles" /Users/firmanhadi/OTB/OTB_SOURCE/Superbuild/..
> > make[2]: *** [OTB/src/OTB-stamp/OTB-configure] Error 133
> > make[1]: *** [CMakeFiles/OTB.dir/all] Error 2
> > make: *** [all] Error 2
> >
> > --
> > --
> > 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]
> > <mailto:[email protected]>.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> <www.c-s.fr>    *Guillaume PASERO*
> Ingénieur d'études et développement
> *Business Unit E-SPACE & Geo Information*
> <https://thor.si.c-s.fr/blogs/cs-blogs-business/>*- Département
> APPLICATIONS*
>
> *CS Systèmes d'Information*
> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
> 31506 Toulouse Cedex 05 - FRANCE
> +33 561 17 64 21 - [email protected]
>
> --
> --
> 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