On Code::Blocks 20.03 I've setup a small C++/wxWidgets project with just a couple of source files and and include file. The project's file structure follows the usual 'src/include/obj/bin'. While building the g++ compilation commands show up the build log without any errors but the build ultimately fails with missing object files, which in fact are missing in the obj directory.
The full project file path was <home dir="">/Programação/<project>. By moving the project to another directory without accentuated characters in it the project can now be built. So having accentuated characters causes Code:Blocks to fail the build process, specifically the compilation part as the linking seems to work as errors are reported.
If I run the command lines shown on the build log on a command prompt in the project's root directory they run without any problems.
I'm running Kubuntu 18.04 LTS 64 bits.</project></home>
This is similar to ticket 800 and ticket 74
I can confirm this problem (in my case with a project having "ó" in the path) under Ubuntu 20.04.4 LTS. Locale is es_ES.UTF-8
With the strace command one can see that the application runs an empty command instead of the compilation command.
19766 execve("/bin/sh", ["/bin/sh", "-c", ""], 0x55be3183e030 / 73 vars / <unfinished ...=""></unfinished>
If this is not easy to fix, one workaround would be to not run the command like this:
"gcc -Wall -g -c \"/path_with_ó/Project/main.c\" -o obj/Debug/main.o"
but without path, since the CWD is already on directory /path_with_ó/Project.
Last edit: Manuel Gomez 2022-03-20
There are a few tickets about non ASCII chars in the src path causing problems.
On MSW with the current trunk, "Programação" and "Cojón" work as they should. I will test on Ubuntu 20.04 in a while.
It is a problem in wxWidgets 3.0 on Unix, fixed in wx3.1.
I will try to fix this tomorrow.
Fixed in [r12761].
Related
Commit: [r12761]