Comments (2)
ok. i think i figured out this problem. The readme.md on this repo doesn't tell you everything. I stumbled upon the getting started with swift page and it mentions this key bit of info.
copy %SDKROOT%\usr\share\ucrt.modulemap "%UniversalCRTSdkDir%\Include\%UCRTVersion%\ucrt\module.modulemap"
copy %SDKROOT%\usr\share\visualc.modulemap "%VCToolsInstallDir%\include\module.modulemap"
copy %SDKROOT%\usr\share\visualc.apinotes "%VCToolsInstallDir%\include\visualc.apinotes"
copy %SDKROOT%\usr\share\winsdk.modulemap "%UniversalCRTSdkDir%\Include\%UCRTVersion%\um\module.modulemap"
and now i get this with ninja
, which appear to be warnings.
ninja -C build SwiftWin32 UICatalog
ninja: Entering directory `build'
[1/2] Linking Swift shared library bin\SwiftWin32.dll
..\Sources\UI\View.swift:137:15: warning: immutable value 'hPreviousParent' was never used; consider replacing with '_' or removing it
guard let hPreviousParent: HWND = SetParent(view.hWnd, self.hWnd) else {
~~~~^~~~~~~~~~~~~~~
_
..\Sources\Support\Error.swift:42:28: warning: '_wcserror' is deprecated: This function or variable may be unsafe. Consider using _wcserror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
if let description = _wcserror(errno) {
^
Creating library lib\SwiftWin32.lib and object lib\SwiftWin32.exp
[2/2] Linking Swift executable bin\UICatalog.exe
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "LibcOverlayShims.h"
^
C:/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk\usr\lib\swift\shims/LibcOverlayShims.h:103:10: warning: '_open' is deprecated: This function or variable may be unsafe. Consider using _sopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
return _open(path, oflag, (int)mode);
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt/corecrt_io.h:420:24: note: '_open' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.27.29110\include/vcruntime.h:320:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.27.29110\include/vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
Creating library bin\UICatalog.lib and object bin\UICatalog.exp
from swift-win32.
Correct, this repository is for the Swift/Win32 package. It assumes that you have setup the toolchain properly, I don't think it makes sense to have installation instructions for Swift as part of this project. If you would like to improve the installer for Windows, compnerd/swift-build is the correct place for that.
These are, as you stated, warnings. You should have a UICatalog.exe in the build directory that you should be able to run now. Feel free to open another issue if you run into an issue with the library or demo programs.
from swift-win32.
Related Issues (20)
- Update UICatalog to prevent console host
- Document subsystem configuration for UI applications as identified in #576 HOT 1
- Issue when ninja building UICatalog HOT 8
- Labels appear cropped if display scaling is enabled HOT 2
- Examples don't run with SPM HOT 4
- DatePicker doesn't have get value property. HOT 4
- Window doesn't Open HOT 4
- Can't compile example HOT 13
- stack overflow on repeated async function invocation HOT 7
- Unrecognised architecture on host system: ARM64 HOT 1
- Not a problem just a question
- How can i use this framework to call third library ? like libsqlite, libxl HOT 1
- error: cannot find type 'BarButtonItem' in scope; examples don't compile HOT 4
- Nitpick about naming question
- JUST A QUESTION AND NOT A ISSUE (Close this after reading) HOT 1
- Support set background color for View HOT 1
- Can not build with Swift 5.9.1 HOT 6
- Package.swift is not used with Swift 5.9.1 HOT 9
- Example of SwiftWin32UI App HOT 1
- swif
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-win32.