Giter Club home page Giter Club logo

Comments (6)

skyswordx avatar skyswordx commented on August 22, 2024

而且尝试使用仓库的Makefile来make了一下也出现了include的问题
image

from painterengine.

 avatar commented on August 22, 2024

而且尝试使用仓库的Makefile来make了一下也出现了include的问题 image

感谢作者提供的这个很好的开源库。

我有一个解决方案,到官网https://www.painterengine.com/下载【PainterEngine(源码-sources only)】解压这个压缩包,然后配置xmake.lua

target("libpe")
    set_kind("static")
    set_toolchains("gcc")
    add_files("core/*.c","kernel/*.c","platform/windows/*.c","platform/windows/*.cpp","runtime/*.c")
    add_defines("libpe")

同时将该xmake.lua放置到解压的源代码的根目录下,命令提示窗口执行 xmake -v 编译完成后到build目录下将libpe.lib改名为libpe.a同时将所有的*.c和*.cpp删除,只保留*.h文件并保证目录结构不变。将所有的*.h 和libpe.a 放置到mingw64\x86_64-w64-mingw32的include和lib目录下,编译过程中添加链接参数 -lpe -lwinmm -ld2d1 -lws2_32 -ldsound -lcomdlg32 -mwindows

enjoy!

from painterengine.

 avatar commented on August 22, 2024

而且尝试使用仓库的Makefile来make了一下也出现了include的问题 image

感谢作者提供的这个很好的开源库。

我有一个解决方案,到官网[https://www.painterengine.com/下载【PainterEngine(源码-sources](https://www.painterengine.com/%E4%B8%8B%E8%BD%BD%E3%80%90PainterEngine(%E6%BA%90%E7%A0%81-sources) only)】解压这个压缩包,然后配置xmake.lua

target("libpe")
    set_kind("static")
    set_toolchains("gcc")
    add_files("core/*.c","kernel/*.c","platform/windows/*.c","platform/windows/*.cpp","runtime/*.c")
    add_defines("libpe")

同时将该xmake.lua放置到解压的源代码的根目录下,命令提示窗口执行 xmake -v 编译完成后到build目录下将libpe.lib改名为libpe.a同时将所有的*.c和*.cpp删除,只保留*.h文件并保证目录结构不变。将所有的*.h 和libpe.a 放置到mingw64\x86_64-w64-mingw32的include和lib目录下,编译过程中添加链接参数 -lpe -lwinmm -ld2d1 -lws2_32 -ldsound -lcomdlg32 -mwindows

enjoy!

参考图片
libpe

from painterengine.

chunqian avatar chunqian commented on August 22, 2024

CMake 主要是给有外部依赖的项目用的,pe没有任何外部依赖,其实是没什么必要的,写C一般我还是建议使用ide。

from painterengine.

skyswordx avatar skyswordx commented on August 22, 2024

谢谢你!!非常详细

from painterengine.

skyswordx avatar skyswordx commented on August 22, 2024

谢谢你们啦

from painterengine.

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.