lpvpn icon indicating copy to clipboard operation
lpvpn copied to clipboard

Build Instructions

Open seppeon opened this issue 3 years ago • 7 comments

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?

seppeon avatar Jun 11 '21 15:06 seppeon

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

gyf304 avatar Jun 12 '21 21:06 gyf304

Yeh, I'm able to produce executable. But it crashes on launch. It crashes when loading one of the embedded DLL's.

seppeon avatar Jun 13 '21 05:06 seppeon

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.

gyf304 avatar Jun 13 '21 16:06 gyf304

And just to make sure - running one of the precompiled exes work?

gyf304 avatar Jun 13 '21 16:06 gyf304

@seppeon met with the issue now, perhaps you might have missed the answers, reminding the issue after a while :D

omerXfaruq avatar Oct 13 '21 14:10 omerXfaruq

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.

hbirler avatar Dec 19 '21 22:12 hbirler

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.

seppeon avatar May 13 '23 11:05 seppeon