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

Author Topic: [SOLVED][C++] Compiling SFML under Windows 7 with MinGW throws errors  (Read 8027 times)

0 Members and 1 Guest are viewing this topic.

Symphonym

  • Newbie
  • *
  • Posts: 32
    • View Profile
I'm currently trying to compile SFML on a school computer but now I'm stuck at some weird errors. I have done exatctly as you're supposed to do, use CMake, select MinGW Makefiles and go to the "Build Directory" and run  "mingw32-make" to compile SFML. However when running "mingw32-make" it gives a bunch of errors and stops:

Code: [Select]
C:\Users\Administratör\Desktop\CompiledSFML>mingw32-make
CMake Error: Target DependInfo.cmake file not found
Scanning dependencies of target sfml-system
CMake Error: Directory Information file not found
Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj
G__~1.EXE: error: @CMakeFiles/sfml-system.dir/includes_CXX.rsp: No such file or
directory
G__~1.EXE: error: C:\Users\Administrat¸r\Desktop\LaurentGomila-SFML-86897a8\src\
SFML\System\Clock.cpp: No such file or directory
G__~1.EXE: fatal error: no input files
compilation terminated.
src\SFML\System\CMakeFiles\sfml-system.dir\build.make:57: recipe for target 'src
/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj' failed
mingw32-make[2]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj]
Error 1
CMakeFiles\Makefile2:107: recipe for target 'src/SFML/System/CMakeFiles/sfml-sys
tem.dir/all' failed
mingw32-make[1]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/all] Error 2
Makefile:115: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:\Users\Administratör\Desktop\CompiledSFML>

Any idea what may be causing this to happen?
« Last Edit: April 19, 2013, 10:50:14 am by Symphonym »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [C++] Compiling SFML under Windows 7 with MinGW throws errors
« Reply #1 on: April 19, 2013, 10:05:07 am »
Are you sure that the CMake configuration step succeeded? Have you tried to restart from scratch?
Laurent Gomila - SFML developer

Symphonym

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [C++] Compiling SFML under Windows 7 with MinGW throws errors
« Reply #2 on: April 19, 2013, 10:10:58 am »
Are you sure that the CMake configuration step succeeded? Have you tried to restart from scratch?

Yes, I'm pretty sure the CMake succeeded, and yes I have tried redoing it all again (I'll do it once more and show my results below).

Using the CMake-gui and pressing "configure" after selecing MinGW makefiles on the popup window:
Code: [Select]
The C compiler identification is GNU 4.7.2
The CXX compiler identification is GNU 4.7.2
Check for working C compiler: C:/Program Files/MinGW/bin/gcc.exe
Check for working C compiler: C:/Program Files/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Program Files/MinGW/bin/g++.exe
Check for working CXX compiler: C:/Program Files/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of void*
Check size of void* - done
Found OpenGL: opengl32 
Found Freetype: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libfreetype.a (found version "2.4.4")
Found GLEW: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libglew.a 
Found JPEG: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libjpeg.a 
Found OpenAL: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libopenal32.a 
Found SNDFILE: C:/Users/Administratör/Desktop/LaurentGomila-SFML-86897a8/extlibs/libs-mingw/x86/libsndfile.a 
Configuring done

Pressing "configure" again and then "generate"
Code: [Select]
Configuring done
Generating done

Going to the directory where I wanted to "build the binaries" and running "mingw32-make":
Code: [Select]
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Med ensamrätt.

C:\Users\Administratör>cd Desktop

C:\Users\Administratör\Desktop>cd CompiledSFML

C:\Users\Administratör\Desktop\CompiledSFML>mingw32-make
CMake Error: Target DependInfo.cmake file not found
Scanning dependencies of target sfml-system
CMake Error: Directory Information file not found
Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj
G__~1.EXE: error: @CMakeFiles/sfml-system.dir/includes_CXX.rsp: No such file or
directory
G__~1.EXE: error: C:\Users\Administrat¸r\Desktop\LaurentGomila-SFML-86897a8\src\
SFML\System\Clock.cpp: No such file or directory
G__~1.EXE: fatal error: no input files
compilation terminated.
src\SFML\System\CMakeFiles\sfml-system.dir\build.make:57: recipe for target 'src
/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj' failed
mingw32-make[2]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj]
Error 1
CMakeFiles\Makefile2:107: recipe for target 'src/SFML/System/CMakeFiles/sfml-sys
tem.dir/all' failed
mingw32-make[1]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/all] Error 2
Makefile:115: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:\Users\Administratör\Desktop\CompiledSFML>

And there it is again :/

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11027
    • View Profile
    • development blog
    • Email
Re: [C++] Compiling SFML under Windows 7 with MinGW throws errors
« Reply #3 on: April 19, 2013, 10:27:02 am »
Have you tried reinstalling CMake again? I've seen a few broken CMake setups in the past... ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [C++] Compiling SFML under Windows 7 with MinGW throws errors
« Reply #4 on: April 19, 2013, 10:31:31 am »
Try to generate your build files in a path which doesn't contain special characters (like 'ö').
Laurent Gomila - SFML developer

Symphonym

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [C++] Compiling SFML under Windows 7 with MinGW throws errors
« Reply #5 on: April 19, 2013, 10:45:30 am »
Try to generate your build files in a path which doesn't contain special characters (like 'ö').

Indeed, I just looked over the error and noticed the lack of "ö"'s in the path. I'm pretty sure this is the error, I just tried redownloading the SFML source and CMake as exploit3r suggested, but I'll try changing the path now which should hopefully fix it, I'll make an edit to this post if it works.

EDIT: SUCCESS!
« Last Edit: April 19, 2013, 10:49:55 am by Symphonym »