Git Product home page Git Product logo

Comments (6)

compnerd avatar compnerd commented on July 21, 2024

The error message doesn't indicate what failed. I suspect that you are not using the Visual Studio Developer Command Prompt but rather a regular command prompt or PowerShell. Can you please provide the output of the verbose run of the driver so we can identify which command is failing to run.

from swift-cmake-examples.

jacob-sheldon avatar jacob-sheldon commented on July 21, 2024

before i used vs code command prompt.
now when i use x64 Native Tools Command Prompt for VS 2019, I get a new fail message.
image

I used this command:

from swift-cmake-examples.

compnerd avatar compnerd commented on July 21, 2024

Okay, the new version looks better; unfortunately, I cannot make out the error, can you please change the language to english? It seems that its failing to find a symbol from HiKit

from swift-cmake-examples.

compnerd avatar compnerd commented on July 21, 2024

Ugh, I see the issue; passing -D BUILD_SHARED_LIBS=YES should fix the issue.

from swift-cmake-examples.

jacob-sheldon avatar jacob-sheldon commented on July 21, 2024

Yes, it's done by add -D BUILD_SHARED_LIBS=YES In cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=YES -D BUILD_SHARED_LIBS=YES -D CMAKE_Swift_FLAGS="-sdk %SDK% -I %SDK%/usr/lib/swift -L %SDK%/usr/lib/swift/%OS%". Thank you.

I have somequestion, could you help me?

First, why only me get this error? Is there any config error in my computer?
Second, why there is still report an error using the command cmake -B build -D CMAKE_BUILD_TYPE=Release -D BUILD_TESTING=YES -D BUILD_SHARED_LIBS=YES -G Ninja -S . in README still failed.
Third, I want to learn some knowledge about swift compiler, so that I could solve some problem when I got other errors next time, but I don't know how and where to get these knowleage, please teach me.

Thanks.

from swift-cmake-examples.

compnerd avatar compnerd commented on July 21, 2024

First, why only me get this error? Is there any config error in my computer?

Because you missed the various documents all which explain that you must link dynamically on Windows (and Darwin). The documentation explains that, its not a system issue, its an issue with the usage.

Second, why there is still report an error using the command cmake -B build -D CMAKE_BUILD_TYPE=Release -D BUILD_TESTING=YES -D BUILD_SHARED_LIBS=YES -G Ninja -S . in README still failed.

I don't understand this question. It sounds like it already built, so without more details, I dont know what error you are referring to here.

Third, I want to learn some knowledge about swift compiler, so that I could solve some problem when I got other errors next time, but I don't know how and where to get these knowleage, please teach me.

This is very open ended, I don't think that this is reasonable. However, the issues here have nothing to do so with the compiler but more with reading/following existing documentation. Alternatively, it could be that there are specifics in the documentation which can be improved, but that is often lost on those who are working on the project. Working to improve documentation would be a good way to learn.

from swift-cmake-examples.

Related Issues (15)

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.