Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vsg ImGui integration #18965

Closed
wants to merge 8 commits into from
Closed

vsg ImGui integration #18965

wants to merge 8 commits into from

Conversation

psyinf
Copy link
Contributor

@psyinf psyinf commented Jul 29, 2023

vsgImGui 0.1.0

Add-on for vsg(VulkanSceneGraph) to integrate imgui

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

1 similar comment
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@czoido czoido self-assigned this Aug 18, 2023
Comment on lines +85 to +83
tc.variables["VSG_MACRO_PATH"] = os.path.join(self.deps_cpp_info["vsg"].rootpath, "lib/cmake/vsg/").replace("\\","/")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this probably should be handled in the vsg recipe adding the macro, something like:

self.cpp_info.set_property("cmake_build_modules", [os.path.join("lib", "cmake", "vsg", "vsgMacros.cmake")])

Comment on lines 56 to 58
self.requires("vsg/[>1.0.5]")
self.requires("imgui/1.89.5")
self.requires("implot/0.14")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.requires("vsg/[>1.0.5]")
self.requires("imgui/1.89.5")
self.requires("implot/0.14")
self.requires("vsg/1.0.5", transitive_headers=True)
self.requires("imgui/1.89.8", transitive_headers=True)
self.requires("implot/0.16")

if is_msvc(self):
tc.variables["USE_MSVC_RUNTIME_LIBRARY_DLL"] = not is_msvc_static_runtime(self)

tc.variables["VSG_MACRO_PATH"] = os.path.join(self.deps_cpp_info["vsg"].rootpath, "lib/cmake/vsg/").replace("\\","/")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tc.variables["VSG_MACRO_PATH"] = os.path.join(self.deps_cpp_info["vsg"].rootpath, "lib/cmake/vsg/").replace("\\","/")

endif()

find_package(vsg 1.0.5)
+include(${VSG_MACRO_PATH}/vsgMacros.cmake)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be necessary if we declare cmake_build_modules property in vsg for that macro

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update the vsg package and then re-integrate this

@stale
Copy link

