Coder Social home page Coder Social logo

run error about xmake HOT 15 CLOSED

leitwolf avatar leitwolf commented on July 19, 2024
run error

from xmake.

Comments (15)

waruqi avatar waruqi commented on July 19, 2024

可以执行下:xmake f -v --backtracexmake -r -v --backtrace 把相关输出信息帖我下。。

你这边vs编译器是什么版本?

from xmake.

leitwolf avatar leitwolf commented on July 19, 2024

都一样,vs2017,刚装的

from xmake.

leitwolf avatar leitwolf commented on July 19, 2024

我删了些东西,又重启了,现在正常了。不过检测不到编译器了,现在还不支持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.

waruqi avatar waruqi commented on July 19, 2024

vs2017虽然代码里面加了支持,但是这边暂时没环境测试,可能vs2017的工具链环境变量有变动,没检测成功,我后两天装个 支持下 。。

from xmake.

leitwolf avatar leitwolf commented on July 19, 2024

默认安装位置:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community

至于下面的VC目录下的东西有没有变,就不知道了。

from xmake.

leitwolf avatar leitwolf commented on July 19, 2024

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.

leitwolf avatar leitwolf commented on July 19, 2024

有没有什么方法设置vs cl.exe的路径(或目录)啊?

from xmake.

waruqi avatar waruqi commented on July 19, 2024

代码里面我通过VS150COMNTOOLS环境变量,检测的vs。。可能vs2017的变动较大,我之后调下,你可以看下相关检测逻辑在:check.lua

或者你可以临时开启vs2017自带的编译cmd终端环境中,尝试运行xmake试试,主要还是path没有,找不到cl.exe

from xmake.

leitwolf avatar leitwolf commented on July 19, 2024

1、没有VS150COMNTOOLS这个环境变量,也没有这个vcvarsall.bat了,在C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build下有vcvars32.bat
2、在vs的cmd终端中运行xmake也一样,找不到编译环境。

from xmake.

waruqi avatar waruqi commented on July 19, 2024

那可能 vs2017 改动比较大,我需要装好对应环境后对其支持下,可能要稍等几天,不好意思。

我会尽快支持掉。。

from xmake.

leitwolf avatar leitwolf commented on July 19, 2024

好的。
vs2017挺好安装的,只装c/c++的话都用不了一个小时。

from xmake.

waruqi avatar waruqi commented on July 19, 2024

恩 。主要是这边 磁盘空间不够了。需要清理下。用vbox在装个新环境。 = =

from xmake.

waruqi avatar waruqi commented on July 19, 2024

你再试下 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.

leitwolf avatar leitwolf commented on July 19, 2024

OK,没问题了,编译成功!!

from xmake.

waruqi avatar waruqi commented on July 19, 2024

嗯嗯

from xmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.