home Forums # Technical Support Compiling for an iPad physical devide

This topic contains 3 replies, has 3 voices, and was last updated by  Juan Rada-Vilela 2 years, 12 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
• Author
Posts
• #964

JuanRS
Participant

Hi Juan,
Firs of all, thanks a lot for your answer to my other question.

I have an issue trying to install my application into a iPad Retina (A6x)(32bits).
When I use the simulator all works fine, but when I try to compile and install the application into my iPad the next error arises:

ld: warning: ignoring file /usr/local/fuzzylite/bin_32bits/libfuzzylite-static.a, file was built for archive which is not the architecture being linked (armv7s): /usr/local/fuzzylite/bin_32bits/libfuzzylite-static.a
Undefined symbols for architecture armv7s:
“vtable for fl::Maximum”, referenced from:
fl::Maximum::Maximum() in FuzzyLogic.o
……
……

I have build fuzzylite-static.a for i386 and x86_64 and for both, and they compile and link ok for the simulator but not for the physical device.

Is there any option I’m missing?

#965

Keymaster

Hi JuanRS,

I am not familiar with iOS at all, but I believe you do not need fuzzylite-static.a in your iPad because your application is being statically linked. Hence, your application and fuzzylite library are both be contained within the same executable file.

Can you try excluding fuzzylite-static.a from installation to the iPad? Perhaps it could be some sort of security error? I am also guessing that you are not compiling your application within the iPad, but just copying to the iPad.

#968

Fishwaldo
Participant

ipads/iphones are arm based devices – So unless you have updated the cmakelists.txt files to cross compile for arm, then its going to fail.

(as to how to do that – Sorry, I’m a cmake noob!)

(The simulator is intel based – so it will work fine)

#972