Giter Club home page Giter Club logo

Comments (3)

willser avatar willser commented on June 10, 2024

msvc可以试试这个 https://stackoverflow.com/questions/31770604/how-to-generate-statically-linked-executables

gnu我记得是可以打包成没有依赖的执行文件,但相应的体积会大一些。

另外麻烦问下您使用的操作系统版本。

from weaver.

Leo-Lionni avatar Leo-Lionni commented on June 10, 2024

msvc可以试试这个 https://stackoverflow.com/questions/31770604/how-to-generate-statically-linked-executables

gnu我记得是可以打包成没有依赖的执行文件,但相应的体积会大一些。

另外麻烦问下您使用的操作系统版本。

  • 一个设想场景就是,一个无依赖的二进制可执行文件,在U盘中,在多个操作系统(mac,linux多个发行版,Windows)中,自由拷贝,运行。 不需要依赖于某lib,某dylib,某so这样子。
  • 我自己用的操作系统是 Windows11 (服务器)和Ubuntu1804和mac 10.15。
  • 我查看了动态编译出的exe运行时,所需要的dll文件, 尝试拷贝到Windows/System32下去,但是无权限的(这在服务器经常遇到)。

from weaver.

willser avatar willser commented on June 10, 2024

那可以尝试一下我发的两个解决方案。如果有问题继续沟通。

from weaver.

Related Issues (13)

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.