You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在Conan包管理器中绑定ImGui库时遇到问题求助

问题:ImGui库绑定环节遇到问题(Premake+Conan环境)

我正在跟随ImGui相关教程学习,在库绑定环节遇到问题。已查阅网络未找到可行解决方案,附上我的premake5.lua和conanfile.txt配置文件,恳请提供帮助。

premake5.lua 内容

-- Include conan gennerate script
include("conanbuildinfo.premake.lua")

-- Main Workspace
workspace "GameOfLife"
    -- Import conan gennerate config
    conan_basic_setup()

    -- Project
    project "GOL"
        kind "ConsoleApp"
        language "C++"
        targetdir "bin/%{cfg.buildcfg}"
        objdir "bin/%{cfg.buildcfg}/obj/"
        location "src"
        debugdir "app"

        linkoptions { conan_exelinkflags }

        files { "**.hpp", "**.cpp" }

        filter "configurations:Debug"
        defines { "DEBUG" }
        symbols "On"

        filter "configurations:Release"
        defines { "NDEBUG" }
        optimize "On"

conanfile.txt 内容

[requires]
imgui/1.89.1
glfw/3.3.8
glad/0.1.36

[generators]
premake

[options]
*:shared=True

[imports]
bin,*.dll -> ./app

内容的提问来源于stack exchange,提问作者IvonaK

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.09 21:20:27