GithubHelp home page GithubHelp logo

Comments (7)

clason avatar clason commented on July 22, 2024

Just to be clear, cross compilation is not supported. To build for ARM, you need to build on ARM.

from neovim.

yashamon avatar yashamon commented on July 22, 2024

I am on arm

from neovim.

dundargoc avatar dundargoc commented on July 22, 2024

Can I get some actual details? What error mesaage arenyou getting?

from neovim.

yashamon avatar yashamon commented on July 22, 2024

Nothing goes wrong, it just cross compiles to x86. Instead of compiling to arm64. I am guessing that is the default for cmake projects, but I don't know.

from neovim.

justinmk avatar justinmk commented on July 22, 2024

VS has a menu with options to choose a target.

from neovim.

yashamon avatar yashamon commented on July 22, 2024

It doesn't allow choosing an arm target. If I create a new desktop app project I can set target to be arm64. If I create a new cmake project this is not allowed, so it might be a current limitation of cmake + visual studio.

I also tried to compile form command line, I can do it with gcc but that gives the wrong target, I don't know how to force arm64 and also it appears gcc currently does not support windows arm64 target. So clang might be the way to go, but how?

from neovim.

yashamon avatar yashamon commented on July 22, 2024

I manually added the following CMake preset:
Mind you I don't know if this is correct.

{
"name": "arm",
"displayName": "arm",
"inherits": "base",
"architecture": {
"value": "arm64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
WIth this the compilation starts, but fails midway.

Severity Code Description Project File Line Suppression State Details
Error CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Luv (missing: LUV_LIBRARY LUV_INCLUDE_DIR) (Required is at
least version "1.43.0") C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake 230

from neovim.

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.