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

Author Topic: problem with installation - g++.exe: error: bin/Debug/obj/Platform/Win32/Icon.re  (Read 1253 times)

0 Members and 1 Guest are viewing this topic.

glinkapiotr

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
hello
i have a problem, i follow the readme file and get this result after debugging:
  src/Platform/Win32/Icon.rc
'mode' is not recognized as an internal or external command,
operable program or batch file.
windres.exe: preprocessing failed.
mingw32-make[1]: [Makefile:320: bin/Debug/obj/Platform/Win32/Icon.res] Error 1 (ignored)

⇛  Linking: bin/Debug/sfml.exe
g++.exe: error: bin/Debug/obj/Platform/Win32/Icon.res: No such file or directory
mingw32-make[1]: *** [Makefile:351: bin/Debug/sfml.exe] Error 1
mingw32-make: *** [Makefile:259: all] Error 2

✘  Failed!
   Review the compile errors above.

The terminal process "C:\Program Files\Git\bin\bash.exe '-c', 'bash ./build.sh buildrun Debug vscode'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.


i have downloaded all the necessary software, but im a noob so might have done something wrong. When the git bash popup asks for allowing it, i allow it, and the debug returns the same error.

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
whats your operational system, version of SFML, code editor, compiler, etc?...
Visit my game site (and hopefully help funding it? )
Website | IndieDB

glinkapiotr

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Hi, yes, sorry.
i am using windows 7 with SP1 , 64bit
version of SFML was 2.5.1 as in the readme file
also using the mingw32 as in the readme file
as for the code editor i use visual studio code - i dont see any number of version but i downloaded it from this link: https://code.visualstudio.com/
as for compiler i use the VS Code terminal with git bash installed, although  i am not sure this is the answer you ask for.
In general i followed all the readme files.

Also i tried installing it for python via setup.py . in the license file:: PySFML - Python bindings for SFML
Copyright (c) 2012-2017, Jonathan De Wachter <dewachter.jonathan@gmail.com>
and it returns me this error:
$ python setup.py install
running install
running bdist_egg
running egg_info
writing src\pySFML.egg-info\PKG-INFO
writing dependency_links to src\pySFML.egg-info\dependency_links.txt
E:\Visual Studio\VC\Tools\MSVC\14.26.28801\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DSFML_STATIC=1 -Iinclude\Includes -IC:\Users\PC\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\PC\AppData\Local\Programs\Python\Python38-32\include -IC:\_code\libs\SFML-2.5.0\include -Ibuild\temp.win32-3.8\Release\include -IC:\_code\libs\SFML-2.5.0\include -Ibuild\temp.win32-3.8\Release\include -IC:\_code\libs\SFML-2.5.0\include -Ibuild\temp.win32-3.8\Release\include -IC:\_code\libs\SFML-2.5.0\include -Ibuild\temp.win32-3.8\Release\include -IC:\_code\libs\SFML-2.5.0\include -Ibuild\temp.win32-3.8\Release\include "-IE:\Visual Studio\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpsrc\sfml\system\system.cpp /Fobuild\temp.win32-3.8\Release\src\sfml\system\system.obj                                                                                                               
system.cpp
src\sfml\system\system.cpp(629): fatal error C1083: Cannot open include file: 'SFML/System.hpp': No such file or directory
error: command 'E:\\Visual Studio\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

i need this library for a coding tutorial, have been fighting it for about 5 hours yesterday and i`m a bit lost right now.


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11035
    • View Profile
    • development blog
    • Email
Do you need SFML the C++ library or pySFML the Pythong binding?

I highly recommend to try and solve one thing one step at a time.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/