Comments (6)
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.
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.
I used this command:
from swift-cmake-examples.
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.
Ugh, I see the issue; passing -D BUILD_SHARED_LIBS=YES
should fix the issue.
from swift-cmake-examples.
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.
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)
- Build failure using Ninja generator HOT 4
- CMAKE_Swift_COMPILER HOT 7
- Cmake with packages HOT 3
- Support for C code? HOT 8
- Build failure: unknown argument: '-static' HOT 2
- Failing to build on Windows HOT 6
- Support for use with XCode? HOT 1
- Cmake and Ninja Error on Windows HOT 10
- CMake problem when building HelloWorld project HOT 9
- Failed to compile HelloWorld HOT 7
- `aux_source_directory ` can't find *.swift sources HOT 2
- Test fails HOT 2
- Problems while using on macOS HOT 1
- CCore is useless HOT 1
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 swift-cmake-examples.