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