Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Release][GUI] ImGui-SFML  (Read 17446 times)

0 Members and 2 Guests are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9205
    • View Profile
    • development blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #45 on: November 11, 2018, 02:15:43 pm »
Do you link ImGui-SFML or are you including the source files in your build?
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

poww10s

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [Release][GUI] ImGui-SFML
« Reply #46 on: November 12, 2018, 12:45:05 am »
I'm including the sources files in my project. or pointing to them in my includepaths.

Elias Daler

  • Hero Member
  • *****
  • Posts: 570
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #47 on: November 17, 2018, 09:54:24 am »
Make sure that imgui-SFML.cpp is built in your project. If it isn't - you didn't add it to your project right.
Tomb Painter, Re:creation dev | eliasdaler.github.io | @EliasDaler | Tomb Painter dev log

Sub

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: [Release][GUI] ImGui-SFML
« Reply #48 on: November 21, 2018, 12:05:34 am »
I just want to register my appreciation for you making these bindings and making them open source.  Works great.

Elias Daler

  • Hero Member
  • *****
  • Posts: 570
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #49 on: November 24, 2018, 03:41:00 pm »
I just want to register my appreciation for you making these bindings and making them open source.  Works great.
Glad it works for you, and thanks. :)
Tomb Painter, Re:creation dev | eliasdaler.github.io | @EliasDaler | Tomb Painter dev log

DerrickMcKibben

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: [Release][GUI] ImGui-SFML
« Reply #50 on: December 23, 2018, 11:31:45 am »
Hi, I keep getting these errors, I've done all the Dbal max product recommended solutions but I'm unsure how to proceed.

Quote
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:38: undefined reference to `ImGui::SFML::Init(sf::RenderWindow&, bool)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:50: undefined reference to `ImGui::SFML::ProcessEvent(sf::Event const&)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:60: undefined reference to `ImGui::SFML::Update(sf::RenderWindow&, sf::Time)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:61: undefined reference to `ImGui::Begin(char const*, bool*, int)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:63: undefined reference to `ImGui::End()'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:66: undefined reference to `ImGui::SFML::Render(sf::RenderTarget&)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:72: undefined reference to `ImGui::SFML::Shutdown()'
collect2.exe: error: ld returned 1 exit status

This should just be a simple fix right? I feel like this is an obvious fix.

I'm also getting the same errors whereas it worked for people above us. Strange, isn't it?
« Last Edit: March 07, 2019, 03:42:43 pm by DerrickMcKibben »

Elias Daler

  • Hero Member
  • *****
  • Posts: 570
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #51 on: December 24, 2018, 02:49:17 pm »
Hi, I keep getting these errors, I've done all the recommended solutions but I'm unsure how to proceed.

Quote
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:38: undefined reference to `ImGui::SFML::Init(sf::RenderWindow&, bool)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:50: undefined reference to `ImGui::SFML::ProcessEvent(sf::Event const&)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:60: undefined reference to `ImGui::SFML::Update(sf::RenderWindow&, sf::Time)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:61: undefined reference to `ImGui::Begin(char const*, bool*, int)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:63: undefined reference to `ImGui::End()'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:66: undefined reference to `ImGui::SFML::Render(sf::RenderTarget&)'
D:\Daniel\Documents\Rust\rgRPG/src/main.cpp:72: undefined reference to `ImGui::SFML::Shutdown()'
collect2.exe: error: ld returned 1 exit status

This should just be a simple fix right? I feel like this is an obvious fix.

I'm also getting the same errors whereas it worked for people above us. Strange, isn't it?

Hello. Please follow this tutorial: https://eliasdaler.github.io/using-imgui-with-sfml-pt1/

You probably didn't do step 5 in "Setting up"
Tomb Painter, Re:creation dev | eliasdaler.github.io | @EliasDaler | Tomb Painter dev log

Elias Daler

  • Hero Member
  • *****
  • Posts: 570
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #52 on: February 24, 2019, 10:45:53 pm »
Worked very hard on this branch of ImGui-SFML recently: https://github.com/eliasdaler/imgui-sfml/tree/develop

Please, check it out! See how easy it is to integrate ImGui-SFML into your CMake-based projects. If it all goes well for everyone, it'll be soon merged into master and ImGui-SFML v.2.0 will be here.

Basically, all you have to do now is this:

find_package(ImGui-SFML REQUIRED)
target_link_libraries(my_target PRIVATE ImGui-SFML::ImGui-SFML)
Tomb Painter, Re:creation dev | eliasdaler.github.io | @EliasDaler | Tomb Painter dev log

Elias Daler

  • Hero Member
  • *****
  • Posts: 570
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML (v2.0)
« Reply #53 on: May 10, 2019, 05:57:53 pm »


https://github.com/eliasdaler/imgui-sfml/releases/tag/v2.0

Note the updated usage requirements!

* SFML >= 2.5.0
* ImGui >= 1.68

This release greatly improves CMake and build support:

  • Added versioning to CMake
  • Added better install rules
  • You can now easily link to ImGui-SFML - just do this:

find_package(ImGui-SFML REQUIRED)
target_link_libraries(my_target PRIVATE ImGui-SFML::ImGui-SFML)

  • Can now build ImGui-SFML as shared library
  • Can now provide path and name to custom imconfig if you don't want to use default imconfig-SFML.h
  • Fixed some warnings on some compiers
  • Check ImGui and SFML version in CMake

This release doesn't bring new features, but it's the first release which has proper version in CMake + it's just so good, it's a shame not to name it "2.0".

Semantic versioning will be used for future releases.
Tomb Painter, Re:creation dev | eliasdaler.github.io | @EliasDaler | Tomb Painter dev log

Elias Daler

  • Hero Member
  • *****
  • Posts: 570
    • View Profile
    • Blog
    • Email
Re: [Release][GUI] ImGui-SFML
« Reply #54 on: May 13, 2019, 01:29:22 pm »
Tomb Painter, Re:creation dev | eliasdaler.github.io | @EliasDaler | Tomb Painter dev log