While trying to compile build 0.3C from source on Ubuntu 20.04.1 LTS, cmake is giving me the following errors:
Code:
Scanning dependencies of target Fronter
[ 9%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/Mod.cpp.o
[ 9%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/Configuration.cpp.o
[ 9%] Building CXX object CMakeFiles/Fronter.dir/Source/Frontend.cpp.o
[ 12%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/RequiredFile.cpp.o
[ 16%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/RequiredFolder.cpp.o
[ 19%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/Options/CheckBoxOption.cpp.o
[ 22%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/Options/CheckBoxSelector.cpp.o
[ 25%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/Options/Option.cpp.o
[ 29%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/Options/RadioOption.cpp.o
[ 32%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/Options/RadioSelector.cpp.o
[ 35%] Building CXX object CMakeFiles/Fronter.dir/Source/Configuration/Options/TextSelector.cpp.o
[ 38%] Building CXX object CMakeFiles/Fronter.dir/Source/Frames/LogWindow.cpp.o
[ 41%] Building CXX object CMakeFiles/Fronter.dir/Source/Frames/MainFrame.cpp.o
[ 45%] Building CXX object CMakeFiles/Fronter.dir/Source/Frames/Tabs/ConvertTab.cpp.o
[ 48%] Building CXX object CMakeFiles/Fronter.dir/Source/Frames/Tabs/ModsTab.cpp.o
/home/brett/Downloads/CK3toEU4-0.3C/Fronter/Fronter/Source/Frames/Tabs/ConvertTab.cpp: In member function ‘void ConvertTab::initializeConvert()’:
/home/brett/Downloads/CK3toEU4-0.3C/Fronter/Fronter/Source/Frames/Tabs/ConvertTab.cpp:62:56: error: ‘class wxSizerFlags’ has no member named ‘CenterHorizontal’
62 | statusSizer->Add(statusSave, wxSizerFlags(1).Align(1).CenterHorizontal());
| ^~~~~~~~~~~~~~~~
/home/brett/Downloads/CK3toEU4-0.3C/Fronter/Fronter/Source/Frames/Tabs/ConvertTab.cpp:64:59: error: ‘class wxSizerFlags’ has no member named ‘CenterHorizontal’
64 | statusSizer->Add(statusConvert, wxSizerFlags(1).Align(1).CenterHorizontal());
| ^~~~~~~~~~~~~~~~
/home/brett/Downloads/CK3toEU4-0.3C/Fronter/Fronter/Source/Frames/Tabs/ConvertTab.cpp:66:56: error: ‘class wxSizerFlags’ has no member named ‘CenterHorizontal’
66 | statusSizer->Add(statusCopy, wxSizerFlags(1).Align(1).CenterHorizontal());
| ^~~~~~~~~~~~~~~~
/home/brett/Downloads/CK3toEU4-0.3C/Fronter/Fronter/Source/Frames/Tabs/ConvertTab.cpp:83:47: error: ‘class wxSizerFlags’ has no member named ‘CenterHorizontal’
83 | gaugeSizer->Add(gauge, wxSizerFlags(1).Top().CenterHorizontal());
| ^~~~~~~~~~~~~~~~
/home/brett/Downloads/CK3toEU4-0.3C/Fronter/Fronter/Source/Frames/Tabs/ConvertTab.cpp:84:54: error: ‘class wxSizerFlags’ has no member named ‘CenterHorizontal’
84 | gaugeSizer->Add(gaugeCounter, wxSizerFlags(1).Top().CenterHorizontal());
| ^~~~~~~~~~~~~~~~
/home/brett/Downloads/CK3toEU4-0.3C/Fronter/Fronter/Source/Frames/Tabs/ConvertTab.cpp:87:54: error: ‘class wxSizerFlags’ has no member named ‘CenterHorizontal’
87 | convertSizer->Add(gaugePanel, wxSizerFlags(1).Top().CenterHorizontal());
| ^~~~~~~~~~~~~~~~
/home/brett/Downloads/CK3toEU4-0.3C/Fronter/Fronter/Source/Frames/Tabs/ConvertTab.cpp:96:57: error: ‘class wxSizerFlags’ has no member named ‘CenterHorizontal’
96 | convertSizer->Add(convertButton, wxSizerFlags(1).Top().CenterHorizontal());
| ^~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/Fronter.dir/build.make:232: CMakeFiles/Fronter.dir/Source/Frames/Tabs/ConvertTab.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/Fronter.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Basically, errors in the file /CK3toEU4-0.3C/Fronter/Fronter/Source/Frames/Tabs/ConvertTab.cpp related to 'class wxSizerFlags', which apparently has no member named 'CenterHorizontal,' encountered on lines 62, 64, 66, 83, 84, 87, and 96. I looked through the headers for ConvertTab.cpp and couldn't find any mention of the class or CenterHorizontal as a member.
Any idea what could be wrong? You'll have to forgive me because I don't often compile from source and it could very well be an issue with missing files/dependencies or something about the setup of the compiler itself.
Hopefully this can help any other Linux users trying to compile as well. You guys are doing excellent work! Really excited to try this out once I can get it working. Let me know if there are any logs I can look at to post here for you.