Building Godot from a fork problems

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By henriquelalves
:warning: Old Version Published before Godot 3 was released.

I’m currently getting a termination error when building an os_unix file:

drivers/unix/os_unix_global_settings_path.gen.cpp:3:44: error: no ‘String OS_Unix::get_global_settings_path() const’ member function declared in class ‘OS_Unix’

Funny thing is, this only happens on my git fork - building from a cloned godot git works just fine. And I just hard-resetted my fork to the upstream master, so supposedly it should be the same. I guess I’m missing a configuration file, but I have no idea what to do besides deleting my fork, creating another fork from the main git and doing it again.

Also, I already build-cleaned it using “scons platform=x11 -c”, but building after that didn’t work either.

Is there a “correct” way to update to upstream/master without breaking the fork? Or is that a configuration file that I’m really missing?

:bust_in_silhouette: Reply From: henriquelalves

The problem solution: Compilation error on Linux · Issue #13076 · godotengine/godot · GitHub

Deleting the file (rm -f drivers/unix/os_unix_global_settings_path*) solves the issue just fine. I guess what happened was that the file was generated before I updated the git repo to upstream.

Just for future reference: I didn’t test it, but running git clean -xdf should clean your repository from all non-versioned files.

erpfi | 2017-12-12 20:05