Hi Julien, Thank you for your quick response! I just updated the OTB. it helps... but I have a similar error a little bit forward:
/Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/OGRAdapters/otbOGRHelpers.h:90:8: error: too few template arguments for class template 'vector' std::vector<char const*> m_raw; ^ /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/boost/type_traits/is_contiguous.h:42:75: note: template is declared here template <typename T, typename TAllocator> class vector; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ Greg ----- Original Message ----- From: "Julien Malik" <[email protected]> To: [email protected] Sent: Wednesday, February 5, 2014 3:04:01 PM Subject: Re: [otb-users] Installation/compilation problems with Mavericks Hi Gregoire, There is a better patch to do, but this should work and be perfectly valid : Edit around there : http://hg.orfeo-toolbox.org/OTB/file/a7c7dd526464/Code/UtilitiesAdapters/boost/type_traits/is_contiguous.h#l39 and replace the forward declaration by a raw #include (#include <vector>, #include <array>) Probably the same is needed for the boost classes juts after : http://hg.orfeo-toolbox.org/OTB/file/a7c7dd526464/Code/UtilitiesAdapters/boost/type_traits/is_contiguous.h#l45 It is a compiler issue. This compiler does not like template forward declaration. The actual class that causes the issue is not included in boost, this is an extension, that may be included into boost in the future. As to the "Unsupported architecture" issue with the macport recipe, I have no idea. Julien On 02/05/2014 02:51 PM, Grégoire MERCIER wrote: Hi everybody, I am installing OTB under Macos Maverick (gdal, cmake, fltk installed with mac port) and I have the following compilation problems. The first one is the following: [ 58%] Building CXX object Code/UtilitiesAdapters/OGRAdapters/CMakeFiles/OTBOGRAdapters.dir/otbGeometriesSet.cxx.o In file included from /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/OGRAdapters/otbGeometriesSet.cxx:22: In file included from /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/OGRAdapters/otbGeometriesSet.h:24: In file included from /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/OGRAdapters/otbOGRDataSourceWrapper.h:34: In file included from /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/OGRAdapters/otbOGRLayerWrapper.h:26: In file included from /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/OGRAdapters/otbOGRFeatureWrapper.h:24: In file included from /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/OGRAdapters/otbOGRFieldWrapper.h:206: In file included from /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/OGRAdapters/otbOGRFieldWrapper.txx:44: /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/OGRAdapters/otbOGRHelpers.h:90:8: error: too few template arguments for class template 'vector' std::vector<char const*> m_raw; ^ /Users/gregoiremercier/otb/otb-dev/OTB/Code/UtilitiesAdapters/boost/type_traits/is_contiguous.h:42:75: note: template is declared here template <typename T, typename TAllocator> class vector; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ I guess it is a compilation problem instead of an OGR installation problem (gdal is 1.10.1). I am using the g++ 4.2.1 version that comes with the last Xcode version (through a clang LLVM model) I compile for x86_64. It is not clear for me to know if there is a confusion with boost (I tried both internal and external) or a compilation mismatch with the C++0x standard... I have no idea to resolve it... Any help is welcome ;o) All the best Greg PS: I tried also to install the OTB through macport (despite it is the 3.18 and not the 3.20) it ends by: ---> Building orfeotoolbox Error: org.macports.build for port orfeotoolbox returned: command execution failed Please see the log file for port orfeotoolbox for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port orfeotoolbox failed and the end of the log file is: : info:build In file included from /usr/include/sys/_types.h:32: : info:build /usr/include/sys/cdefs.h:655:2: error: Unsupported architecture : info:build #error Unsupported architecture : info:build ^ : info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/work/OTB-3.18.1/CMake/GenerateConfigProperties.cpp:18: : info:build In file included from /usr/include/c++/4.2.1/cstdlib:49: : info:build In file included from /usr/include/c++/4.2.1/bits/c++config.h:41: : info:build In file included from /usr/include/c++/4.2.1/bits/os_defines.h:61: : info:build In file included from /usr/include/unistd.h:71: : info:build In file included from /usr/include/_types.h:27: : info:build In file included from /usr/include/sys/_types.h:33: : info:build /usr/include/machine/_types.h:34:2: error: architecture not supported : info:build #error architecture not supported : info:build ^ : info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/work/OTB-3.18.1/CMake/GenerateConfigProperties.cpp:18: : info:build In file included from /usr/include/c++/4.2.1/cstdlib:49: : info:build In file included from /usr/include/c++/4.2.1/bits/c++config.h:41: : info:build In file included from /usr/include/c++/4.2.1/bits/os_defines.h:61: : info:build In file included from /usr/include/unistd.h:71: : info:build In file included from /usr/include/_types.h:27: : info:build /usr/include/sys/_types.h:94:9: error: unknown type name '__int64_t' : info:build typedef __int64_t __darwin_blkcnt_t; /* total blocks */ : info:build ^ : info:build /usr/include/sys/_types.h:95:9: error: unknown type name '__int32_t' : info:build typedef __int32_t __darwin_blksize_t; /* preferred block size */ : info:build ^ : info:build /usr/include/sys/_types.h:96:9: error: unknown type name '__int32_t' : info:build typedef __int32_t __darwin_dev_t; /* dev_t */ : info:build ^ : info:build /usr/include/sys/_types.h:99:9: error: unknown type name '__uint32_t' : info:build typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */ : info:build ^ : info:build /usr/include/sys/_types.h:100:9: error: unknown type name '__uint32_t' : info:build typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/ : info:build ^ : info:build /usr/include/sys/_types.h:101:9: error: unknown type name '__uint64_t' : info:build typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */ : info:build ^ : info:build /usr/include/sys/_types.h:107:9: error: unknown type name '__darwin_natural_t' : info:build typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */ : info:build ^ : info:build /usr/include/sys/_types.h:109:9: error: unknown type name '__uint16_t' : info:build typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */ : info:build ^ : info:build /usr/include/sys/_types.h:110:9: error: unknown type name '__int64_t' : info:build typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */ : info:build ^ : info:build /usr/include/sys/_types.h:111:9: error: unknown type name '__int32_t' : info:build typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */ : info:build ^ : info:build /usr/include/sys/_types.h:131:9: error: unknown type name '__uint32_t' : info:build typedef __uint32_t __darwin_sigset_t; /* [???] signal set */ : info:build ^ : info:build /usr/include/sys/_types.h:132:9: error: unknown type name '__int32_t' : info:build typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */ : info:build ^ : info:build /usr/include/sys/_types.h:133:9: error: unknown type name '__uint32_t' : info:build typedef __uint32_t __darwin_uid_t; /* [???] user IDs */ : info:build ^ : info:build /usr/include/sys/_types.h:134:9: error: unknown type name '__uint32_t' : info:build typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */ : info:build ^ : info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/work/OTB-3.18.1/CMake/GenerateConfigProperties.cpp:18: : info:build In file included from /usr/include/c++/4.2.1/cstdlib:49: : info:build In file included from /usr/include/c++/4.2.1/bits/c++config.h:41: : info:build In file included from /usr/include/c++/4.2.1/bits/os_defines.h:61: : info:build In file included from /usr/include/unistd.h:75: : info:build /usr/include/sys/_types/_intptr_t.h:30:9: error: unknown type name '__darwin_intptr_t'; did you mean '__darwin_ino_t'? : info:build typedef __darwin_intptr_t intptr_t; : info:build ^ : info:build /usr/include/sys/_types.h:103:26: note: '__darwin_ino_t' declared here : info:build typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */ : info:build ^ : info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/work/OTB-3.18.1/CMake/GenerateConfigProperties.cpp:18: : info:build In file included from /usr/include/c++/4.2.1/cstdlib:49: : info:build In file included from /usr/include/c++/4.2.1/bits/c++config.h:41: : info:build In file included from /usr/include/c++/4.2.1/bits/os_defines.h:61: : info:build In file included from /usr/include/unistd.h:80: : info:build /usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean '__darwin_ino_t'? : info:build typedef __darwin_size_t size_t; : info:build ^ : info:build /usr/include/sys/_types.h:103:26: note: '__darwin_ino_t' declared here : info:build typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */ : info:build ^ : info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/work/OTB-3.18.1/CMake/GenerateConfigProperties.cpp:18: : info:build In file included from /usr/include/c++/4.2.1/cstdlib:49: : info:build In file included from /usr/include/c++/4.2.1/bits/c++config.h:41: : info:build In file included from /usr/include/c++/4.2.1/bits/os_defines.h:61: : info:build In file included from /usr/include/unistd.h:81: : info:build /usr/include/sys/_types/_ssize_t.h:30:9: error: unknown type name '__darwin_ssize_t' : info:build typedef __darwin_ssize_t ssize_t; : info:build ^ : info:build fatal error: too many errors emitted, stopping now [-ferror-limit=] : info:build 20 errors generated. : info:build make[2]: *** [CMakeFiles/GenerateConfigProperties.dir/CMake/GenerateConfigProperties.cpp.o] Error 1 : info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/work/OTB-3.18.1/build' : info:build make[1]: *** [CMakeFiles/GenerateConfigProperties.dir/all] Error 2 : info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/work/OTB-3.18.1/build' : info:build make: *** [all] Error 2 : info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/work/OTB-3.18.1/build' : info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/work/OTB-3.18.1/build" && /usr/bin/make -w all : info:build Exit code: 2 :error:build org.macports.build for port orfeotoolbox returned: command execution failed :debug:build Error code: CHILDSTATUS 6811 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" : info:build Warning: targets not executed for orfeotoolbox: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port orfeotoolbox for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_orfeotoolbox/orfeotoolbox/main.log -- ************************************************** Institut Mines-Telecom / Telecom Bretagne CNRS UMR 6285 Lab-STICC, equipe CID Technopole Brest-Iroise; CS 83818; F-29238 Brest cedex - France Tel : +33 (0)2 29 00 10 59 Fax : +33 (0)2 29 00 10 98 ************************************************* -- -- 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/groups/opt_out . -- -- 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/groups/opt_out . -- -- 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/groups/opt_out.
