Giter VIP home page Giter VIP logo

Comments (2)

fdncred avatar fdncred commented on May 29, 2024

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.

compnerd avatar compnerd commented on May 29, 2024

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)

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.