How to rebuild library

Building on generic UNIX

Invoke following commands:

 $ ./autogen.sh
 $ ./configure

For 32-bit system:

 $ make

For 64-bit system:

 $ CFLAGS="-m64" make

Install into /usr/local:

 $ sudo make install

Also generate docs:

 $ make doxygen-doc 

Compiled library - /usr/local/lib/libxidcusb.so, header file - /usr/local/include/xidcusb.h

Packaging deb

Requirement: 64-bit debian system, gcc, autotools, dpkg-dev.

First of all, increase version number with:

 $ ./version.sh 0.42.0

Run packaging script:

 $ ./builddeb.sh 0.42.0

Packaging rpm

Requirement: 64-bit RPM-based system (Fedora, Red Hat, SUSE), gcc, autotools.

First of all, increase version number with:

 $ ./version.sh 0.42.0

Run packaging script:

 $ ./buildrpm.sh 0.42.0

Buliding on Darwin

Invoke following commands:

 $ ./autogen.sh
 $ ./configure

For 32-bit system:

 $ make

For 64-bit system:

 $ make CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64"

Install into /usr/local:

 $ sudo make install

Compiled library - /usr/local/lib/libxidcusb.dylib, header file - /usr/local/include/xidcusb.h

Note that only 32- or 64-bit library can be installed at the same time.

Buliding framework on Mac OS X

Buillding Mac OS X Framework Library is supported.

Invoke command:

 $ xcodebuild

or open and build libxidusb.xcodeproj with XCode 3.1

Compiled framework libxidcusb.framework can be found at 'dist/<version>/macosx'

Buliding on Windows

Ensure that version number is already increased with version.sh script.

Open and build with Visual Studio 2005/2008 solution libxidcusb.sln.

Compiled dll libxidcusb.dll can be found at 'Release/Win32' or 'Release/x64'

Alternatively, you can run from Visual Studio command prompt batch-file build.bat. It will build all 32- and 64-bit libraries and push them to 'dist/<version>/win32' or 'dist/<version>/x64' directories.

Source code access

XIDCUSB source codes are given under special request.