[Ves] Crosscompile for iOS 7 including arm64

Benedikt Huss benedikt.huss at gmail.com
Tue Feb 11 03:24:08 EST 2014


I'm unable to build the current master with your patch. Error:

CMake Error at /Applications/CMake
2.8-12.app/Contents/share/cmake-2.8/Modules/CheckTypeSize.cmake:140
(message):

  CHECK_TYPE_SIZE found different results, consider setting

  CMAKE_OSX_ARCHITECTURES or CMAKE_TRY_COMPILE_OSX_ARCHITECTURES to one or
no

  architecture !

Call Stack (most recent call first):

  /Applications/CMake
2.8-12.app/Contents/share/cmake-2.8/Modules/CheckTypeSize.cmake:174
(__check_type_size_impl)

  CMake/vtkTestTypes.cmake:13 (CHECK_TYPE_SIZE)

  CMakeLists.txt:235 (include)


2014-02-10 16:24 GMT+01:00 Casey Goodlett <casey.goodlett at kitware.com>:

> Sorry I take the back with current master + the attached patch I can build
> arm64 support (configuring CURL and libarchive to be OFF)
>
>
>
>
> On Mon, Feb 10, 2014 at 9:35 AM, Casey Goodlett <
> casey.goodlett at kitware.com> wrote:
>
>> Beneditk,
>>
>> This is caused by setting the architectures in the CMAKE_CXX_FLAGS flags
>> rather than using CMAKE_OSX_ARCHITECTURES variable.
>>
>> That said I have not seen a successful build on arm64 yet so there may
>> still be problems.
>>
>>
>> On Mon, Feb 10, 2014 at 8:07 AM, Benedikt Huss <benedikt.huss at gmail.com>wrote:
>>
>>> Hi have disabled curl, but there are still errors:
>>>
>>> CMake Error at /Applications/CMake
>>> 2.8-12.app/Contents/share/cmake-2.8/Modules/CheckTypeSize.cmake:140
>>> (message):
>>>
>>>   CHECK_TYPE_SIZE found different results, consider setting
>>>
>>>   CMAKE_OSX_ARCHITECTURES or CMAKE_TRY_COMPILE_OSX_ARCHITECTURES to one
>>> or no
>>>
>>>   architecture !
>>>
>>> Call Stack (most recent call first):
>>>
>>>   /Applications/CMake
>>> 2.8-12.app/Contents/share/cmake-2.8/Modules/CheckTypeSize.cmake:174
>>> (__check_type_size_impl)
>>>
>>>   ThirdParty/tiff/vtktiff/CMakeLists.txt:103 (CHECK_TYPE_SIZE)
>>>
>>>
>>> And yes, I'm on master.
>>>
>>>
>>> 2014-02-07 15:06 GMT+01:00 Casey Goodlett <casey.goodlett at kitware.com>:
>>>
>>>  I think you can fix that particular problem by updating the curl
>>>> version in the superbuild to the latest version from
>>>> https://github.com/bagder/curl.  However, I have not had success
>>>> compiling curl for armv7;armv7s;arm64.  More detailed fixes to the curl
>>>> build are needed.
>>>>
>>>> Can you disable curl support and work with the KiwiSimple example?
>>>> CURL is only needed for some of the features in the full KiwiViewer
>>>> application and you can develop VES/Kiwi applications without it
>>>>
>>>> Otherwise you can skip arm64 support.
>>>>
>>>> There are some alternate build scripts for curl on iOS you might try
>>>> https://github.com/brunodecarvalho/curl-ios-build-scripts
>>>>
>>>> Let us know if that works for you.
>>>>
>>>> --
>>>> Casey B. Goodlett, Ph.D.
>>>> R&D Engineer
>>>> Kitware, Inc. - North Carolina Office
>>>> http://www.kitware.com
>>>> (919) 969-6990 x310
>>>>
>>>
>>>
>>
>>
>> --
>> Casey B. Goodlett, Ph.D.
>> R&D Engineer
>> Kitware, Inc. - North Carolina Office
>> http://www.kitware.com
>> (919) 969-6990 x310
>>
>
>
>
> --
> Casey B. Goodlett, Ph.D.
> R&D Engineer
> Kitware, Inc. - North Carolina Office
> http://www.kitware.com
> (919) 969-6990 x310
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20140211/b3dd8390/attachment-0003.html>


More information about the Ves mailing list