OSDN Git Service

import 0.9.4
[handbrake-jp/handbrake-jp.git] / test / BUILDSHARED
1 To test the HandBrake dylib on MacOs X issue the following commands:
2 ===================================================================
3
4 cp ../libhb/libhb.dylib .
5 gcc -I../libhb -L. -lhb test.c -o test -arch i386 -arch ppc
6 install_name_tool -change /usr/local/lib/libhb.dylib @executable_path/libhb.dylib test
7
8 Validate that the test Binary is really using the shared library
9
10 otool -L test
11
12 ------------------------------------------------------------------------
13
14 To test the HandBrake .so on Linux issue the following commands:
15 ================================================================
16
17 cp ../libhb/libhb.so .
18 gcc -I../libhb -L. -lhb test.c -o test -lz -lpthread
19
20 Validate that the test Binary is really using the shared library
21
22 ldd test
23
24 ------------------------------------------------------------------------
25
26 To test the HandBrake .dll on cygwin issue the following commands:
27 ==================================================================
28
29 cp ../libhb/libhb.dll .
30 gcc -I../libhb -L. -lhb test.c -o test -lz -lpthread
31
32 The resulting binary test should depend on the cygwin dll and the hb dll.
33
34 I works like that but wasn't tested yet outside of cygwin.
35
36 ------------------------------------------------------------------------