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

Author Topic: Building SFML2 Workspace(Codeblocks) error  (Read 4200 times)

0 Members and 1 Guest are viewing this topic.

knox_rolley

  • Newbie
  • *
  • Posts: 5
    • View Profile
Building SFML2 Workspace(Codeblocks) error
« on: June 13, 2011, 03:10:58 am »
_On windows
_downloaded cmake / sfml2 and followed tutorial

had some trouble with the configuration step, fixed that with the PATH variable (included ....mingw\bin)

selected codeblocks makefile in generator option

OK, finished configuring, didnt change the check boxes (that is, build_shared_libs check, cmake_build_type Release, static_std_libs not checked)

configured properly, generated properly

then i opened the workspace, which i rooted to SFML/SFML2-build

it was there, but building workspace (target: all) brings up this:

Code: [Select]
-------------- Build: all in SFML ---------------

Using makefile: Makefile
Execution of 'make.exe -s -f Makefile all' in 'C:\SFML\SFML 2-build' failed.
Nothing to be done.


not fun!

it seems pretty straightforward (to anyone with half a brain for this kind of error), but i dont even know where to start. make.exe, if somewhere in my sfml2, is pretty well hidden. i googled and checked the forums but i couldnt find a similar case

this irritated me to the point of giving up my sfml forum lurking and registering, which will probably have been a good idea anyway when i get to more difficult projects that simple tutorials or guides or practice cant help with

so can someone help me out?  :(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Building SFML2 Workspace(Codeblocks) error
« Reply #1 on: June 13, 2011, 10:25:02 am »
Have you tried to compile one of the other targets (sfml-system for example)?

Anyway, generating projects for IDEs is not really useful in this context, because you won't edit the projects or the sources. You just need something to compile, and a makefile is all you need for this. So I recommend to generate a MinGW makefile instead.
Laurent Gomila - SFML developer

knox_rolley

  • Newbie
  • *
  • Posts: 5
    • View Profile
Building SFML2 Workspace(Codeblocks) error
« Reply #2 on: June 13, 2011, 01:34:34 pm »
I see

so i can scrap the IDE without losing any comfort? alright sounds good, MakeFiles it is-

to answer your question, yes i tried with system, main, install, recache, and a few more but they all game the same message.. except the word 'all' was in both cases substituted by the corresponding target ('system' or 'install' or what have ye).

i will do that, in fact i already have, but to not get ahead of myself i'll explain: i tried generating a makefile but then i didnt understand how to actually use it. im not much game at the command prompt, with a little luck and an old thread, i got the paths right but then it wouldnt let me make a mingw32-make or a cmake makefile, or whatever it has to make
i tried a few of them, based on which section of the tutorial i was interpreting to be the right command, with the paths
i think cmake brought up a list of commands regarding cmake and workspaces for ides, but thats about as close as i got

so i guess i'm a problem shorter in this world if i get the execution of the makefile right, cmake brought up commands, mingw32-make didnt work out for me, cmake-gui brought up the generator and generated, but no dice getting it to open a makefile..

by the way, thanks for the fast reply! checking the tutorial again now


Edit: >mingw32-make install

gives: MINGW32-MAKE: *** No rule to make target 'install'. Stop.

that should be more concise
im googling at the moment but with little luck

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Building SFML2 Workspace(Codeblocks) error
« Reply #3 on: June 13, 2011, 05:46:10 pm »
What happens if you just type "mingw32-make"?
Laurent Gomila - SFML developer

knox_rolley

  • Newbie
  • *
  • Posts: 5
    • View Profile
Building SFML2 Workspace(Codeblocks) error
« Reply #4 on: June 13, 2011, 11:03:52 pm »
>mingw32-make
MINGW32-MAKE: *** No targets specified and no makefile found. Stop.

this is the result of 'mingw32-make'

Erased rest of post and:
Edit:

Fixed the thing!
i gave up on the makefiles for a while ( :( ) but here's the good news:

i gave the codeblocks workspace another go to see if i was dealing with the same problem and checked the
Settings:
Compiler and debugger...:
Toolchain executables:

Here, my Make Program option was: make.exe

i recalled a few threads and changing it to "mingw32-make.exe" came to mind

after changing it, and building workspace:

Code: [Select]
Linking CXX static library ..\..\..\lib\libsfml-main.a
[100%]
Built target sfml-main
Process terminated with status 0 (2 minutes, 58 seconds)
0 errors, 0 warnings


:):)

it took a few minutes to get to 100% but while writing this i was watching it link everything and it went perfectly!!

thanks for the help ! wouldn't have kept trying to get to the bottom of this without it, so merci Laurent. will be posting again for sure, what with the sfml 2 doc / tutorial learning process ahead. for future reference, i should probably figure out how to make a stupid makefile hehe

posva

  • Full Member
  • ***
  • Posts: 118
  • Feed me pls
    • View Profile
    • Posva Dev Blog
Building SFML2 Workspace(Codeblocks) error
« Reply #5 on: June 30, 2011, 09:30:23 pm »
I also had this problem but when i changed the make.exe like you did i still get an error:
Code: [Select]
-------------- Build: all in SFML ---------------

Using makefile: Makefile
CMake Warning at CMakeLists.txt:11 (project):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Warning at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/Platform/Windows-cl.cmake:28 (ENABLE_LANGUAGE):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:60 (INCLUDE)
  CMakeLists.txt:11 (project)
CMake Warning at CMakeLists.txt:2 (PROJECT):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.
CMake Warning at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/Platform/Windows-cl.cmake:28 (ENABLE_LANGUAGE):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:60 (INCLUDE)
  CMakeLists.txt:2 (PROJECT)
CMake Error: your C compiler: "cl" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler "cl" is not able to compile a simple test program.
  It fails with the following output:
   
 
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:11 (project)
CMake Error: your C compiler: "cl" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "cl" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
mingw32-make.exe: *** [cmake_check_build_system] Error 1
-- Check for CL compiler version
-- Check for CL compiler version - failed
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - yes
-- Using FREE VC TOOLS, NO DEBUG available
-- Check for working C compiler: cl
-- Check for working C compiler: cl -- broken
-- Configuring incomplete, errors occurred!
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
 


And i can't understand what i have to make...
EDIT: BTW: running mingw32-make from the cmd give me the same error

EDIT2: nevermind i finnally followed a VideoTutorial made by SFMCoder:

 

anything