Pelles C forum

C language => Graphics programming => Topic started by: kyga116 on June 10, 2025, 09:57:09 PM

Title: Building Graphics Libraries?
Post by: kyga116 on June 10, 2025, 09:57:09 PM
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?
Title: Re: Building Graphics Libraries?
Post by: John Z on June 11, 2025, 10:18:44 AM
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
Title: Re: Building Graphics Libraries?
Post by: TimoVJL on June 11, 2025, 01:26:02 PM
If GLEW comes with project files for msvc, try to import it with Import Microsoft Visual Studio Solution...
Title: Re: Building Graphics Libraries?
Post by: kyga116 on June 12, 2025, 06:29:29 PM
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.
Title: Re: Building Graphics Libraries?
Post by: TimoVJL on June 12, 2025, 09:27:01 PM
It's Enable Microsoft extensions in compiler options

PrjChkMS Add-In (https://forum.pellesc.de/index.php?msg=28128)
Title: Re: Building Graphics Libraries?
Post by: kyga116 on June 17, 2025, 07:56:12 PM
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?
Title: Re: Building Graphics Libraries?
Post by: TimoVJL on June 18, 2025, 03:00:37 AM
Sadly a that static library belongs to msvc.
Title: Re: Building Graphics Libraries?
Post by: kyga116 on June 18, 2025, 05:30:27 AM
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.  ::)
Title: Re: Building Graphics Libraries?
Post by: TimoVJL on June 18, 2025, 01:20:47 PM
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.