Skip to content
cpd67 edited this page Aug 24, 2015 · 50 revisions

Welcome to the FAQ page! In here, you can ask whatever burning question you have in regards to the library.

Q: A test keeps crashing with the error "the font file could not be opened and read "! What do I do?

A: Are you in the bin folder of the tsgl folder? Some tests won't work unless you are in the bin folder. Specifically:

testBlurImage, testCalcPi, testCosineIntegral, testGetPixels, testGreyscale, testImage, testImageCart, testInverter, testMandelbrot, testPhilosophers, testProgressBar, testSpectrogram, testText, testTextCart, testTextTwo, testUnits

If the test that keeps crashing is in the list above, go into the bin folder and execute it from there.

Q: What is the maximum number of threads I can use in Windows?

A: You can only have up to 64 threads at a time in Windows.

Q: Why won't my tsgl Solution build in Windows?

A: Have you built the tsgl project first? You must build that first in order to create the lib file for TSGL. Then, you can build the entire Solution.

Q: Does TSGL have Debug messages in case things break?

A: In fact it does. Check out the Error.h file and you will see a commented out line:

//#define TSGL_DEBUG

Uncommenting out this line will turn on Debug messages for the TSGL library in case things break (font not loading, image not found, etc...).

Q: With which operating systems does TSGL work?

A: Good question! TSGL has been sucessfully tested on: Ubuntu 14.0.4 and Arch Linux, MacOS 10.9.5 (Wrangler) and Mac 10.10.x (Yosemite), using g++ 4.9 and 5.1. It has also been sucessfully tested on Windows 7 & Windows 10, using Visual Studio 2012 & Visual Studio 2013.

Q: How do I update the Doxygen?

A: I'm glad you asked! Follow this process (via terminal or command-line): 1). Navigate into the TSGL root directory (where the Makefile is).

2). Type "make cleandocs".

3). cd into the "docs" folder.

4). Type "git rm -r html".

5). cd back out of the "docs" folder (cd ..).

6). Type "make docs".

7). cd into the "docs" folder again.

8). Type "git add html".

9). Do a "git commit" inside of the docs folder.

10). Type "git push origin gh-pages".

11). cd back out of the "docs" folder.

12). Do a "git add docs".

13). Do a "git commit".

14). Type "git push origin master".

NOTE: This process is for people who have cloned the repository.

BIG NOTE: You need doxygen 1.8.6 in order to update the documentation correctly. Previous versions will cause a LOT of problems.

Clone this wiki locally