Comments (15)
可以执行下:xmake f -v --backtrace
和 xmake -r -v --backtrace
把相关输出信息帖我下。。
你这边vs编译器是什么版本?
from xmake.
都一样,vs2017,刚装的
from xmake.
我删了些东西,又重启了,现在正常了。不过检测不到编译器了,现在还不支持vs2017?
checking for the architecture ... x86
checking for the Microsoft Visual Studio (x86) version ... no
please run:
- xmake config --vs=xxx
or - xmake global --vs=xxx
from xmake.
vs2017虽然代码里面加了支持,但是这边暂时没环境测试,可能vs2017的工具链环境变量有变动,没检测成功,我后两天装个 支持下 。。
from xmake.
默认安装位置:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
至于下面的VC目录下的东西有没有变,就不知道了。
from xmake.
cl.exe在类似这样的目录里:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x86
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86
from xmake.
有没有什么方法设置vs cl.exe的路径(或目录)啊?
from xmake.
代码里面我通过VS150COMNTOOLS环境变量,检测的vs。。可能vs2017的变动较大,我之后调下,你可以看下相关检测逻辑在:check.lua
或者你可以临时开启vs2017自带的编译cmd终端环境中,尝试运行xmake试试,主要还是path没有,找不到cl.exe
from xmake.
1、没有VS150COMNTOOLS
这个环境变量,也没有这个vcvarsall.bat
了,在C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build
下有vcvars32.bat
。
2、在vs的cmd终端中运行xmake也一样,找不到编译环境。
from xmake.
那可能 vs2017 改动比较大,我需要装好对应环境后对其支持下,可能要稍等几天,不好意思。
我会尽快支持掉。。
from xmake.
好的。
vs2017挺好安装的,只装c/c++的话都用不了一个小时。
from xmake.
恩 。主要是这边 磁盘空间不够了。需要清理下。用vbox在装个新环境。 = =
from xmake.
你再试下 release 里面那个 xmake-v2.1.1.exe,我重新传了下安装包,加上了对vs2017工具环境的检测。
由于我这环境sdk死活装不成功,不能完整测试编译,你先试试吧。。
主要就是增强对 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
路径的检测。。
vs2017已经没环境变量了,所以只能根据路径来检测。
谢谢。
from xmake.
OK,没问题了,编译成功!!
from xmake.
嗯嗯
from xmake.
Related Issues (20)
- command line conversion error HOT 10
- Improve the default installation policy HOT 12
- 汇编文件每次都会编译而不是增量编译 HOT 29
- Dangling symlinks and os.exists() HOT 1
- 只获取 target:deps 自身的 syslinks,不要递归获取 target:pkgs 的 syslinks HOT 21
- The behavior of `set_optimize` is inconsistent on MSVC-related platforms. HOT 5
- Windows下shared目标缺少定义_WINDLL宏 HOT 2
- Macos下Qt开发使用add_frameworks添加的frameworks没有添加到链接命令中 HOT 3
- plugin.compile_commands.autoupdate 报错 HOT 17
- incorrect conan profile generated when using vs 17.1x HOT 1
- xmake添加多个deps时,deps内部有相互依赖的情况下编译无法通过 HOT 24
- Please add support for IAR ARM embedded toolchain HOT 16
- links not found when add_deps("openmp") HOT 10
- 支持在 xmake-repo 下发 toolchain 和 opiton HOT 9
- 添加`qt5widget`包后,xmake的qt规则无法自动识别qt路径 HOT 1
- How to set llvm-rc's options on msys2/clangarm64? HOT 1
- No way to set build type in `qt.deploy.flags` passed to windeployqt HOT 1
- Improve copy pdb when using ninja on Windows HOT 4
- 引用外部库时如何使用预编译头文件的功能 HOT 5
- 解决rc文件不会重新编译的问题 HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.