0

When I try to compile this program using make command, it fails. I think I have all the neccessary libraries for this. Here is the screen shot of the trerminal with the compile fail.

enter image description here

And here is a part of the readme file:

        <=============SETTUP=============>

    To install the game, you will need the GNU GCC (G++) compiler as 
well as the SDL library v1.2 or greater and SDL_image extension 
library (for quicker and more versatile image loading) and SDL_ttf (for using true type fonts).

    After unpacking the archive, open up a terminal window,
browse to the folder where you unpacked and type in "make". The source
files have now been compiled, and you can now run the program by typing
./Invaders.

What should I do?

1 Answer 1

0

Execute the following command to install all the requirements mentioned in your post. And then do ./make

sudo apt-get install libtiff4 libtiff4-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev

16
  • :( Reading package lists... Done Building dependency tree Reading state information... Done libsdl-ttf2.0-dev is already the newest version. libsdl1.2-dev is already the newest version. Some packages could not be installed. Thismay mean that you have requestedanimpossiblesituationorifyouareusingthe unstabledistributionthatsomerequired packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmetdependencies: libsdl-image1.2-dev: Depends: libtiff4-dev but it is not going to be installed
    – magnumns
    May 6, 2013 at 14:32
  • Updated answer with tiff library. Please try now. May 6, 2013 at 14:39
  • Reading package lists... Done Building dependency tree Reading state information... Done libsdl-ttf2.0-dev is already the newest version. libsdl1.2-dev is already the newest version. The following packages have unmet dependencies: libtiff4-dev: Depends: libtiff4 (= 3.9.2-2) but 3.9.2-2ubuntu0.7 is to be installed E: Broken packages
    – magnumns
    May 6, 2013 at 14:51
  • I have this Ubuntu: ubuntu-desktop-10.04.4-tmd018-dvd.iso in VMware if that makes any difference. And here is the game acs.uns.ac.rs/sr/filebrowser/download/1430161
    – magnumns
    May 6, 2013 at 14:57
  • sudo apt-get update sudo apt-get autoclean sudo apt-get clean sudo apt-get autoremove Execute these commands one by one and then execute the command in the answer section. May 6, 2013 at 15:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .