Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated make files are not compilable by MinGW #1156

Closed
vmirgorod opened this issue Sep 5, 2018 · 5 comments
Closed

Generated make files are not compilable by MinGW #1156

vmirgorod opened this issue Sep 5, 2018 · 5 comments

Comments

@vmirgorod
Copy link

Steps:

  1. Install MinGW
  2. Run premake5 gmake
  3. Run mingw32-make

Errors:
C:\Users\Slava\Documents\capto-sdk-cxx>mingw32-make CoreStatic clean
"==== Building CoreStatic (debug_x32) ===="
AssemblyTypes.cpp
Подпапка или файл obj\x32\Debug\CoreStatic уже существует.
CoreStatic.make:253: recipe for target 'obj/x32/Debug/CoreStatic/AssemblyTypes.o' failed
mingw32-make[1]: *** [obj/x32/Debug/CoreStatic/AssemblyTypes.o] Error 1
Makefile:40: recipe for target 'CoreStatic' failed
mingw32-make: *** [CoreStatic] Error 2

System message "Подпапка или файл obj\x32\Debug\CoreStatic уже существует." means that directory is already exist.

Apparently, instead of plain MKDIR (-p option is not supported on Windows) solution from there https://stackoverflow.com/questions/4165387/create-folder-with-batch-but-only-if-it-doesnt-already-exist should be used.

@samsinsane
Copy link
Member

#1111 might be of value to you? @tdesveauxPKFX would have a better idea than myself.

@tdesveauxPKFX
Copy link
Contributor

Looks to me more an issue like #1103.
Are you using alpha12 or a build from master?

@vmirgorod
Copy link
Author

I'm using alpha12

@tdesveauxPKFX
Copy link
Contributor

Nevermind, I noticed you are using the gmake action. Could you try with gmake2?
gmake2 is the action which will replace gmake in the future and it is somewhat more complete at the moment.

@vmirgorod
Copy link
Author

Yes it seems gmake2 action produces correct files!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants