Linux - GamesThis forum is for all discussion relating to gaming in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I thought I found a Hearts card game for Linux here {I'm using Mint). After following the instructions to the letter on how to build this from source code, during the compilation no errors appeared on the terminal after several minutes of activity. Each step under instruction 3 was carried out. However when finished, 2 issues arose. 1) There are no instructions saying how to start this game. 2) Nothing is showing in 'usr/share/applications', which is a good clue that it hasn't installed properly, if at all. Nothing is showing in 'dpkg -l' either with a reference to 'Hearts'.
All I seem to have new is within my home folder, ie a sub-folder named 'Hearts' with a lot of files with object/source code extensions .o and .h. etc and a few folders with image files. Then I noticed under instruction 2 it mentions in brackets, files for Ubuntu 16.04 (which I did install first). But I have Mint 20.3. So I'm more confused. Was this installation meant to be used for Mint, anyway?
There's not much here to go on, but if errors appeared while you were attempting to build the application from sources, it is likely the build failed, even if you followed the succeeding steps. Among other things, to build from sources, kernel headers must be installed, and, to the best of my knowledge, Mint does not install kernel headers by default. (Most distros do not install kernel headers by default so as to reduce the size of the install *.iso.)
If you re-attempt the build and post the error messages, we may be able to help you.
A web search for "cards hearts linux" tells me that there is a snap package. You might take a look at that.
What did you do after make? Did you install it in any way? If not, its just sitting there and you can probably run it from right where it is. Or you can try
Code:
sudo make install
if the Makefile has defined a method to install it, and hopefully add a menu entry (.desktop file). If not you can do that manually.
There's not much here to go on, but if errors appeared while you were attempting to build the application from sources, it is likely the build failed, even if you followed the succeeding steps. Among other things, to build from sources, kernel headers must be installed, and, to the best of my knowledge, Mint does not install kernel headers by default. (Most distros do not install kernel headers by default so as to reduce the size of the install *.iso.)
If you re-attempt the build and post the error messages, we may be able to help you.
A web search for "cards hearts linux" tells me that there is a snap package. You might take a look at that.
If you read my op I said that there were no error messages shown on the terminal. The compilation appeared to complete and I had followed the instructions in step 3 to the letter. So clearly the instructions are wrong, incomplete or the package is unsuitable for Mint 20.3.
What did you do after make? Did you install it in any way? If not, its just sitting there and you can probably run it from right where it is. Or you can try
Code:
sudo make install
if the Makefile has defined a method to install it, and hopefully add a menu entry (.desktop file). If not you can do that manually.
I did nothing after 'make'. There was nothing further in the instructions after that.
Here's the first part of the Makefile you mentioned. Any idea how I proceed from here?
The executable is built right in the repo's root directory and is called - surprise - Hearts.
So, doubleclick it, or, in a terminal opened in that folder, execute
You know, I can totally relate to your situation. My partner is all about card games and puzzles, but I was never really into them until we stumbled upon Dominoes during the whole COVID mess. At first, I wasn't too excited about it, but I gotta say, it's grown on me big time. We even made up our own set of rules to keep things interesting.
But let me tell you about this other game I've been getting into lately: solitaire. Yeah, I know, it sounds kinda old-school, but bear with me. I stumbled upon this online version recently, and man, it's been a game-changer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.