Author Topic: Trouble installing on Linux Mint  (Read 5244 times)

Offline plasmafan

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Trouble installing on Linux Mint
« on: September 27, 2016, 09:02:35 pm »
Hello. I am trying to install Open Xcom under Linux Mint via the Ubuntu packages, however I keep getting the error "Unsupported Image Format" with .lbm files in the UFOINTRO folder. I checked the wiki and all of the required packages appear to be installed in the package manager, and I'm pretty sure that my files are in the right folder, but I still get this error. I'm not sure what to do and any advice would be appreciated. I would just run it under wine instead, but that isn't working either.

Offline R1dO

  • Colonel
  • ****
  • Posts: 437
    • View Profile
Re: Trouble installing on Linux Mint
« Reply #1 on: September 28, 2016, 12:47:58 am »
Unsupported format sounds like one of the following cases:
  • your files are damaged
  • openxcom is depending on some libraries not available on your system

The first one can be solved by downloading the original game files again.
The second one hints at some broken dependencies. Since there are at least 2 apt-repositories providing openxcom (i'm guessing you're using one of those, since oxc is not in the default ubuntu repositories) some more information is required. For instance by providing us with the output of:
Code: [Select]
apt list openxcom
P.s. since the information in your original post was pretty general, i made the following assumptions about your OS version (latest mint) and source of your original files (steam/gog).

Offline plasmafan

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Trouble installing on Linux Mint
« Reply #2 on: September 28, 2016, 02:02:14 am »
Sorry, to be more specific I am using an original (floppy) copy of X-Com which has been fully patched, and I am using Linux Mint 18. The game works normally in DosBox as far as i can tell.

The result of that command is: openxcom/xenial,now 1.0-2~xenial2 amd64 [installed]

I have the milestone version installed also, not the nightly version.

also, on the wiki for linux it says to have a list of packages installed; here are the versions of the packages i have installed for the various packages:

libsdl2-2.0-0
libsdl-mixer1.2
libsdl-gfx1.2-5
libsdl-image1.2
libyaml-cpp0.5v5
« Last Edit: September 28, 2016, 02:16:33 am by plasmafan »

Offline R1dO

  • Colonel
  • ****
  • Posts: 437
    • View Profile