stale bot commented Oct 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added stale and removed stale labels Oct 15, 2023
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 8 (defa690909adb74ec196439a6516c69f17266534):

  • vsgimgui/0.1.0:
    CI failed to create some packages (All logs)

    Logs for packageID 3d0cd7dfe37957a4581f56050b1abaeb26581eb7:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=10
    os=Linux
    [options]
    vsgimgui:shared=False
    
    [...]
    dpkg-query: no packages found matching libx11-xcb-dev
    dpkg-query: no packages found matching libfontenc-dev
    dpkg-query: no packages found matching libice-dev
    dpkg-query: no packages found matching libsm-dev
    dpkg-query: no packages found matching libxau-dev
    dpkg-query: no packages found matching libxaw7-dev
    dpkg-query: no packages found matching libxcomposite-dev
    dpkg-query: no packages found matching libxcursor-dev
    dpkg-query: no packages found matching libxdamage-dev
    dpkg-query: no packages found matching libxdmcp-dev
    dpkg-query: no packages found matching libxext-dev
    dpkg-query: no packages found matching libxfixes-dev
    dpkg-query: no packages found matching libxi-dev
    dpkg-query: no packages found matching libxinerama-dev
    dpkg-query: no packages found matching libxkbfile-dev
    dpkg-query: no packages found matching libxmu-dev
    dpkg-query: no packages found matching libxmuu-dev
    dpkg-query: no packages found matching libxpm-dev
    dpkg-query: no packages found matching libxrandr-dev
    dpkg-query: no packages found matching libxrender-dev
    dpkg-query: no packages found matching libxres-dev
    dpkg-query: no packages found matching libxss-dev
    dpkg-query: no packages found matching libxt-dev
    dpkg-query: no packages found matching libxtst-dev
    dpkg-query: no packages found matching libxv-dev
    dpkg-query: no packages found matching libxvmc-dev
    dpkg-query: no packages found matching libxxf86vm-dev
    dpkg-query: no packages found matching libxcb-render0-dev
    dpkg-query: no packages found matching libxcb-render-util0-dev
    dpkg-query: no packages found matching libxcb-xkb-dev
    dpkg-query: no packages found matching libxcb-icccm4-dev
    dpkg-query: no packages found matching libxcb-image0-dev
    dpkg-query: no packages found matching libxcb-keysyms1-dev
    dpkg-query: no packages found matching libxcb-randr0-dev
    dpkg-query: no packages found matching libxcb-shape0-dev
    dpkg-query: no packages found matching libxcb-sync-dev
    dpkg-query: no packages found matching libxcb-xfixes0-dev
    dpkg-query: no packages found matching libxcb-xinerama0-dev
    dpkg-query: no packages found matching libxcb-dri3-dev
    dpkg-query: no packages found matching uuid-dev
    dpkg-query: no packages found matching libxcb-cursor-dev
    debconf: delaying package configuration, since apt-utils is not installed
    dpkg-query: no packages found matching libxcb-util-dev
    debconf: delaying package configuration, since apt-utils is not installed
    WARN: implot/0.16: requirement imgui/1.89.9 overridden by vsgimgui/0.1.0 to imgui/1.89.8 
    vsgimgui/0.1.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    vsgimgui/0.1.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    [HOOK - conan-center.py] post_package(): ERROR: [CMAKE-MODULES-CONFIG-FILES (KB-H016)] The conan-center repository doesn't allow the packages to contain CMake find modules or config files. The packages have to be located using generators and the declared `cpp_info` information (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H016-CMAKE-MODULES-CONFIG-FILES) 
    [HOOK - conan-center.py] post_package(): ERROR: [CMAKE-MODULES-CONFIG-FILES (KB-H016)] Found files: ./lib/cmake/vsgImGui/vsgImGuiConfig.cmake (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H016-CMAKE-MODULES-CONFIG-FILES) 
    ERROR: [HOOK - conan-center.py] post_package(): Some checks failed running the hook, check the output
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 7 (defa690909adb74ec196439a6516c69f17266534):

  • vsgimgui/0.1.0:
    Error running command conan graph info --requires vsgimgui/0.1.0@#de003a306329b94e5a926450c3078818 -f json -pr:h /home/conan/w/prod-v2/bsr/23558/dbecf/profile_linux_11_libstdcpp11_17_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2/bsr/23558/dbecf/profile_linux_11_libstdcpp11_17_gcc_release_64..txt:
    ======== Computing dependency graph ========
    vulkan-loader/1.3.239.0: Not found in local cache, looking in remotes...
    vulkan-loader/1.3.239.0: Checking remote: conan-center
    vulkan-loader/1.3.239.0: Downloaded recipe revision f4addab2eb9f793087a3dfc9d16a91e2
    vulkan-headers/1.3.239.0: Not found in local cache, looking in remotes...
    vulkan-headers/1.3.239.0: Checking remote: conan-center
    vulkan-headers/1.3.239.0: Downloaded recipe revision 3f678623fcd7aa3a39015b5770f4f31d
    xorg/system: Not found in local cache, looking in remotes...
    xorg/system: Checking remote: conan-center
    xorg/system: Downloaded recipe revision de8fc1917bb3d11cf7a1d15eccf79c16
    pkgconf/1.9.3: Not found in local cache, looking in remotes...
    pkgconf/1.9.3: Checking remote: conan-center
    pkgconf/1.9.3: Downloaded recipe revision 3e658ebc066dc868a1f8a472c1065368
    meson/1.2.2: Not found in local cache, looking in remotes...
    meson/1.2.2: Checking remote: conan-center
    meson/1.2.2: Downloaded recipe revision aace9dcc1db58fa42ecb5292f724092d
    ninja/1.11.1: Not found in local cache, looking in remotes...
    ninja/1.11.1: Checking remote: conan-center
    ninja/1.11.1: Downloaded recipe revision 77587f8c8318662ac8e5a7867eb4be21
    cmake/3.27.7: Not found in local cache, looking in remotes...
    cmake/3.27.7: Checking remote: conan-center
    cmake/3.27.7: Downloaded recipe revision 6e11610a238b9292dffda14c34bb53e6
    vsg/1.0.9: Not found in local cache, looking in remotes...
    vsg/1.0.9: Checking remote: conan-center
    vsg/1.0.9: Downloaded recipe revision 16075e10184e4b9ac71f54e558228d8d
    imgui/1.89.8: Not found in local cache, looking in remotes...
    imgui/1.89.8: Checking remote: conan-center
    imgui/1.89.8: Downloaded recipe revision 3db675fa3f86e6c64d41909d18ec0eba
    implot/0.16: Not found in local cache, looking in remotes...
    implot/0.16: Checking remote: conan-center
    implot/0.16: Downloaded recipe revision 3a51885b13ee0bf6ae8dfce91dc409eb
    Graph root
        cli
    Requirements
        imgui/1.89.8#3db675fa3f86e6c64d41909d18ec0eba - Downloaded (conan-center)
        implot/0.16#3a51885b13ee0bf6ae8dfce91dc409eb - Downloaded (conan-center)
        vsg/1.0.9#16075e10184e4b9ac71f54e558228d8d - Downloaded (conan-center)
        vsgimgui/0.1.0#de003a306329b94e5a926450c3078818 - Cache
        vulkan-headers/1.3.239.0#3f678623fcd7aa3a39015b5770f4f31d - Downloaded (conan-center)
        vulkan-loader/1.3.239.0#f4addab2eb9f793087a3dfc9d16a91e2 - Downloaded (conan-center)
        xorg/system#de8fc1917bb3d11cf7a1d15eccf79c16 - Downloaded (conan-center)
    Build requirements
        cmake/3.27.7#6e11610a238b9292dffda14c34bb53e6 - Downloaded (conan-center)
        meson/1.2.2#aace9dcc1db58fa42ecb5292f724092d - Downloaded (conan-center)
        ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21 - Downloaded (conan-center)
        pkgconf/1.9.3#3e658ebc066dc868a1f8a472c1065368 - Downloaded (conan-center)
    Resolved version ranges
        cmake/[>=3.17.2 <4.0]: cmake/3.27.7
        vsg/[>1.0.5]: vsg/1.0.9
    Graph error
        Version conflict: Conflict between imgui/1.89.9 and imgui/1.89.8 in the graph.
    Conflict originates from implot/0.16
    
    Run conan graph info with your recipe and add --format=html to inspect the graph errors in an easier to visualize way.
    ERROR: Version conflict: Conflict between imgui/1.89.9 and imgui/1.89.8 in the graph.
    Conflict originates from implot/0.16
    
    Run conan graph info with your recipe and add --format=html to inspect the graph errors in an easier to visualize way.
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link
Contributor

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

@github-actions github-actions bot closed this Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants