Author Topic: GLFW, Code Blocks is broken :'(  (Read 5761 times)

Offline DarkPizzaX

  • Single posting newcomer
  • *
  • Posts: 2
GLFW, Code Blocks is broken :'(
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: GLFW, Code Blocks is broken :'(
« Reply #1 on: January 16, 2013, 12:57:24 am »
make --help?
(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!]

Offline DarkPizzaX

  • Single posting newcomer
  • *
  • Posts: 2
Re: GLFW, Code Blocks is broken :'(
« Reply #2 on: January 16, 2013, 01:37:37 am »
What do you mean?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: GLFW, Code Blocks is broken :'(
« Reply #3 on: January 16, 2013, 02:42:11 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.
Quote
warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Code
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.
« Last Edit: January 16, 2013, 03:02:06 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org