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

build_windows.bat在输入非默认visual studio路径后退出 #10586

Closed
huxiangdong opened this issue Nov 7, 2024 · 2 comments
Closed

build_windows.bat在输入非默认visual studio路径后退出 #10586

huxiangdong opened this issue Nov 7, 2024 · 2 comments

Comments

@huxiangdong
Copy link

运行 lite\tools\build_windows.bat
根据提示输入正确的visual studio安装路径后脚本直接退出没有往下执行

E:\dev\paddle-lite>lite\tools\build_windows.bat
"------------------------------------------------------------------------------------------------------|"
"|  WITH_LOG=ON                                                                                |"
"|  BUILD_EXTRA=ON                                                                          |"
"|  WITH_PYTHON=ON                                                                          |"
"|  LITE_WITH_PROFILE=OFF                                                                   |"
"|  LITE_WITH_PRECISION_PROFILE=OFF                                               |"
"|  WITH_TESTING=OFF                                                                        |"
"|  WITH_STRIP=OFF                                                                            |"
"|  OPTMODEL_DIR=""                                                                        |"
"|  BUILD_PLATFORM=x64                                                                    |"
"|  WITH_STATIC_MKL=OFF                                                                  |"
"|  MSVC_STATIC_CRT=ON                                                                  |"
"|  WITH_OPENCL=OFF                                                                          |"
"|  WITH_AVX=ON                                                                                |"
"|  WITH_KUNLUNXIN_XPU=OFF                                                            |"
"|  KUNLUNXIN_XPU_SDK_ROOT=""                                                    |"
"------------------------------------------------------------------------------------------------------|"
Please input the path of visual studio command Prompt, such as C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat   =======>D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat

E:\dev\paddle-lite>

解决办法:
build_windows.bat 文件第116行

  goto set_vcvarsall_dir

修改为如下方式:

  call:set_vcvarsall_dir

即可解决问题

@iosmers
Copy link
Collaborator

iosmers commented Nov 13, 2024

好的,感谢反馈

@iosmers
Copy link
Collaborator

iosmers commented Jan 24, 2025

您好,如果没有进一步的问题,我先把这个issue关闭了。如果还有问题,您随时可以 Reopen。

@iosmers iosmers closed this as completed Jan 26, 2025
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

2 participants