godotengine / godotengine/godot-cpp

Having issues building on windows using mingw

Open
#742 0 comments 0 reactions 0 assignees View on GitHub
bug needs testing platform:windows
Dominant language
C++
Stars
2.7k
Forks
809
Avg merge
1d 3h
Merged PRs (30d)
8

Description

I am using the command "scons platform=windows generate_bindings=yes use_mingw=yes" with no success.

This is what the cmd prompt looks like when I run that command:
![image](https://user-images.githubusercontent.com/7925583/165002202-b23d54a8-47b8-41ec-a2b7-06328ac463c6.png)

I am using Python 3.7.6
and
Scons Version 4.3.0
![image](https://user-images.githubusercontent.com/7925583/165002382-35110d58-bf64-42f3-99c3-ed20dc3f88a7.png)

I am using the header files from
https://github.com/godotengine/godot-headers

I was able to get Scons to compile a HelloWorld project using this SConsctruct file.
```
TOOLS = ['mingw']
COMPILER_PATH = 'C:/MinGW/bin'

env = Environment(tools=TOOLS)

env.PrependENVPath('PATH', COMPILER_PATH)

env.Program('TestApp', 'main.cpp')

```
![image](https://user-images.githubusercontent.com/7925583/165002714-9693d0e3-7fa5-4da8-aac1-745c5612f3a8.png)

Any help would be greatly appreciated! Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.