-
Bit of a C++ newb, I'm really not fond of CMake syntax nor their docs, in fact I even dislike Makefile but at least can bear them more and I'll later generate them anyway. So just now, having previously locally built SFML 2.6.1 as a shared lib too, I "succeeded" with both these CXX = g++
CXXFLAGS = --debug -std=c++20 # -march=native -fPIE
build_imgui:
$(CXX) $(CXXFLAGS) -fPIC -c libdeps/imgui/*.cpp
$(CXX) $(CXXFLAGS) -shared -o lib/libimgui.so *.o
rm -f *.o
build_sfml_imgui:
$(CXX) $(CXXFLAGS) -fPIC -Ilibdeps/SFML/include -Ilibdeps/imgui -c libdeps/imgui-sfml/imgui-SFML.cpp
$(CXX) $(CXXFLAGS) -shared -o lib/libimguiSFML.so *.o
rm -f *.o The README steps I didn't do:
Well, just prematurely-basking/rambling here, next up, to try it out... will report back =) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It actually works beautifully! Finally browsing that stunning built-in ImGui Demo applet 😁 |
Beta Was this translation helpful? Give feedback.
It actually works beautifully! Finally browsing that stunning built-in ImGui Demo applet 😁