Giter VIP home page Giter VIP logo

Comments (10)

Issues-translate-bot avatar Issues-translate-bot commented on July 24, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: m1 chip exports Xcode and cannot run

from xmake.

waruqi avatar waruqi commented on July 24, 2024

目前是借助 cmake 来生成的,可以先 check 下 xmake project -k cmake 生成的 cmakelists.txt

from xmake.

yingnierxiao avatar yingnierxiao commented on July 24, 2024

target_compile_options(MyEngine PRIVATE $<$<COMPILE_LANGUAGE:C>:-target> $<$<COMPILE_LANGUAGE:CXX>:-target> $<$<COMPILE_LANGUAGE:C>:x86_64-apple-macos14.5> $<$<COMPILE_LANGUAGE:CXX>:x86_64-apple-macos14.5> $<$<COMPILE_LANGUAGE:C>:-isysroot> $<$<COMPILE_LANGUAGE:CXX>:-isysroot> $<$<COMPILE_LANGUAGE:C>:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk> $<$<COMPILE_LANGUAGE:CXX>:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk> $<$<COMPILE_LANGUAGE:C>:-DNDEBUG> $<$<COMPILE_LANGUAGE:CXX>:-DNDEBUG> ) target 感觉不太对,然后x86_64也不对,应该是arm64

from xmake.

waruqi avatar waruqi commented on July 24, 2024
xmake f -cvD
xmake -rvD
xmake project -k cmake

给下完整 logs 和 cmakelists

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on July 24, 2024

Bot detected the issue body's language is not English, translate it automatically.


xmake f -cvD
xmake -rvD
xmake project -k cmake

Give the complete logs and cmakelists

from xmake.

yingnierxiao avatar yingnierxiao commented on July 24, 2024

build.log
把日志传上来,麻烦看下什么问题
CMakeLists.txt

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on July 24, 2024

Bot detected the issue body's language is not English, translate it automatically.


build.log
Upload the logs, please check what the problem is.

from xmake.

waruqi avatar waruqi commented on July 24, 2024

build.log 把日志传上来,麻烦看下什么问题 CMakeLists.txt

我看生成的 cmakelist 没啥问题,也没看到你提到的 x86_64 ,里面都是 arm64 的 flags

from xmake.

yingnierxiao avatar yingnierxiao commented on July 24, 2024

error: @programdir/core/main.lua:329: @programdir/actions/build/main.lua:148: @programdir/modules/async/runjobs.lua:325: @programdir/core/sandbox/modules/os.lua:288: bad argument #1 to 'args' (string expected, got nil)
stack traceback:
[C]: in function 'args'
[@programdir/core/sandbox/modules/os.lua:288]: in function 'vrunv'
[@programdir/modules/private/utils/batchcmds.lua:96]: in function 'script'
[@programdir/modules/private/utils/batchcmds.lua:200]: in function '_runcmd'
[@programdir/modules/private/utils/batchcmds.lua:207]: in function '_runcmds'
[@programdir/modules/private/utils/batchcmds.lua:449]: in function 'callback'
[@programdir/modules/core/project/depend.lua:217]: in function 'on_changed'
[@programdir/modules/private/utils/batchcmds.lua:448]: in function 'runcmds'
[@programdir/actions/build/kinds/object.lua:147]: in function 'jobfunc'
[@programdir/modules/async/runjobs.lua:241]:

stack traceback:
[C]: in function 'error'
@programdir/core/base/os.lua:973: in function 'os.raiselevel'
(...tail calls...)
@programdir/core/main.lua:329: in upvalue 'cotask'
@programdir/core/base/scheduler.lua:406: in function <@programdir/core/base/scheduler.lua:399>

有一段报错了。 ..vformat(" --platform $(os)")
看起来是这个代码一起的

from xmake.

waruqi avatar waruqi commented on July 24, 2024

error: @programdir/core/main.lua:329: @programdir/actions/build/main.lua:148: @programdir/modules/async/runjobs.lua:325: @programdir/core/sandbox/modules/os.lua:288: bad argument #1 to 'args' (string expected, got nil) stack traceback: [C]: in function 'args' [@programdir/core/sandbox/modules/os.lua:288]: in function 'vrunv' [@programdir/modules/private/utils/batchcmds.lua:96]: in function 'script' [@programdir/modules/private/utils/batchcmds.lua:200]: in function '_runcmd' [@programdir/modules/private/utils/batchcmds.lua:207]: in function '_runcmds' [@programdir/modules/private/utils/batchcmds.lua:449]: in function 'callback' [@programdir/modules/core/project/depend.lua:217]: in function 'on_changed' [@programdir/modules/private/utils/batchcmds.lua:448]: in function 'runcmds' [@programdir/actions/build/kinds/object.lua:147]: in function 'jobfunc' [@programdir/modules/async/runjobs.lua:241]:

stack traceback: [C]: in function 'error' @programdir/core/base/os.lua:973: in function 'os.raiselevel' (...tail calls...) @programdir/core/main.lua:329: in upvalue 'cotask' @programdir/core/base/scheduler.lua:406: in function <@programdir/core/base/scheduler.lua:399>

有一段报错了。 ..vformat(" --platform $(os)") 看起来是这个代码一起的

不同问题,不要混一起,这个跟当前 issue 无关

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.