Libopc in ios 6

Jul 15, 2013 at 11:13 AM
Hello ,
First thanks for great lib.
I want to integrate it in my project which working on ios 6

Below what i did :
  1. I downloaded this libopc-sdk-ios-release-gcc-armv6-0.0.3.zip
  2. Extraxted it and added all folders (include, lib & bin) to my project.
  3. Added .a files (libmce.a, libopc.a, libplib.a, libxml.a & libzlib.a) in Build phases -> link binary with libraries
  4. In build setting i changed Header search paths to ./** recursive
  5. In build setting i added flags to Other linker flags for each .a file $[SRCROOT]/myproject/libopcIos/lib/libmce.a
    $[SRCROOT]/myproject/libopcIos/lib/libopc.a
    $[SRCROOT]/myproject/libopcIos/lib/libplib.a
    $[SRCROOT]/myproject/libopcIos/lib/libxml.a
    $[SRCROOT]/myproject/libopcIos/lib/libzlib.a
I have warning :
ld: warning: ld: warning: ignoring file openxml/libopcIos/lib/libopc.a, file was built for archive which is not the architecture being linked (i386): openxml/libopcIos/lib/libopc.aignoring file openxml/libopcIos/lib/libmce.a, file was built for archive which is not the architecture being linked (i386): openxml/libopcIos/lib/libmce.a
ld: warning: ignoring file openxml/libopcIos/lib/libplib.a, file was built for archive which is not the architecture being linked (i386): openxml/libopcIos/lib/libplib.a
ld: warning: ignoring file openxml/libopcIos/lib/libxml.a, file was built for archive which is not the architecture being linked (i386): openxml/libopcIos/lib/libxml.a
ld: warning: ignoring file openxml/libopcIos/lib/libzlib.a, file was built for archive which is not the architecture being linked (i386): openxml/libopcIos/lib/libzlib.a


Errors :
Undefined symbols for architecture i386:
"_opcContainerClose", referenced from:
  -[PViewController viewDidLoad] in PViewController.o
"_opcContainerCloseInputStream", referenced from:
  -[PViewController viewDidLoad] in PViewController.o
"_opcContainerOpen", referenced from:
  -[PViewController viewDidLoad] in PViewController.o
"_opcContainerOpenInputStream", referenced from:
  -[PViewController viewDidLoad] in PViewController.o
"_opcContainerReadInputStream", referenced from:
  -[PViewController viewDidLoad] in PViewController.o
"_opcFreeLibrary", referenced from:
  -[PViewController viewDidLoad] in PViewController.o
"_opcInitLibrary", referenced from:
  -[PViewController viewDidLoad] in PViewController.o
"_opcPartFind", referenced from:
  -[PViewController viewDidLoad] in PViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

-------------------------------------------------------------------------------------------

I tried to solve it first by build new .a files to be compatible with armv7
so i downloaded libopc project and build it with terminal with following commands :
./configure --arch="armv7"
make

but same warning & errors

So tell me wrong steps i did & missed steps Or tell me all steps to integrate this great lib on my project ( ios 6 )

Thanks
Aug 24, 2015 at 9:20 AM
Edited Aug 25, 2015 at 4:37 AM
Hello,

Thank you for giving me the hope to be able to process a word document.

I am currently facing the same problem as bakhoum. Any light on this would be of great help, Thank you.

Edit: The version of Xcode I'm using right now is 6.4 and iOS 8.4