Giter Site home page Giter Site logo

push_swap_visualizer's People

Contributors

alvachon avatar immunefomo avatar mikastiv avatar mrlego8-9 avatar o-reo avatar t-h2o avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

push_swap_visualizer's Issues

Cannot compile on ARM architecture

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```

Compile for OSX

I work only on Linux so if someone can compile the project on OSX (ARM + AMD) I would gladly publish it in the releases :)

freetype2 header missing?

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

It doesn't work without printing list at start & end

I gave to visulizer number 0..3 so it fails
Screen Shot 2021-09-23 at 4 00 41 PM
Then I tried to print list before sort and after sort, so I get this
Screen Shot 2021-09-23 at 4 03 12 PM
And it 's work good. And show all iterations right. Why it doesn't work without print list before & after?

CTRL+A enables entering text in a slider

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.

core dumped when pressing CAPS LOCK key

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

Problème pour lancer le visualiser

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

Merge devlop into master

Some changes aren't merged into master from devlop from the last pull request. They could be merged 😀

Typo in Readme. [pyvis.py] should be [pyviz.py].

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.