News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

GLFW, Code Blocks is broken :'(

Started by DarkPizzaX, January 16, 2013, 12:22:56 AM

Previous topic - Next topic

DarkPizzaX

I was getting problems installing GLFW into Code Blocks but I realized I had to compile it. But when I go to where GLFW is and type "compile make mgw" (what the wiki told me to do: http://wiki.codeblocks.org/index.php?title=Using_GLFW_with_Code::Blocks) it tells me ""mgw" is not a valid Makefile suffix". What's happening?

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

DarkPizzaX


stahta01

#3
Quote from: DarkPizzaX on January 16, 2013, 12:22:56 AM
I was getting problems installing GLFW into Code Blocks but I realized I had to compile it. But when I go to where GLFW is and type "compile make mgw" (what the wiki told me to do: http://wiki.codeblocks.org/index.php?title=Using_GLFW_with_Code::Blocks) it tells me ""mgw" is not a valid Makefile suffix". What's happening?

You likely failed to extract the zip file correctly; or you exacted it to somewhere that has issues running the compile.bat file correctly.
It is also possible it might be a permission issue. In that it might require admin rights for the batch file to work. Edit: I did not need to use Admin to get it to work for me. I am on Windows 7 SP1 32-Bit
Also, make sure you are in the right working directory.

The other poster suggest learning about make command options; not sure where he was heading.

Step 3 in the linked directions worked perfectly for me. I did set the path to the MinGW installation I wished to use.
Note: I did get many warning that might cause the following steps to fail. My Compiler was 4.7 version which caused the warnings.
Quotewarning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

SET PATH=C:\Program Files\CodeBlocks_12_11\MinGW\bin;%PATH%

cd /d V:\SourceCode\OpenSourceCode\Libs\GUI\glfw-2.5

compile make mgw



Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]