[Ves] Integration of kiwi and vtk frameworks with rubymotion requiring pcl.framework for i386

Michaël Albert monstermick at gmail.com
Tue Aug 6 16:12:24 EDT 2013


Hi !

Thanks for your comments.

The problem raises just before the compilation of the app : the builder
generates metadata for the library.  And I think the metadata are generated
using i386 architecture only.

So the command line called by the builder is :

*RUBYOPT='' /usr/bin/gen_bridge_metadata --format complete --no-64-bit
--cflags " -arch armv7 -isysroot
/Applications/Development/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-miphoneos-version-min=6.1
-D__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__=60100 -I.   .... (all the
header files) -o (the name of the output file)*
*
*
*The error from gen_bridge_metadata is *

### _parse("i386-apple-darwin12.4
")
cc=/Applications/Development/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
defaultIncludePath=/usr/lib/gcc/i686-apple-darwin11/4.2.1/include
In file included from <built-in>:136:
In file included from <command line>:129:
In file included from
/Applications/Development/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from
/Applications/Development/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
In file included from
/Applications/Development/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/sys/types.h:78:
/Applications/Development/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/machine/types.h:35:10:
fatal error: 'i386/types.h' file not found
In file included from <built-in>:136:
In file included from <command line>:129:
In file included from
/Applications/Development/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from
/Applications/Development/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
In file included from
/Applications/Development/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/sys/types.h:78:
/Applications/Development/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/machine/types.h:35:10:
fatal error: 'i386/types.h' file not found
Exception `RuntimeError' at
/System/Library/BridgeSupport/ruby-1.8/bridgesupportparser.rb:1050 -
__9_OxQk__4__3_0_F_ not found
Received exception: __9_OxQk__4__3_0_F_ not found:
/System/Library/BridgeSupport/ruby-1.8/bridgesupportparser.rb:1050:in
`parse'
/System/Library/BridgeSupport/ruby-1.8/bridgesupportparser.rb:1050:in
`_parse'
/System/Library/BridgeSupport/ruby-1.8/bridgesupportparser.rb:1276:in
`parse'
/usr/bin/gen_bridge_metadata:589:in `_parse'
/usr/bin/gen_bridge_metadata:734:in `parse'
/usr/bin/gen_bridge_metadata:2283
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:791:in
`initialize'
/usr/bin/gen_bridge_metadata:2214:in `new'
/usr/bin/gen_bridge_metadata:2214
__9_OxQk__4__3_0_F_ not found


So I think the only viable solution is the build a pcl.framework containing
both architectures.

Michael



On Tue, Aug 6, 2013 at 5:14 PM, Aashish Chaudhary <
aashish.chaudhary at kitware.com> wrote:

> What exactly is the error message you are getting? Can you post it here?
>
> - Aashish
>
>
>
> On Tue, Aug 6, 2013 at 11:11 AM, Casey Goodlett <
> casey.goodlett at kitware.com> wrote:
>
>> Hi Michael,
>>
>> I might not understand your problem exactly.  The armv7 binaries in the
>> pcl framework should be what you need for device support.  I would have
>> expected you to have trouble with the simulator if i386 support is lacking.
>>
>> The kiwi framework supports both architectures and you can look at the
>> file CMake/makeFramework.sh for an example of the the simulator and device
>> builds are combined into a framework.
>>
>> Hope that helps.
>>
>> --
>> Casey B. Goodlett, Ph.D.
>> R&D Engineer
>> Kitware, Inc. - North Carolina Office
>> http://www.kitware.com
>>
>> _______________________________________________
>> Ves mailing list
>> Ves at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>
>>
>
>
> --
> | Aashish Chaudhary
> | R&D Engineer
> | Kitware Inc.
> | www.kitware.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20130806/c98a5a3a/attachment-0002.html>


More information about the Ves mailing list