Update single word
[sgc.git] / HOWTO
blob8c978144fedfc10527fae7a3619908b88d9e6bf0
1 # Compiling and Linking
3 # Download the Praat sources from www.praat.org. 
4 # Make sure you place them
5 # (or a link) to them in '../sources_4600' or change the
6 # PRAATDIR=../sources_4600 
7 # line in the sgc/Makefile to point to the correct directory.
8
9 # SGC uses a Praat dynamic library, libpraat.so
10 # or libpraat.dll. But Praat doesn't come in a
11 # library format. So the first thing that is needed
12 # is to construct the praatlib.so/dll
14 # Go to the Praat sources
15 cd ../sources_4600
17 # One of the existing makefiles is wrong, remove it
18 cd GSL
19 rm Makefile
20 # Replace it with a better one
21 wget http://uva.hobby-site.com/~skinkie/Makefile
22 cd ..
24 # Compile praat first, which means, select the correct 
25 # makefile.defs.* file from makefiles. Copy it to 
26 # sources_4600/makefile.defs, or link to it from 
27 # sources_4600/makefile.defs. 
28 # Then run
29 make
31 # After finishing that, create the library
32 # (check whether all the directories are in the path, 
33 # they tend to change, eg, sources_4606 has an mp3 directory)
34
35 # For Linux etc
36 gcc -shared -o libpraat.so FFNet/*.o GSL/*.o LPC/*.o artsynth/*.o dwsys/*.o dwtools/*.o fon/*.o kar/*.o stat/*.o sys/*.o mp3/*.o FLAC/*.o  -L /usr/X11R6/lib -lXm -lXmu -lXp -lXt -lSM -lICE -lXext -lX11 -lm -lpthread
38 # For win:
39 mingw32-dllwrap --as=mingw32-as --export-all --driver-name mingw32-gcc -Wall -O2 -mms-bitfields --output-def libpraat.def --implib libpraat.a -o libpraat.dll FFNet/*.o GSL/*.o LPC/*.o artsynth/*.o dwsys/*.o dwtools/*.o fon/*.o kar/*.o stat/*.o sys/*.o FLAC/*.o mp3/*.o -L/opt/mingw32/usr/mingw32/usr/lib -lwinmm -lwsock32 -lcomctl32 -lshell32 -lgdi32 -lcomdlg32
41
42 # That should be it. Don't despair when things don't work out the first time.
43 # Just see who you can contact for help.