![]() |
![]() |
![]() |
liboscats Reference Manual | ![]() |
---|
OSCATS binaries for Windows are available online. If you want to build OSCATS from source, it is recommended to use the MinGW/MSYS environment.
To build the Perl Glib module, you may need to supply the Glib
libraries and location (output from pkg-config --libs gobject-2.0
gthread-2.0
) in the LDLOADLIBS
variable on the command
line of Makefile.PL
in order to link properly. For
example:
perl Makefile.PL "LDLOADLIBS=\"-Lc:/msys/local/lib -lgobject-2.0 -lgthread-2.0 -glib-2.0 -lintl\""
On some systems, the OSCATS module will fail to load due to a missing
"dll.exp.dll
". To work around, when building the Glib
module, after executing perl Makefile.PL
but before
make
, edit the Makefile
replacing all
instances of dll.exp
with Glib
.
You will need a copy of the PHP source distribution in order to
compile the OSCATS PHP bindings. Set the PHP_CFLAGS
environment variable with the correct path to the source header files, for
example:
PHP_CFLAGS="-Ic:/php-5.2.14 -Ic:/php-5.2.14/main -Ic:/php-5.2.14/TSRM -Ic:/php-5.2.14/Zend -Ic:/php-5.2.14/ext -Ic:/php-5.2.14/ext/date/lib"
You may need to set PHP_EXTENSIONS_DIR
to PHP's
ext
directory. If configure
complains about PHP not being found, edit the PHP=
line in
bindings/php/Makefile
to point to your PHP executable
and execute make
from the bindings/php
directory manually.
There are a few changes that may need to be made to the PHP header
files. In Zend/zend_config.w32.h
and
TSRM/tsrm_config.w32.h
, remove the lines with
crtdbg.h
, and in main/win95nt.h
remove the uint, uling, and pid_t
typedefs. Moreover, GCC/libtool expect libraries to start with
lib
. So, make copies of
php_gtk2.dll
and php5.dll
named
libphp_gtk2.dll
and libphp5.dll
to
keep the linker happy.