How to build flite test project for windows 8?

230 views Asked by At

I tried the C example in the documentation, but I can't make it work. I am not sure what files do I need in the include and lib directories and how to set the FLITEDIR variable because I am using Windows 8.1 and VS2015. In example:

gcc -Wall -g -o flite_test flite_test.c -I$FLITEDIR/include -L$FLITEDIR/lib -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite -lm

I tried

gcc -Wall -g -o flite_test flite_test.c -IE:\flite\include -LE:\flite\lib -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite -lm

I built the flite vcxproj for Release and I got an fliteDll.pdb file and some cmu.obj files. I also buit the project for Debug and I got a flite.lib and cst.obj files. I am a beginner programmer. Can you tell me what to do?

1

There are 1 answers

11
Nikolay Shmyrev On BEST ANSWER

gcc is for Linux, you simply need to follow Windows build process:

  1. Create a VS2015 project
  2. Add C code flite_test.c into it
  3. In project properties add include path to flite libraries
  4. In project properties in linker configure linking to flite.lib
  5. Compile VS2015 project and run

For more details see the walkthrough on creating and using DLL libraries in Visual Studio