Building on Linux / MacOSX

# Check out the source
svn co https://libopc.svn.codeplex.com/svn libopc
# or if you have a user name
svn co --username yourname https://libopc.svn.codeplex.com/svn libopc
# Go into the libopc directory
cd libopc 
# Configure libopc; you will need GNU make and Pyhton >=2.6.1 for this.
./configure
# Compile using make
make
# Libraries and executables are stored in build/os-debug-gcc/static/*. Test with
./build/os-debug-gcc/static/opc_dump test_docs/OOXMLI1.docx
# or
./build/os-debug-gcc/static/opc_dump test_docs/OOXMLI4.docx
# opc_zipread will open the passed zip file and deflate all the content internally.
# Then try the release version:
./configure --target=release
make
./build/os-release-gcc/static/opc_dump  test_docs/OOXMLI1.docx
./build/os-release-gcc/static/opc_dump  test_docs/OOXMLI4.docx
# Happy hacking!

Building on Windows

  1. Download the source: http://libopc.codeplex.com/SourceControl/list/changesets# and then "Latest Version" -> "Download".
  2. Open the Visual Studio solution win32\solution.sln using e.g. Visual Studio C++ 2010 Express which is free http://www.microsoft.com/express/Downloads/#2010-Visual-CPP.
  3. Build the solution.
  4. Happy hacking!



Building for iOS

# Debug build; Make sure the paths in Makefile.platform.xml are set correctly to your SDK root.
./configure --target=debug --os=ios4
make
# Release build; Make sure the paths in Makefile.platform.xml are set correctly to your SDK root.
./configure --target=release --os=ios4
make

Building for Android

# Make sure the paths in Makefile.platform.xml are set correctly to your SDK root.
./configure --os=android9
make

Build using system zlib and system libxml2 on MacOSX

./configure --with-zlib=yes --with-zlib-ldflags="-lz" --with-libxml=yes --with-libxml-cppflags="-I/usr/include/libxml2/" --with-libxml-ldflags="-lxml2"
make


Last edited Jun 13, 2011 at 12:40 PM by flr, version 2

Comments

bbostock May 21, 2012 at 10:46 AM 
Hi, I am also looking for some example app using the android build. I posted a request in the discussions section on April 24 but no replies yet 8>((.

masoodshaik Feb 27, 2012 at 6:07 AM 
Hai

First i downloaded libopc. Next i followed the procedure for building it for android as mentioned here.
Now using this how can i build applications in android. Appreciate if you could provide any examples.