Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Build Instructions #13

Open
seppeon opened this issue Jun 11, 2021 · 7 comments
Open

Build Instructions #13

seppeon opened this issue Jun 11, 2021 · 7 comments

Comments

@seppeon
Copy link

seppeon commented Jun 11, 2021

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?

@gyf304
Copy link
Owner

gyf304 commented Jun 12, 2021

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

@seppeon
Copy link
Author

seppeon commented Jun 13, 2021

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

@gyf304
Copy link
Owner

gyf304 commented Jun 13, 2021

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
Copy link
Owner

gyf304 commented Jun 13, 2021

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

@omerXfaruq
Copy link

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

@hbirler
Copy link
Contributor

hbirler commented Dec 19, 2021

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 afb1ee7.

@seppeon
Copy link
Author

seppeon commented May 13, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants