Skip to content
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

The program is not being assembled into an EXE file, an error occurred when build.bat | Программа не собирается в исполняемый файл, произошла ошибка при build.bat #39

Open
potap1978 opened this issue Feb 25, 2025 · 7 comments

Comments

@potap1978
Copy link

Image

@macruspareto
Copy link

Check if "amd64" subdirectory has been created - amneziawg.exe should be there.

The "error" is not from the compiler/linker, its build.bat trying to delete/move some leftovers.

@potap1978
Copy link
Author

Проверьте, создан ли подкаталог «amd64» — там должен быть amneziawg.exe.

«Ошибка» исходит не от компилятора/линковщика, а от build.bat, пытающегося удалить/переместить некоторые остатки.

The amd64 directory was not created

@macruspareto
Copy link

Ooops, the build script says "Building program x86" (visible on your screenshot).... so check for "x86" subdir instead of "amd64".

(I had the same problem but figured it out).

@potap1978
Copy link
Author

Ooops, the build script says "Building program x86" (visible on your screenshot).... so check for "x86" subdir instead of "amd64".

(I had the same problem but figured it out).

Video with continuation x86

Image

@macruspareto
Copy link

Right ! Now open build.bat - scroll down to lines 43, 44, 45
There you can see x86, amd64, arm64.
Delete or comment out lines 43 and 45.
Leave only amd64 and try to build it again.

Should be working. I guess you gotta need wintun.dll (from .deps\wintun\bin\amd64).

@potap1978
Copy link
Author

potap1978 commented Feb 27, 2025

Right ! Now open build.bat - scroll down to lines 43, 44, 45 There you can see x86, amd64, arm64. Delete or comment out lines 43 and 45. Leave only amd64 and try to build it again.

Should be working. I guess you gotta need wintun.dll (from .deps\wintun\bin\amd64).


call :build_plat x64 x86_64 amd64 || goto :error
: call :build_plat x86 i686 386 || goto :error
: call :build_plat arm64 aarch64 arm64 || goto :error

It worked ! amneziawg.exe built and works !
But the same errors still remained

@RomikB
Copy link

RomikB commented Mar 4, 2025

В скрипте ошибка добавил PR #42

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

No branches or pull requests

3 participants