libretro / FBNeo

FBNeo - We are Team FBNeo.
https://neo-source.com
Other
228 stars 136 forks source link

Error compiling with mingw64 in windows #1041

Closed crashGG closed 1 year ago

crashGG commented 1 year ago

OS: win10 x64

build tools: MinGW GCC 11.2.0 MinGW GNU binutils 2.37 MinGW lld 13.0.0 MinGW Python 3.9.7 MinGW CMake 3.22.1 MSYS2 GNU make 4.3

Issue:

When I compile with mingw64 in windows, I get an error at this step

20230313165335 How can I go on?

barbudreadmon commented 1 year ago

No idea, i am not a windows user, all i can tell is that building this core on windows works, otherwise it wouldn't be available from the buildbot. I suppose your environment isn't set properly, hard to say more with so few information, you aren't even mentioning the command you are using to build this. You should be using something like this :

make -j4 -C src/burner/libretro/ platform=win CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++
crashGG commented 1 year ago

No idea, i am not a windows user, all i can tell is that building this core on windows works, otherwise it wouldn't be available from the buildbot. I suppose your environment isn't set properly, hard to say more with so few information, you aren't even mentioning the command you are using to build this. You should be using something like this :

make -j4 -C src/burner/libretro/ platform=win CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++

I used the parameters you provided to compile, after a long wait, the prompt now is this: 20230313234510

fatal: not a git repository (or any of the parent directories): .git cut: the delimiter must be a single character Try 'cut --help' for more information. expr: syntax error: unexpected argument '-dumpversion'

Use a temporary file to hold the list of objects, as it can exceed windows shell command limits

process_begin: CreateProcess(NULL, # Use a temporary file to hold the list of objects, as it can exceed windows shell command limits, ...) failed. make (e=2): The system can not find the file specified. makefile:745: recipe for target 'fbneo_libretro.dll' failed make: *** [fbneo_libretro.dll] Error 2

barbudreadmon commented 1 year ago

Your environment seems utterly broken, i can't help you. It seems to me like x86_64-w64-mingw32-gcc and x86_64-w64-mingw32-g++ aren't even available. Maybe you need to add .exe at their end ? Or maybe they aren't in your PATH ?

crashGG commented 1 year ago

https://stackoverflow.com/questions/33674973/makefile-error-make-e-2-the-system-cannot-find-the-file-specified Through this document, I added the running path to make.exe. Now the problem is solved.

Thank you for your help.