o-reo / push_swap_visualizer Goto Github PK
View Code? Open in Web Editor NEWA clean visualizer for your Push Swap Algorithm, you can't fix what you can't see !
License: GNU General Public License v3.0
A clean visualizer for your Push Swap Algorithm, you can't fix what you can't see !
License: GNU General Public License v3.0
Hello,
I cannot compile with a mac m1, I tried to check the Makefile but cannot find anything related to CPU architecture. Here's the log:
Thank you!
[ 97%] Linking CXX executable ../bin/visualizer
ld: warning: ignoring file ../_deps/imgui-sfml-build/libImGui-SFML.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
"ImGui::BeginChild(char const*, ImVec2 const&, bool, int)", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::SliderFloat(char const*, float*, float, float, char const*, int)", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::End()", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::SFML::ProcessEvent(sf::Event const&)", referenced from:
Gui::loop() in libVisualizerLib.a(gui.cpp.o)
"ImGui::SFML::Init(sf::RenderWindow&, bool)", referenced from:
Gui::loop() in libVisualizerLib.a(gui.cpp.o)
"ImGui::SFML::Render(sf::RenderTarget&)", referenced from:
Gui::loop() in libVisualizerLib.a(gui.cpp.o)
"ImGui::SFML::Update(sf::RenderWindow&, sf::Time)", referenced from:
Gui::loop() in libVisualizerLib.a(gui.cpp.o)
"ImGui::SFML::Shutdown()", referenced from:
Gui::loop() in libVisualizerLib.a(gui.cpp.o)
"ImGui::Text(char const*, ...)", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::Begin(char const*, bool*, int)", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::GetIO()", referenced from:
Gui::loop() in libVisualizerLib.a(gui.cpp.o)
"ImGui::Button(char const*, ImVec2 const&)", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::EndChild()", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::InputInt(char const*, int*, int, int, int)", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::SameLine(float, float)", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::InputText(char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, int, int (*)(ImGuiInputTextCallbackData*), void*)", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
"ImGui::SliderInt(char const*, int*, int, int, char const*, int)", referenced from:
Gui::_updateControls() in libVisualizerLib.a(gui.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/visualizer] Error 1
make[1]: *** [src/CMakeFiles/visualizer.dir/all] Error 2
make: *** [all] Error 2```
I work only on Linux so if someone can compile the project on OSX (ARM + AMD) I would gladly publish it in the releases :)
I'm having some issues trying to get the visualizer to work for me. During compilation with make in the build directory, once it reaches grabbing SFML eventually it'll throw an error due to a missing header file for "freetype", however I've also tested installing that library seperately via brew but no luck. Would appreciate any ideas. Error below:
In file included from /Users/gpasztor/Projects/Attempts/push_swap/push_swap_visualizer/build/_deps/sfml-src/src/SFML/Graphics/Font.cpp:35: /Library/Frameworks/Mono.framework/Headers/ft2build.h:56:10: fatal error: 'freetype/config/ftheader.h' file not found #include <freetype/config/ftheader.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Frameworks/Mono.framework/Headers/ft2build.h:56:10: note: did not find header 'config/ftheader.h' in framework 'freetype' (loaded from '/Users/gpasztor/Projects/Attempts/push_swap/push_swap_visualizer/build/_deps/sfml-src/extlibs/libs-osx/Frameworks') 1 error generated. make[2]: *** [_deps/sfml-build/src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Font.cpp.o] Error 1 make[1]: *** [_deps/sfml-build/src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/all] Error 2 make: *** [all] Error 2
I was trying to reproduce a weird behavior of the visualizer for quite a bit and I finally managed to consistantly make it work.
Pressing ctrl+a allows entering text in a slider as if it was a text field.
I'm guessing it's selecting the whole UI even though we can't see it.
But after selecting everything clicking once on a slider will allow normal keyboard input.
This is convenient for the speed slider so we can set it at more than 500/s but if a number too large in inputed it will crash the visualizer.
Not sure what is causing this but pressing caps lock key while the program is running will make it crash. No matter the context.
Also I'm not sure if it's related but sometimes I'm able to use the speed slide as if it was a normal field and I can input a number higher than 500, it happens sometimes but I haven't found what causes that behavior, it's a convenient bug though since it allows me to put the speed at something like 2000 instructions per second for bigger lists
Hello, j'essaie de lancer le visualiseur sur mon mac mais j'ai cette erreur :
Traceback (most recent call last):
File "pyviz.py", line 225, in
gui = PsGui(root)
Est-ce que tu saurais comment mettre à jour le script pour que ça (re) fonctionne s'il-te-plait ?
Merci
Some changes aren't merged into master from devlop from the last pull request. They could be merged 😀
it's show up "sh: 1: ../../push_swap: Permission denied", when pressed start.
Hey.
Your readme has a typo in that the file name to launch has an 's' instead of a 'z'.
The visualizer is great. Really helps to see what crazy things my push_swap was up to. Appreciate it.
Dav.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.