Giter VIP home page Giter VIP logo

Comments (6)

SteffenL avatar SteffenL commented on May 21, 2024

Can you build one of the examples using the instructions provided in the readme file?

from webview_go.

zhanxiaox avatar zhanxiaox commented on May 21, 2024

err
I searched for the relevant error reasons. Is it necessary to have the GCC environment and enable CGO_ENABLED?

from webview_go.

zhanxiaox avatar zhanxiaox commented on May 21, 2024

err I searched for the relevant error reasons. Is it necessary to have the GCC environment and enable CGO_ENABLED?

err2
I have installed gcc and config CGO_ENABLED=1 to build examples, but I encountered more issues. Did I do something wrong?

from webview_go.

SteffenL avatar SteffenL commented on May 21, 2024

There are some cases where CGO_ENABLED isn't set to 1 by default and in those cases you need to set it to 1 by yourself. You can check the documentation of cgo.

The error doesn't seem related to the core webview library. Are you compiling with a Cygwin environment? If so then I suggest trying e.g. MSYS2 or WinLibs instead.

If you want to keep using Cygwin then please know that I haven't personally tested with it. Also, are you sure you don't need to compile inside a special Cygwin shell/terminal rather than with PowerShell?

from webview_go.

zhanxiaox avatar zhanxiaox commented on May 21, 2024

Ok,Thank you very much,Use MSYS2 install gcc environment,Examples worked now,And in MSYS2's shell seem can't load system's path,I have added MSYS2/bin to the system's path.

from webview_go.

SteffenL avatar SteffenL commented on May 21, 2024

I'm glad that works although it may be a good idea to choose a specific MSYS2 environment such as UCRT64, MINGW64 or CLANG64.

Can we can close this issue?

from webview_go.

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.