lpvpn
lpvpn copied to clipboard
Build Instructions
I've pulled the code and have made some optimisations for performance. Builds fine, but crashes I believe when it attempts to load DLL's.
What are the build instructions for this project?
LPVPN uses cmake for building. mkdir build
, cd build
, cmake ..
and cmake --build .
should work.
The CI steps also work as an instruction for building.
https://github.com/gyf304/lpvpn/blob/main/.github/workflows/ci.yml
Yeh, I'm able to produce executable. But it crashes on launch. It crashes when loading one of the embedded DLL's.
One thing to make sure of is that you are building for the architecture that your PC is using. Loading an x86 Wintun DLL on x86_64 may cause that. Additionally, try building with Debug
and see what exactly caused the crash.
And just to make sure - running one of the precompiled exes work?
@seppeon met with the issue now, perhaps you might have missed the answers, reminding the issue after a while :D
Hey, I encountered a similar issue. The reason was that CMAKE_GENERATOR_PLATFORM
was not set while building with Visual Studio and Ninja (which resulted in the correct DLL resources not being embedded into the binary). I switched to using CMAKE_SIZEOF_VOID_P
to determine the arch as in afb1ee70b93631f01ac572807fba25cc75b6c051.
Revisited this I've managed to get this thing building. msvc amd64 is what was required for my build. Although it appears the latest lpvpn doesn't work, there is an issue where data continues to be "received" even after disconnecting.