Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Trying and failing to get SFML2 to build for Code::Blocks  (Read 2567 times)

0 Members and 1 Guest are viewing this topic.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Trying and failing to get SFML2 to build for Code::Blocks
« on: February 19, 2012, 08:39:57 pm »
I have no clue why it is so hard for me to get SFML2 up and running but this is getting rather annoying for me. No matter what I do at some point or another I end up with errors that stop me from being able to use SFML2.

This time I'm getting this error when trying to build SFML2 in code blocks:

Code: [Select]

-------------- Build: all in SFML ---------------

Using makefile: Makefile
Execution of 'make.exe -s -f Makefile all' in 'D:\SFMLLibraries\SFML2p0Things\SFML2p\Builds\CB' failed.
Nothing to be done.





It won't let me build the Library at all. :(

This is driving me nuts. I've got CMake, MinGW, and Code::Blocks all in my Path Variable and CMake finds everything so I have no clue what's going on. :(
I have many ideas but need the help of others to find way to make use of them.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Trying and failing to get SFML2 to build for Code::Blocks
« Reply #1 on: February 19, 2012, 08:42:16 pm »
Don't generate Code::Blocks projects, use makefiles.
Laurent Gomila - SFML developer

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Trying and failing to get SFML2 to build for Code::Blocks
« Reply #2 on: February 19, 2012, 08:45:56 pm »
Not sure how to just generate the make file(s)....  :?:

Hopefully this time I can get SFML2 up and running. :)

What setting in Code::Blocks or CMake do I use just to get the make files? Haven't done this number before.
I have many ideas but need the help of others to find way to make use of them.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Trying and failing to get SFML2 to build for Code::Blocks
« Reply #3 on: February 19, 2012, 08:49:04 pm »
When you configure the project with CMake, choose the "MinGW Makefiles" generator.
Laurent Gomila - SFML developer

mateandmetal

  • Full Member
  • ***
  • Posts: 171
  • The bird is the word
    • View Profile
    • my blog
- Mate (beverage) addict
- Heavy metal addict _lml
- SFML 2 addict
- My first (and free) game: BichingISH!

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Trying and failing to get SFML2 to build for Code::Blocks
« Reply #5 on: February 19, 2012, 09:23:32 pm »
Quote from: "mateandmetal"
http://sfmlcoder.wordpress.com/2011/06/16/building-sfml-2-0-with-mingw-make/

 8)


I would use the Command Line if I could get it to go to the next line. I'm very clueless in that area.  

__________
I went and built the Make Files but there's nothing to use to build the libraries for some reason.

I'm quite clueless at the moment for some reason.
I have many ideas but need the help of others to find way to make use of them.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Trying and failing to get SFML2 to build for Code::Blocks
« Reply #6 on: February 19, 2012, 09:57:42 pm »
http://i.imgur.com/YJKg9.png


Here's what I'm seeing at the moment.

I've built the make files but I'm clueless as the how I'm going to build the libraries without any project.

Edit: V
Found something rather interesting deep in the forum that seems to be letting me build but I'm not sure what the outcome is going to be since it is taking forever to build but at least it is building. :)

http://www.sfml-dev.org/forum/viewtopic.php?p=33100&sid=3b5c0f2ad31782fc0c97221e8536d731
I have many ideas but need the help of others to find way to make use of them.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Trying and failing to get SFML2 to build for Code::Blocks
« Reply #7 on: February 19, 2012, 10:56:51 pm »
Have you read the tutorial? Everything's explained.
Laurent Gomila - SFML developer

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Trying and failing to get SFML2 to build for Code::Blocks
« Reply #8 on: February 19, 2012, 11:49:36 pm »
I've read the tutorials and I guess I must have missed something. Oh well, things happen.


Also I've got SFML2 up and running now. :) :) :) :o
I have many ideas but need the help of others to find way to make use of them.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Trying and failing to get SFML2 to build for Code::Blocks
« Reply #9 on: February 20, 2012, 08:02:44 am »
Quote
I've read the tutorials and I guess I must have missed something

Yes, this part:
Quote
If you generated a makefile, open a command shell and execute the make command corresponding to your environment. For example, run "nmake" if you generated a NMake (Visual C++) makefile, "mingw32-make" if you generated a MinGW (gcc) makefile, or simply "make" if you generated a Linux makefile.
Note: on Windows, the make program (nmake or mingw32-make) may not be accessible. If it's the case, don't forget to add it to your PATH environment variable; see the explanations at the beginning of the "Configuring your SFML build" section for more details.
Laurent Gomila - SFML developer

 

anything