-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fails to cross-build/compile for Windows #23
Comments
What commands did you input from the beginning. |
If you mean before compiling, I used: If it helps I have a log, of the output from this. |
You can check the workflow for more information (both https://github.com/xfangfang/PPPwn_cpp/blob/main/.github/workflows/ci.yaml |
Thanks, I've done 1-2 before. But 3 seems like a good suggestion. |
After spending more time into it and given mingw64 was failing elsewhere with no solution in sight, I was able to fix it by adding
to and commented out After having npcap installed in windows the compiled binary runs with better success rate than vanilla PPPwn I am not sure if is the 'right' solution, but is a workaround if anyone is interested. |
if cmake >= 3.26 it will remove the leading So I guess the issue was caused by the cmake version. I just submitted an update, and now it should be possible to compile without modifying the npcap SDK. |
Neato, definitely is a better option. Thank you |
yet the path is correct! `-- Could NOT find Packet (missing: Packet_LIBRARY Packet_INCLUDE_DIR) -- Configuring incomplete, errors occurred!` |
You need to provide the environment and cmake command. while referring to the workflow mentioned earlier. In Linux, you need to pay attention to the issue of path capitalization (which is why workflow modified the path of sdk). The cmake option set for compiling using mingw and cross-compiling in Linux are different (-DPACP_ROOT /-DPacket_ROOT) |
Never before have I found myself in difficulty like today, I have truly tried everything. |
@oresterosso75 Providing an error message cannot solve any problem. You need to show what you have done so that others can help you. example: I am trying to cross compile to Windows under Ubuntu 22.04, using You really need to learn this article: http://catb.org/~esr/faqs/smart-questions.html |
I actually didn't provide much detail about my problem. `-- ZIG_TARGET: x86_64-windows-gnu The cmake-policies(7) manual explains that the OLD behaviors of all -- Building 64-bit Update the VERSION argument value or use a ... suffix to tell -- Looking for backtrace
CMake Error in CMakeLists.txt:
CMake Error in build/_deps/pcapplusplus-src/Pcap++/CMakeLists.txt:
CMake Error in build/_deps/pcapplusplus-src/Pcap++/CMakeLists.txt:
-- Generating done (1.7s) |
@oresterosso75 As mentioned earlier, either use mingw32/64 for native compilation or cross compile with Linux(macOS, WSL...) These two compilation methods have been confirmed, you can refer to the workflow. I haven't tried running cmake directly in CMD for compilation, but it should be a little complex and require manual handling of dependency issues. Maybe you can try changing the SDK path to: |
When running
cmake --build build -t pppwn
I get:
Can't seem to find a reason for it?
I am using Ubuntu WSL on Windows 10.
Using Ubuntu WSL, I can compile/build the linux binary and runs just fine.
The text was updated successfully, but these errors were encountered: