Compilation linking error when building for iOS
#1
Hi,

I am receiving an error during the linking phase when building for iOS.

I have followed the instructions in Readme.ios to the letter(twice) and am still getting the same error when building the XBMC-iOS target in xcode.

Code:
d: warning: ARM function not 4-byte aligned: __b_evaluation from /Users/newky2k/xbmc/lib/ffmpeg/libavcodec/libavcodec.a(simple_idct_arm.o)
ld: warning: ARM function not 4-byte aligned: __a_evaluation from /Users/newky2k/xbmc/lib/ffmpeg/libavcodec/libavcodec.a(simple_idct_arm.o)
ld: warning: ARM function not 4-byte aligned: __end_b_evaluation2 from /Users/newky2k/xbmc/lib/ffmpeg/libavcodec/libavcodec.a(simple_idct_arm.o)
ld: warning: ARM function not 4-byte aligned: __a_evaluation2 from /Users/newky2k/xbmc/lib/ffmpeg/libavcodec/libavcodec.a(simple_idct_arm.o)
ld: warning: ARM function not 4-byte aligned: __end_simple_idct_arm from /Users/newky2k/xbmc/lib/ffmpeg/libavcodec/libavcodec.a(simple_idct_arm.o)
Undefined symbols for architecture armv7:
  "JSONRPC::CProfilesOperations::GetProfiles(CStdStr<char> const&, JSONRPC::ITransportLayer*, JSONRPC::IClient*, CVariant const&, CVariant&)", referenced from:
      ___cxx_global_var_init9 in JSONServiceDescription.o
  "JSONRPC::CProfilesOperations::LoadProfile(CStdStr<char> const&, JSONRPC::ITransportLayer*, JSONRPC::IClient*, CVariant const&, CVariant&)", referenced from:
      ___cxx_global_var_init9 in JSONServiceDescription.o
  "JSONRPC::CProfilesOperations::GetCurrentProfile(CStdStr<char> const&, JSONRPC::ITransportLayer*, JSONRPC::IClient*, CVariant const&, CVariant&)", referenced from:
      ___cxx_global_var_init9 in JSONServiceDescription.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The only issue that i had during the "Install Cross libs and runtime environment" section was a problem with the dnssd.c file as detailed here.

http://questiontrack.com/compile-xbmc-fo...18223.html

Following the instructions here allow the make to complete and all other section completed without incident.

Xcode will compile the source code without errors(15 warnings) but as soon as it gets to the linking stage it fails with the above error.

I am running Xcode 4.6.3, iOS 6.1 and Mountain Lion 10.8.4. Compiler is the Default as set in the project "Apple LLVM Compiler 4.2"

Thanks in advance
Reply
#2
This was solved yesterday ... repull from git.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
If you had to patch anything for getting it to compile the dnssd.c then please provide a patch or even better a pull request on github.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
Compilation linking error when building for iOS0