Re: Compiling source code
This is a bit of an old post
but I decided that since it's been so long since a GLC Player release, I'll write a comprehensive guide on how to compile version 2.3.2 based on my experience. Note that I've already provided a download for my build elsewhere on this forum. That said, here's how I accomplished it with much trial and error.
Install Qt 4.8.6 (this takes awhile) and mingw32 (4.2.0) MUST be 32-bit
You should add C:\Qt\4.8.6\bin and C:\mingw32\bin to the PATH environment variable in Windows. How to do this varies depending based on the Windows version you use. Always be careful when editing the Path environment variable or you may cause your computer to be unable to boot (This issue is resolved in Windows 10) !
Use GLC_lib 2.5.0 https://github.com/laumaya/GLC_lib/tree/Version_2_5_0
(hit Download ZIP and extract it to a new folder)
In GLC_lib open example11/glc_declaritiveitem.cpp in Notepad and remove the line that says #include <glu.h> near the beginning of the file
There may be a more efficient way of doing this, idk. I had to do it this way because I wanted a release build and debug is default. In an command line (elevated if it isn't working) in GLC_lib's folder do:
You may wish to run this from a .bat file. The resulting folder will automatically appear at C:\ and be called GLC_lib-2.5
The result should contain a "lib" folder and "examples" folder.If that doesn't work,
the official method is this, but I think it generates a debug build, which you don't want:
Add this to the Path environment variable in Windows: C:\GLC_lib-2.5\lib\
And create a new environment variable called GLC_LIB_DIR containing this: C:\GLC_lib-2.5\
Before you proceed, you may wish to try running the examples to make sure GLC_lib is working as expected. Go into C:/GLC-lib_2.5/examples and run the examples to test it. If you get a missing dll error, check that you added GLC_lib to the path variable properly in the last step.
Use the latest git for GLC_Player (currently the only version on there) https://github.com/laumaya/GLC_Player
In a command line in GLC_Player's folder do:
After the process is done, the exe will appear in a newly created folder called release inside GLC Player's source folder. If you need to make a change simply delete the contents of the debug/release folders and do make release in the command line again. (no need to repeat qmake)
The entire procedure takes about an hour, once you've gotten into the swing of things.
I've noticed Transparent screenshots save with a white background, MultiShots crash the program (transparent MultiShots would be super handy), and Instance Object can crash the program as well. In addition some transparent textures are black at first until you lower the transparency from 255 to 254. 3ds export works flawlessly though. If needed, revertto an old version, make changes, save as .album format, open the .album in new GLC and export.