README 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. BUILD ON LINUX/MAC OSX:
  2. ./configure
  3. make
  4. BUILD on LINUX with system libs:
  5. ./configure --with-zlib=yes --with-zlib-ldflags="`pkg-config zlib --libs`" --with-libxml=yes --with-libxml-cppflags="`pkg-config libxml-2.0 --cflags`" --with-libxml-ldflags="`pkg-config libxml-2.0 --libs`"
  6. BUILD ON WINDOWS:
  7. * Optionally generate project files: c:\Python26\python.exe generate.py --include Makefile.xml win32-*-msvc-*
  8. * Open win32\solution.sln in Visual Studio.
  9. RELASE in a ZIP file (win32):
  10. c:\Python26\python.exe generate.py --include Makefile.xml --package libopc-sdk-0.0.1.zip win32-release-msvc
  11. RELASE in a ZIP file (MaxOSX):
  12. python generate.py --include Makefile.xml --package libopc-sdk-0.0.1.zip --config-dir=build/config darwin-release-gcc
  13. PACKAGE LINUX
  14. ./generate.py --with-zlib=yes --with-zlib-ldflags="`pkg-config zlib --libs`" --with-libxml=yes --with-libxml-cppflags="`pkg-config libxml-2.0 --cflags`" --with-libxml-ldflags="`pkg-config libxml-2.0 --libs`" --package usr.zip --config-dir=build --include Makefile.xml linux-debug-gcc-i686
  15. PACKAGE DEBIAN [http://www.debian.org/doc/manuals/maint-guide/index.en.html]
  16. 1) Adjust config/libopc.pc VERSION
  17. Adjust debian/changelog
  18. 2) ./configure --with-zlib=yes --with-zlib-ldflags="`pkg-config zlib --libs`" --with-libxml=yes --with-libxml-cppflags="`pkg-config libxml-2.0 --cflags`" --with-libxml-ldflags="`pkg-config libxml-2.0 --libs`" --arch=any
  19. DESTDIR=`pwd`/build/linux-debug-gcc-any/install make install
  20. 3) dpkg-buildpackage
  21. or
  22. 3b) dpkg-buildpackage -B --no-sign
  23. 4) lintian -i -I --show-overrides ../libopc_0.0.2_i386.changes | less