Re: Trouble installing on Linux Mint
« Reply #3 on: September 28, 2016, 03:01:42 am »
Ok some apologies from my side, the code fragment was supposed to be
Code: [Select]
apt show openxcom (i'm looking for the (apt-)repository that provided the game)

libsdl2-2.0-0
If you have this one instead of something like libsdl1.2debian that might be the problem. oxc is using sdl1.2 not sdl2.

libyaml-cpp0.5v5
Although probably not the cause of the current error, a word of warning is warranted. This specific libyaml version (Version: 0.5.2-3) is known not to work with oxc. You either need to build your own version from source, or look for a different version in your trusted apt repositories.

I have the milestone version installed also, not the nightly version.
Just a heads-up. The general consensus on the forum is that it is better to use the nighlies. Most popular mods require a recent nightly, and a lot of annoying bugs are fixed.

Offline plasmafan

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Trouble installing on Linux Mint
« Reply #4 on: September 28, 2016, 04:02:58 am »
The result from the input is:
Code: [Select]
$ apt show openxcom
Package: openxcom
Version: 1.0-2~xenial2
Priority: optional
Section: games
Maintainer: Krzysztof Knapik <knapsu@gmail.com>
Installed-Size: 7,773 kB
Depends: libc6 (>= 2.14), libgcc1 (>= 1:3.0), libgl1-mesa-glx | libgl1, libsdl-gfx1.2-5 (>= 2.0.25), libsdl-image1.2 (>= 1.2.10), libsdl-mixer1.2, libsdl1.2debian (>= 1.2.11), libstdc++6 (>= 5.2), libyaml-cpp0.5v5
Download-Size: 1,964 kB
APT-Manual-Installed: yes
APT-Sources: https://ppa.launchpad.net/knapsu/openxcom/ubuntu xenial/main amd64 Packages
Description: Open-source clone of UFO: Enemy Unknown
 OpenXcom is an open-source clone of the popular UFO: Enemy Unknown (X-COM: UFO Defense in USA)
 turn-based strategy game by MicroProse. It is written in C++ / SDL and licensed under the GPL.
 OpenXcom requires game resources from the original game (DOS, Windows or Steam version).


I did a search for libsdl1.2debian in synaptic and it says that it is installed. I was kind of hoping it wasn't  because it would be a nice simple problem. I'll take a look at libyaml also. I did attempt to install the nightly version, but no matter what I did it gave me an error saying "No Xcom Installation Detected", so I went back to the other version.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Trouble installing on Linux Mint
« Reply #5 on: September 28, 2016, 05:09:06 am »
You may want to read through this forum post, as it contains a good bit of information on getting the correct data from the original game in the correct places and trying to fix a Linux milestone vs. nightly issue: https://openxcom.org/forum/index.php/topic,4884.0.html
The problem you probably ran into with installing the nightly is that you didn't completely uninstall the milestone, which has been known to cause issues like this if you're not very careful about keeping the directories separate.

You will probably get the best tech support on this forum by running a nightly build, by the way.

Offline plasmafan

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Trouble installing on Linux Mint
« Reply #6 on: September 28, 2016, 06:21:11 am »
Alright well in the spirit of experimentation, I removed the milestone package, deleted every openxcom folder I could locate, and installed the ubuntu/mint nightly package from the main page downloads section. I put the game files in the UFO folder in usr/share/games/openxcom and this is what I get:

Code: [Select]
[27-09-2016_23-08-46] [INFO] Data folder is: /usr/share/games/openxcomhttps://
[27-09-2016_23-08-46] [INFO] Data search is:
[27-09-2016_23-08-46] [INFO] - /home/user/UFO/
[27-09-2016_23-08-46] [INFO] - /home/user/.local/share/openxcom/
[27-09-2016_23-08-46] [INFO] - /usr/share/mate/openxcom/
[27-09-2016_23-08-46] [INFO] - /usr/local/sharehttps://openxcom/
[27-09-2016_23-08-46] [INFO] - /usr/sharehttps://openxcom/
[27-09-2016_23-08-46] [INFO] - /usr/share/mdmhttps://openxcom/
[27-09-2016_23-08-46] [INFO] - /usr/local/share/openxcom/
[27-09-2016_23-08-46] [INFO] - /usr/share/openxcom/
[27-09-2016_23-08-46] [INFO] - /usr/share/games/openxcomhttps://
[27-09-2016_23-08-46] [INFO] - ./
[27-09-2016_23-08-46] [INFO] User folder is: /home/user/.local/share/openxcom/
[27-09-2016_23-08-46] [INFO] Config folder is: /home/user/.config/openxcom/
[27-09-2016_23-08-46] [INFO] Options loaded successfully.
[27-09-2016_23-08-46] [INFO] SDL initialized successfully.
[27-09-2016_23-08-46] [INFO] SDL_mixer initialized successfully.
[27-09-2016_23-08-46] [INFO] requested file not found: openxcom.png
[27-09-2016_23-08-47] [INFO] Attempting to set display to 640x400x8...
[27-09-2016_23-08-47] [INFO] Display set to 640x400x8.
[27-09-2016_23-08-47] [INFO] Loading data...
[27-09-2016_23-08-47] [INFO] Scanning standard mods in '/usr/share/games/openxcomhttps://standard'...
[27-09-2016_23-08-47] [INFO] Scanning user mods in '/home/user/.local/share/openxcom/mods'...
[27-09-2016_23-08-47] [INFO] Mapping resource files...
[27-09-2016_23-08-47] [ERROR] Failed to open directory: /usr/share/games/openxcomhttps://UFO/GEODATA

It was doing something similar to this with the milestone version, so I was using sudo to give it permissions to open the folders, since they're in root. However, when I run sudo openxcom with the nightly it gives me this: sudo: openxcom: command not found 


Nevermind guys: All I had to do was put my game date into the UFO folder in /home/user/.local/share/openxcom/ and it started working right away. Thank you both for your help. Now I just need to get my saves from dosbox working and everything will be perfect.
« Last Edit: September 28, 2016, 08:43:29 am by plasmafan »

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2381
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: Trouble installing on Linux Mint
« Reply #7 on: September 28, 2016, 05:51:09 pm »
Though this is specific to windows, an explanation of getting original dosbox saves is available in the video tutorial here: https://youtu.be/L1WUpX9n7gY?t=8m53s
The principles should be the same.