Author Topic: [PSA] Failing to install tilem-2.0 on Linux?  (Read 5681 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
[PSA] Failing to install tilem-2.0 on Linux?
« on: July 13, 2014, 06:26:43 pm »
This is a bug that struck me twice in six months (after wiping my computer twice and having to install TilEm on it each time), and each time took me half an hour to work out the solution, so I thought I'd post some instructions in case someone else runs into the same bug as me.

If you're compiling TilEm on Linux according to instructions (especially true for Ubuntu variants it seems) and run into an error "adding symbols: DSO missing from command line," edit the file tilem/gui/Makefile to replace the line
Code: [Select]
LIBS =with
Code: [Select]
LIBS = -lm. Recompiling should work without errors (assuming you have all the dependencies installed).

Hopefully the maintainers can modify their source to get rid of this bug, but for now that workaround works for me.




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [PSA] Failing to install tilem-2.0 on Linux?
« Reply #1 on: July 14, 2014, 01:34:52 am »
It's interesting to see TilEm being hard to install on Linux successfully considering it used to be Linux-only O.O

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [PSA] Failing to install tilem-2.0 on Linux?
« Reply #2 on: July 14, 2014, 01:38:15 am »
Yeah, I think it's specific to newer versions of Ubuntu variants or something like that.




Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [PSA] Failing to install tilem-2.0 on Linux?
« Reply #3 on: July 14, 2014, 03:39:37 am »
I've never had such issue on Arch using the pkgbuild provided in the AUR. So either Arch doesn't have the issue, or the pkgbuild has a patch.

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: [PSA] Failing to install tilem-2.0 on Linux?
« Reply #4 on: July 14, 2014, 05:00:14 pm »
I (ironically) had to solve this problem yesterday too (without internet). It does seem to be a fairly new issue, as I was able to compile it a while ago without problems, but it seems as if something changed in pkgbuild since the last time I compiled. I'm running Debian Jessie, the testing distro.
Another solution, which is very similar but (in my opinion) cleaner because it uses what the configure script already does:
Code: [Select]
LDFLAGS=-lm ./configure
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [PSA] Failing to install tilem-2.0 on Linux?
« Reply #5 on: July 14, 2014, 08:34:52 pm »
Might be a Debian thing then (since Ubuntu is built on it).

Thanks for the tip. I'm not very familiar with gcc so my solution was more guess and check from random hints around the internet.




Offline utz

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 161
  • Rating: +28/-0
    • View Profile
    • official hp - music, demos, and more
Re: [PSA] Failing to install tilem-2.0 on Linux?
« Reply #6 on: August 02, 2014, 02:26:16 pm »
Yes, the "DSO missing from command line" appeared under Debian recently. I'm getting it all the time, usually it's either a missing LIBS flag, or the order of the flags is wrong.

I'm having another error with compiling tilem though. For some reasons it keeps telling me that it can't find libticalcs2 (which is of course installed), and tells me to add the path to ticalcs2.pc to PKG_CONFIG_PATH. Which I did (export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig), but that doesn't change anything. Any suggestions on how to fix this?
Edit: Nevermind. I still don't have a clue what went wrong, but the latest dist-upgrade fixed it.
« Last Edit: August 02, 2014, 03:44:54 pm by utz »