godotengine / godotengine/godot

Thirdparty module compilation errors

Open
#100,485 1 comment 1 reaction 0 assignees View on GitHub
bug platform:windows topic:buildsystem
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproducible in: master
- Not reproducible in : 4.3-stable, 4.2-stable.

### System information

windows 10 - mingw - architecture "x86_64"

### Issue description

The engine compilation fails due to some thirds party modules linking error. It seems that the paths generation are broken. Infortunatly, I don't know the build system well enough to identify the source.

Modules impacted are (some others may also be impacted) :
- freetype
- glslang
- jolt
- mbedtls

### Compilation Command
```
D:\godot-master> scons deprecated=no target=editor
scons: Reading SConscript files ...
Automatically detected platform: windows
Auto-detected 12 CPU cores available for build parallelism. Using 11 cores by default. You can override it with the `-j` or `num_jobs` arguments.
Using MinGW, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
Checking for C header file mntent.h... (cached) no
NOTE: Performing initial build, progress percentage unavailable!
scons: done reading SConscript files.
scons: Building targets ...
```

### Compilation Output
```
scons: done reading SConscript files.
scons: Building targets ...
...
Linking Static Library modules\freetype\libfreetype_builtin.windows.editor.x86_64.a ...
ERROR: ar: thirdpartyfreetypesrcautofitautofit.windows.editor.x86_64.o: No such file or directory
...
Linking Static Library modules\libmodule_glslang.windows.editor.x86_64.a ...
ERROR: ar: thirdpartyglslangglslangGenericCodeGenCodeGen.windows.editor.x86_64.o: No such file or directory
...
Linking Static Library modules\libmodule_jolt_physics.windows.editor.x86_64.a ...
ERROR: ar: thirdpartyjolt_physicsJoltRegisterTypes.windows.editor.x86_64.o: No such file or directory
```

### Steps to reproduce

- On a Windows environment
- Clone project
- Switch to master branch
- Pull last changes
- Try to compile with `scons deprecated=no target=editor` command (I use default options)

### Minimal reproduction project (MRP)

N/A

Contributor guide

Open the contributing guide

Research direction

Reproduce the Windows x86_64 build with MinGW using `scons deprecated=no target=editor`, then inspect the SCons-generated paths for the affected freetype, glslang, jolt, and mbedtls modules. Compare the missing object paths reported by `ar` with the paths used during compilation; done means the editor build links successfully on master.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.