# Compiling and Linking # # Download the Praat sources from www.praat.org. # Make sure you place them # (or a link) to them in '../sources_4600' or change the # PRAATDIR=../sources_4600 # line in the sgc/Makefile to point to the correct directory. # # SGC uses a Praat dynamic library, libpraat.so # or libpraat.dll. But Praat doesn't come in a # library format. So the first thing that is needed # is to construct the praatlib.so/dll # # Go to the Praat sources cd ../sources_4600 # # One of the existing makefiles is wrong, remove it cd GSL rm Makefile # Replace it with a better one wget http://uva.hobby-site.com/~skinkie/Makefile cd .. # Compile praat first, which means, select the correct # makefile.defs.* file from makefiles. Copy it to # sources_4600/makefile.defs, or link to it from # sources_4600/makefile.defs. # Then run make # After finishing that, create the library # (check whether all the directories are in the path, # they tend to change, eg, sources_4606 has an mp3 directory) # # For Linux etc 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 # For win: 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 # # That should be it. Don't despair when things don't work out the first time. # Just see who you can contact for help.