Repository navigation
|
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 *.oThe README steps I didn't do:
Well, just prematurely-basking/rambling here, next up, to try it out... will report back =) |
Answered by
metaleap
Dec 5, 2023
Replies: 1 comment
|
It actually works beautifully! Finally browsing that stunning built-in ImGui Demo applet 😁 |
0 replies
Answer selected by
metaleap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It actually works beautifully! Finally browsing that stunning built-in ImGui Demo applet 😁