Building Graphics Libraries?

Started by kyga116, June 10, 2025, 09:57:09 PM

Previous topic - Next topic

kyga116

What is the preferred method of building GLFW and GLEW on Pelles C?

From my limited research, it sounds like cmake is not compatible with Pelles, and I'd rather stay away from any GNU tools if possible (for personal reasons). On this forum I've seen installers being made for these libraries, how is this being accomplished?

John Z

Hi kyga116,

No cmake but there is a pomake to use.

Possible GLEW, GLFW help for you here:
https://forum.pellesc.de/index.php?topic=6861.msg25864#msg25864

and maybe here:
https://forum.pellesc.de/index.php?topic=5402.msg20740#msg20740

There are also threads, some fairly recently, on batch file building using Pelle C

John Z

TimoVJL

#2
If GLEW comes with project files for msvc, try to import it with Import Microsoft Visual Studio Solution...
May the source be with you

kyga116

After I posted this I was able to get GLFW and GLEW working with the binaries from their respective websites. But I still want to try to build them from source eventually.

I'm not sure if these work completely yet, I was just able to create window so far. I am getting a bunch of warnings saying that I have to use option /Ze if I want to use the dllimport function (required by GLFW). I'm assuming /Ze is a compiler option, but I'm not sure how to use it.

TimoVJL

#4
It's Enable Microsoft extensions in compiler options

PrjChkMS Add-In
May the source be with you

kyga116

I was able to get rid of that in the compiler options. There's an "Enable Microsoft extensions" checkbox.

Now I'm getting a missing library error: LIBCMT.lib
Anyone know where this thing is supposed to come from?

TimoVJL

Sadly a that static library belongs to msvc.
May the source be with you

kyga116

Well, I couldn't get GLEW to work after two days of trying. I tried the online Glad generator and I was up and running in 5 minutes.  ::)

TimoVJL

Just try harder, in the way that many of programmers have done in these years with Pelles C.
Once i tried to help compile Harbour with Pelles C, useless for me, but just to test, how C compiler variants differs.
I am now totally retired, so only cases, that i still see interesting, i try to help.
May the source be with you