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

Author Topic: Cmake Will not proceed to make files[solved]  (Read 7493 times)

0 Members and 1 Guest are viewing this topic.

Andrew Cay

  • Newbie
  • *
  • Posts: 3
    • View Profile
Cmake Will not proceed to make files[solved]
« on: July 21, 2013, 08:35:38 pm »
I downloaded the source code because the binary MinGW files wouldn't work with my codeblocks, so I decided that created the files through CMake on CodeBlocks bin path would work.

The process at which I do things step by step is:
1. set PATH=%PATH%;C:\Program Files (x86)\CodeBlocks\MinGW\bin
2. cmake
3. cmake-gui       

Then in the cmake :
1. set the source code to where I have it: C:/Users/(user name)/Documents/SFML-2.0
2. set the build path to: C:/Users/(user name)/Documents/SFMLBinaries

Quote
Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe" is not
  able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/Users/(user name)/Documents/SFMLBinaries/CMakeFiles/CMakeTmp

 

  Run Build Command:C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe
  "cmTryCompileExec2862525127/fast"

  C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe -f
  CMakeFiles\cmTryCompileExec2862525127.dir\build.make
  CMakeFiles/cmTryCompileExec2862525127.dir/build

  mingw32-make.exe[1]: Entering directory
  `C:/Users/(user name)/Documents/SFMLBinaries/CMakeFiles/CMakeTmp'

  "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report
  C:\Users\(user name)\Documents\SFMLBinaries\CMakeFiles\CMakeTmp\CMakeFiles 1

  Building C object
  CMakeFiles/cmTryCompileExec2862525127.dir/testCCompiler.c.obj

  C:\PROGRA~2\CODEBL~1\MinGW\bin\gcc.exe -o
  CMakeFiles\cmTryCompileExec2862525127.dir\testCCompiler.c.obj -c
  C:\Users\(user name)\Documents\SFMLBinaries\CMakeFiles\CMakeTmp\testCCompiler.c


  mingw32-make.exe[1]: Leaving directory
  `C:/Users/(user name)/Documents/SFMLBinaries/CMakeFiles/CMakeTmp'

  mingw32-make.exe[1]: *** Access is denied.


  .  Stop.

  mingw32-make.exe: *** [cmTryCompileExec2862525127/fast] Error 2



edit:
Reason I had the title set too : "not proceed to make files" was because a lot of times the cmake would freeze looking for gcc.exe
« Last Edit: July 22, 2013, 12:51:17 am by Andrew Cay »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
AW: Cmake Will not proceed to make files
« Reply #1 on: July 21, 2013, 09:11:02 pm »
Try running the command promt as admin, it seems like an access problem. Otherwise make sure to update CMake and depending on your MinGW version (which is... ?), you might want to upgrade as well. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Andrew Cay

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Cmake Will not proceed to make files
« Reply #2 on: July 21, 2013, 09:25:26 pm »
Okay, I think you are right about the access problem. So I am going to try running the cmd.exe under administrator.


Also, I think my MinGW is 4.7.1  and Cmake is version 2.8.11.2

These need to be updated?

JUST RAN under administrator , same exact error popped up. It must be the path I'm trying to execute the binaries to, or I don't have the correct cmake/mingw versions. Right?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Cmake Will not proceed to make files
« Reply #3 on: July 22, 2013, 12:01:41 am »
Also, I think my MinGW is 4.7.1  and Cmake is version 2.8.11.2
No those should be fine.

JUST RAN under administrator , same exact error popped up. It must be the path I'm trying to execute the binaries to, or I don't have the correct cmake/mingw versions. Right?
Have you made sure to remove the previous CMake stuff from the build directory?

CMake is sometimes very fragile and might fail for no apparent reason. Maybe you could try reinstalling it.
Another test would be to run it in a different location.

If you can't get SFML to build you can always checkout my Nighlty Builds (got new ones from today), see the link below.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Andrew Cay

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Cmake Will not proceed to make files
« Reply #4 on: July 22, 2013, 12:44:18 am »
Thanks so much for the recomendation to your nightly builds. I had to install a "7zip" opener to get your files, but it was so worth it because now I got the screen with the green ball and window titled "sfml works"


You have no idea how happy i was hahaha, did kind of a shout and arms out for victory. I still wonder why Cmake wouldn't work on my computer though.. Huh.

Thanks for everything man!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Cmake Will not proceed to make files
« Reply #5 on: July 22, 2013, 01:40:27 am »
Thanks so much for the recomendation to your nightly builds. I had to install a "7zip" opener to get your files, but it was so worth it because now I got the screen with the green ball and window titled "sfml works"
Plus you got an awesome package application installed. 7zip has a very good compression algorithm and everything is free and open source! :P

You have no idea how happy i was hahaha, did kind of a shout and arms out for victory. I still wonder why Cmake wouldn't work on my computer though.. Huh.

Thanks for everything man!
You're mostly welcome! I'm always glad when people can actually make use of it! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/