benbotto / rubiks-cube-cracker

An OpenGL Rubik's Cube implementation with an optimal solver. Written in C++.
187 stars 23 forks source link

Running Program #5

Open alexquinta opened 6 months ago

alexquinta commented 6 months ago

Hi, I am on a windows 10 laptop and I am having trouble trying to run this program on my end. I'm not a programmer at all and I am interested in using this solver for a school project. One of my biggest issues is not knowing what anything does. I've downloaded several programs like minGW, code::block, VS code, and Docker, but i have no idea what to do from there. Do you have any advice, tips or even a step by step to help me with this. Anything would be appreciated, Thank you!

JonathanFerron commented 6 months ago

start with this instead for your project and then gradually work your way through the code from Ben. http://kociemba.org/cube.htm

there is lots for you to Learn: c and c++ programming, liNux, gtk, group theory, permutation groups in some details, etc. it's a lot of work but it's well worth it.

Jonathan


From: alexquinta @.> Sent: Thursday, December 21, 2023 5:20:55 PM To: benbotto/rubiks-cube-cracker @.> Cc: Subscribed @.***> Subject: [benbotto/rubiks-cube-cracker] Running Program (Issue #5)

Hi, I am on a windows 10 laptop and I am having trouble trying to run this program on my end. I'm not a programmer at all and I am interested in using this solver for a school project. One of my biggest issues is not knowing what anything does. I've downloaded several programs like minGW, code::block, VS code, and Docker, but i have no idea what to do from there. Do you have any advice, tips or even a step by step to help me with this. Anything would be appreciated, Thank you!

— Reply to this email directly, view it on GitHubhttps://github.com/benbotto/rubiks-cube-cracker/issues/5, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARLT7JP3RULIIUOAGCWCG4TYKSR3PAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TGMBXGIZTSNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

JonathanFerron commented 6 months ago

Learn a few different solving methods as this will gradually build your intuition to understand the Kociemba algo and eventually Ben's solver. 8355, Petrus, Roux and simplified Heise would be my suggestion assuming you're already familiar with cfop.


From: Jonathan Ferron @.> Sent: Thursday, December 21, 2023 6:34:25 PM To: benbotto/rubiks-cube-cracker @.>; benbotto/rubiks-cube-cracker @.> Cc: Subscribed @.> Subject: Re: [benbotto/rubiks-cube-cracker] Running Program (Issue #5)

start with this instead for your project and then gradually work your way through the code from Ben. http://kociemba.org/cube.htm

there is lots for you to Learn: c and c++ programming, liNux, gtk, group theory, permutation groups in some details, etc. it's a lot of work but it's well worth it.

Jonathan


From: alexquinta @.> Sent: Thursday, December 21, 2023 5:20:55 PM To: benbotto/rubiks-cube-cracker @.> Cc: Subscribed @.***> Subject: [benbotto/rubiks-cube-cracker] Running Program (Issue #5)

Hi, I am on a windows 10 laptop and I am having trouble trying to run this program on my end. I'm not a programmer at all and I am interested in using this solver for a school project. One of my biggest issues is not knowing what anything does. I've downloaded several programs like minGW, code::block, VS code, and Docker, but i have no idea what to do from there. Do you have any advice, tips or even a step by step to help me with this. Anything would be appreciated, Thank you!

— Reply to this email directly, view it on GitHubhttps://github.com/benbotto/rubiks-cube-cracker/issues/5, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARLT7JP3RULIIUOAGCWCG4TYKSR3PAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TGMBXGIZTSNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

alexquinta commented 6 months ago

Learn a few different solving methods as this will gradually build your intuition to understand the Kociemba algo and eventually Ben's solver. 8355, Petrus, Roux and simplified Heise would be my suggestion assuming you're already familiar with cfop. ____ From: Jonathan Ferron @.> Sent: Thursday, December 21, 2023 6:34:25 PM To: benbotto/rubiks-cube-cracker @.>; benbotto/rubiks-cube-cracker @.> Cc: Subscribed @.> Subject: Re: [benbotto/rubiks-cube-cracker] Running Program (Issue #5) start with this instead for your project and then gradually work your way through the code from Ben. http://kociemba.org/cube.htm there is lots for you to Learn: c and c++ programming, liNux, gtk, group theory, permutation groups in some details, etc. it's a lot of work but it's well worth it. Jonathan ____ From: alexquinta @.> Sent: Thursday, December 21, 2023 5:20:55 PM To: benbotto/rubiks-cube-cracker @.> Cc: Subscribed @.> Subject: [benbotto/rubiks-cube-cracker] Running Program (Issue #5) Hi, I am on a windows 10 laptop and I am having trouble trying to run this program on my end. I'm not a programmer at all and I am interested in using this solver for a school project. One of my biggest issues is not knowing what anything does. I've downloaded several programs like minGW, code::block, VS code, and Docker, but i have no idea what to do from there. Do you have any advice, tips or even a step by step to help me with this. Anything would be appreciated, Thank you! — Reply to this email directly, view it on GitHub<#5>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARLT7JP3RULIIUOAGCWCG4TYKSR3PAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TGMBXGIZTSNA. You are receiving this because you are subscribed to this thread.Message ID: @.>

Thank you for your response. Unfortunately my project was going to compare the algorithms of Kociemba, Thistlewaite, and Korf, so I am already familiar with kociemba’s program and I was hoping to get this to work to compare the 3. Although I’d like to get a deeper understanding of Ben’s work in the future, right now my only focus is somewhat of a brief understanding and then running the program, but if that seems unrealistic please let me know. From the look of it I might have to be reconsider my idea for this project :(

JonathanFerron commented 6 months ago

it's fairly straightforward to compile and run Ben's implementation on Linux. might take you a few hours. it's important to install the same older versions of GTK and other graphical libraries, otherwise you will have some code changes to do a some of the APIs have changed.

I use Arch Linux and QTCreator combined with NeoVim. Along with a build env (gcc, gtk and all), this should be all you need. I can dig

Impressive project for school!

Jonathan


From: alexquinta @.> Sent: Friday, December 22, 2023 6:06:32 AM To: benbotto/rubiks-cube-cracker @.> Cc: Jonathan Ferron @.>; Comment @.> Subject: Re: [benbotto/rubiks-cube-cracker] Running Program (Issue #5)

Learn a few different solving methods as this will gradually build your intuition to understand the Kociemba algo and eventually Ben's solver. 8355, Petrus, Roux and simplified Heise would be my suggestion assuming you're already familiar with cfop. … ____ From: Jonathan Ferron @.> Sent: Thursday, December 21, 2023 6:34:25 PM To: benbotto/rubiks-cube-cracker @.>; benbotto/rubiks-cube-cracker @.> Cc: Subscribed @.> Subject: Re: [benbotto/rubiks-cube-cracker] Running Program (Issue #5https://github.com/benbotto/rubiks-cube-cracker/issues/5) start with this instead for your project and then gradually work your way through the code from Ben. http://kociemba.org/cube.htm there is lots for you to Learn: c and c++ programming, liNux, gtk, group theory, permutation groups in some details, etc. it's a lot of work but it's well worth it. Jonathan ____ From: alexquinta @.> Sent: Thursday, December 21, 2023 5:20:55 PM To: benbotto/rubiks-cube-cracker @.> Cc: Subscribed @.> Subject: [benbotto/rubiks-cube-cracker] Running Program (Issue #5https://github.com/benbotto/rubiks-cube-cracker/issues/5) Hi, I am on a windows 10 laptop and I am having trouble trying to run this program on my end. I'm not a programmer at all and I am interested in using this solver for a school project. One of my biggest issues is not knowing what anything does. I've downloaded several programs like minGW, code::block, VS code, and Docker, but i have no idea what to do from there. Do you have any advice, tips or even a step by step to help me with this. Anything would be appreciated, Thank you! — Reply to this email directly, view it on GitHub<#5https://github.com/benbotto/rubiks-cube-cracker/issues/5>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARLT7JP3RULIIUOAGCWCG4TYKSR3PAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TGMBXGIZTSNA. You are receiving this because you are subscribed to this thread.Message ID: @.>

Thank you for your response. Unfortunately my project was going to compare the algorithms of Kociemba, Thistlewaite, and Korf, so I am already familiar with kociemba’s program and I was hoping to get this to work to compare the 3. Although I’d like to get a deeper understanding of Ben’s work in the future, right now my only focus is somewhat of a brief understanding and then running the program, but if that seems unrealistic please let me know. From the look of it I might have to be reconsider my idea for this project :(

— Reply to this email directly, view it on GitHubhttps://github.com/benbotto/rubiks-cube-cracker/issues/5#issuecomment-1867492128, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARLT7JIURPAS6P2DY55WNTDYKVLSRAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXGQ4TEMJSHA. You are receiving this because you commented.Message ID: @.***>

alexquinta commented 6 months ago

Thank you so much this is all so incredibly helpful. Sorry to ask but do you know what the older versions are? Or if they are listed somewhere in Bens work? Thank you again

On Fri, Dec 22, 2023 at 1:12 PM Jonathan Ferron @.***> wrote:

it's fairly straightforward to compile and run Ben's implementation on Linux. might take you a few hours. it's important to install the same older versions of GTK and other graphical libraries, otherwise you will have some code changes to do a some of the APIs have changed.

I use Arch Linux and QTCreator combined with NeoVim. Along with a build env (gcc, gtk and all), this should be all you need. I can dig

Impressive project for school!

Jonathan


From: alexquinta @.> Sent: Friday, December 22, 2023 6:06:32 AM To: benbotto/rubiks-cube-cracker @.> Cc: Jonathan Ferron @.>; Comment @.> Subject: Re: [benbotto/rubiks-cube-cracker] Running Program (Issue #5)

Learn a few different solving methods as this will gradually build your intuition to understand the Kociemba algo and eventually Ben's solver. 8355, Petrus, Roux and simplified Heise would be my suggestion assuming you're already familiar with cfop. … ____ From: Jonathan Ferron @.> Sent: Thursday, December 21, 2023 6:34:25 PM To: benbotto/rubiks-cube-cracker @.>; benbotto/rubiks-cube-cracker @.> Cc: Subscribed @.> Subject: Re: [benbotto/rubiks-cube-cracker] Running Program (Issue #5< https://github.com/benbotto/rubiks-cube-cracker/issues/5>) start with this instead for your project and then gradually work your way through the code from Ben. http://kociemba.org/cube.htm there is lots for you to Learn: c and c++ programming, liNux, gtk, group theory, permutation groups in some details, etc. it's a lot of work but it's well worth it. Jonathan ____ From: alexquinta @.> Sent: Thursday, December 21, 2023 5:20:55 PM To: benbotto/rubiks-cube-cracker @.> Cc: Subscribed @.> Subject: [benbotto/rubiks-cube-cracker] Running Program (Issue #5https://github.com/benbotto/rubiks-cube-cracker/issues/5) Hi, I am on a windows 10 laptop and I am having trouble trying to run this program on my end. I'm not a programmer at all and I am interested in using this solver for a school project. One of my biggest issues is not knowing what anything does. I've downloaded several programs like minGW, code::block, VS code, and Docker, but i have no idea what to do from there. Do you have any advice, tips or even a step by step to help me with this. Anything would be appreciated, Thank you! — Reply to this email directly, view it on GitHub<#5< https://github.com/benbotto/rubiks-cube-cracker/issues/5>>, or unsubscribehttps:// github.com/notifications/unsubscribe-auth/ARLT7JP3RULIIUOAGCWCG4TYKSR3PAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TGMBXGIZTSNA. You are receiving this because you are subscribed to this thread.Message ID: @.>

Thank you for your response. Unfortunately my project was going to compare the algorithms of Kociemba, Thistlewaite, and Korf, so I am already familiar with kociemba’s program and I was hoping to get this to work to compare the 3. Although I’d like to get a deeper understanding of Ben’s work in the future, right now my only focus is somewhat of a brief understanding and then running the program, but if that seems unrealistic please let me know. From the look of it I might have to be reconsider my idea for this project :(

— Reply to this email directly, view it on GitHub< https://github.com/benbotto/rubiks-cube-cracker/issues/5#issuecomment-1867492128>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/ARLT7JIURPAS6P2DY55WNTDYKVLSRAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXGQ4TEMJSHA>.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/benbotto/rubiks-cube-cracker/issues/5#issuecomment-1867615678, or unsubscribe https://github.com/notifications/unsubscribe-auth/BE3GE6HSKXPO52LJUSBVALDYKV2JRAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXGYYTKNRXHA . You are receiving this because you authored the thread.Message ID: @.***>

benbotto commented 6 months ago

Thank you for your interest in the program, @alexquinta, and thanks for jumping in and helping, @JonathanFerron. The easiest way to compile and run the program is with Docker, since the provided Docker image has all the dependencies installed. Take a look at the documentation, here: https://github.com/benbotto/rubiks-cube-cracker/blob/master/BUILDING.md

The thing is, the NVIDIA Container Toolkit is required. When I wrote the Docker image, that was only available under Linux. I did a quick Google search, and it looks like NVIDIA Container Toolkit can now be installed on Windows 10/11 with WSL2. So if you have an NVIDIA GPU, you could try to install Docker and NVIDIA Container Toolkit and see if you have any luck. Here are the docs: https://docs.docker.com/config/containers/resource_constraints/#gpu

If I get some time over the holidays, I'll see if I can get it running under Windows 11.

TheLeftyCoder commented 6 months ago

@alexquinta bro, I'm also trying to run this project can you share me your discord ID, I need some help my ID is = 1101010101011

alexquinta commented 6 months ago

I haven’t been able to get it running yet but when I do I will definitely let you know!

On Sat, Dec 23, 2023 at 10:23 AM Ashutosh @.***> wrote:

@alexquinta https://github.com/alexquinta bro, I'm also trying to run this project can you share me your discord ID, I need some help my ID is = 1101010101011

— Reply to this email directly, view it on GitHub https://github.com/benbotto/rubiks-cube-cracker/issues/5#issuecomment-1868250883, or unsubscribe https://github.com/notifications/unsubscribe-auth/BE3GE6A6RHYD2KBZABGZMALYK2PIZAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGI2TAOBYGM . You are receiving this because you were mentioned.Message ID: @.***>

alexquinta commented 6 months ago

Thank you for your response! I’ve been working at it and I think I’ve got NVIDIA Container Toolkit on my computer but I’m lost from what to do there. I understand I’m supposed to use Docker but I don’t really get how I am supposed to do so. Do you have any advice? I’ve tried looking up some tutorials but nothing seems helpful.

On Fri, Dec 22, 2023 at 3:04 PM benbotto @.***> wrote:

Thank you for your interest in the program, @alexquinta https://github.com/alexquinta, and thanks for jumping in and helping, @JonathanFerron https://github.com/JonathanFerron. The easiest way to compile and run the program is with Docker, since the provided Docker image has all the dependencies installed. Take a look at the documentation, here: https://github.com/benbotto/rubiks-cube-cracker/blob/master/BUILDING.md

The thing is, the NVIDIA Container Toolkit is required. When I wrote the Docker image, that was only available under Linux. I did a quick Google search, and it looks like NVIDIA Container Toolkit can now be installed on Windows 10/11 with WSL2. So if you have an NVIDIA GPU, you could try to install Docker and NVIDIA Container Toolkit and see if you have any luck. Here are the docs: https://docs.docker.com/config/containers/resource_constraints/#gpu

If I get some time over the holidays, I'll see if I can get it running under Windows 11.

— Reply to this email directly, view it on GitHub https://github.com/benbotto/rubiks-cube-cracker/issues/5#issuecomment-1867724569, or unsubscribe https://github.com/notifications/unsubscribe-auth/BE3GE6BMQPWMXETJ2YE4F2LYKWHNBAVCNFSM6AAAAABA67ANPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXG4ZDINJWHE . You are receiving this because you were mentioned.Message ID: @.***>

amirian commented 1 month ago

I also have problems running the app via docker. I have installed the NVIDIA Container Toolkit but I have no GPU installed. Is it necessary as a hardware requirement? The error message is as follows: docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy' nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown.