ntop / n2n

Peer-to-peer VPN
GNU General Public License v3.0
6.07k stars 927 forks source link

[dev branch]How to build on Windows #1104

Closed Mike4Feet closed 1 year ago

Mike4Feet commented 1 year ago

1

The n2n/doc/Building.md Doesn't work. When I run ./scripts/hack_fakeautoconf.sh from inside a bash shell ("C:\Program Files\Git\usr\bin\bash.exe"), it mentions "command not found" 2

hamishcoleman commented 1 year ago

There appears to be something wrong with your configuration. The commands that are not found are all standard tools that should be available within the bash environment.

You could try checking some things:

echo PATH=$PATH
type bash
type sh
type cat
hamishcoleman commented 1 year ago

I believe I have a suggestion that will help your issue.

Please start your bash prompt by clicking on the "Git Bash" start menu item.

I have updated the build instructions to make that clear

GreatMichaelLee commented 1 year ago

I have a question for building on windows MINGW, how can I enable those natmap/miniupnpc features by adding the compile parameter like --enable-xxx under linux compiling during running the ./configure and append them? seems no options and place to add such things...

hamishcoleman commented 1 year ago

@GreatMichaelLee this would have been much better in a new issue, as it is basically unrelated to the original question.

Yes, as you have discovered, building with the extra libraries on a windows system is not perfect in the development branch. This situation is intended to improve as the build system is continued to be refactored.

Mike4Feet commented 1 year ago

There appears to be something wrong with your configuration. The commands that are not found are all standard tools that should be available within the bash environment.

You could try checking some things:

echo PATH=$PATH
type bash
type sh
type cat

It works,Thanks so much

GreatMichaelLee commented 1 year ago

@GreatMichaelLee this would have been much better in a new issue, as it is basically unrelated to the original question.

Yes, as you have discovered, building with the extra libraries on a windows system is not perfect in the development branch. This situation is intended to improve as the build system is continued to be refactored.

OK, I will raise a new issue for your reference and resolving:)