VeraCrypt
VeraCrypt copied to clipboard
wxWidgets compile fails with invalid options provided by VeraCrypt Makefile
I downloaded the VeraCrypt source release 1.26.7. I am compiling for Linux (Debian 12) on a headless non gui server system so I checked out the github for wxWidgets and ran
make NOGUI=1 WXSTATIC=1 WX_ROOT=/usr/src/wxWidgets wxbuild
I got an error:
Configuring wxWidgets library... configure: error: unrecognized options: --enable-unicode, --enable-std_string
I edited the VeraCrypt Makefile on line 481 and removed the offending options, then it compiled ok.
Just wanted to pass it on.
Edit:
Further to this I wonder if there's just an incompatibility with the wxWidgets I pulled in and the VeraCrypt codebase at this time. When compiling VeraCrypt I am getting these errors now:
Precompiling SystemPrecompiled.h
Compiling Application.cpp
Application.cpp: In static member function ‘static VeraCrypt::FilePath VeraCrypt::Application::GetConfigFilePath(const wxString&, bool)’:
Application.cpp:92:24: error: ‘wxScopedPtr’ does not name a type
92 | static wxScopedPtr<const wxString> configDirC;
| ^~~~~~~~~~~
Application.cpp:97:30: error: ‘configDirC’ was not declared in this scope
97 | if (!configDirC)
| ^~~~~~~~~~
Application.cpp:117:51: error: ‘configDirC’ was not declared in this scope
117 | if (!wxDirExists(*configDirC))
| ^~~~~~~~~~
Application.cpp:129:35: error: ‘configDirC’ was not declared in this scope
129 | return FilePath((*configDirC + configFileName).ToStdWstring());
| ^~~~~~~~~~
make[1]: *** [/usr/src/VeraCrypt-VeraCrypt_1.26.7/src/Build/Include/Makefile.inc:37: Application.o] Error 1
make: *** [Makefile:520: all] Error 2