summaryrefslogtreecommitdiffstats
path: root/test/BUILDSHARED
blob: a2f015555f15781607544fc8b45fc2ad51f8029d (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 MediaFork dylib on MacOs X issue the following commands:
===================================================================

cp ../libmediafork/libmediafork.dylib .
gcc -I../libmediafork -L. -lmediafork test.c -o test -arch i386 -arch ppc
install_name_tool -change /usr/local/lib/libmediafork.dylib @executable_path/libmediafork.dylib test

Validate that the test Binary is really using the shared library

otool -L test

------------------------------------------------------------------------

To test the Mediafork .so on Linux issue the following commands:
================================================================

cp ../libmediafork/libmediafork.so .
gcc -I../libmediafork -L. -lmediafork test.c -o test -lz -lpthread

Validate that the test Binary is really using the shared library

ldd test

------------------------------------------------------------------------

To test the MediaFork .dll on cygwin issue the following commands:
==================================================================

cp ../libmediafork/libmediafork.dll .
gcc -I../libmediafork -L. -lmediafork test.c -o test -lz -lpthread

The resulting binary test should depend on the cygwin dll and the mediafork dll.

I works like that but wasn't tested yet outside of cygwin.

------------------------------------------------------------------------