BlitzMax on Ubuntu 14.04 2LTS (trusty)

Archives Forums/Linux Discussion/BlitzMax on Ubuntu 14.04 2LTS (trusty)

Scaremonger(Posted 2015) [#1]
Hi,

I finally upgraded my laptop from 12.04 (64bit) to 14.04 (64bit) and Blitzmax will not load. I was using 1.48 previously so I downloaded 1.50 and I still get the same problem.

I get the following message from ldd..
si@Cylon:~$ cd BlitzMax
si@Cylon:~/BlitzMax$ ls
bin  doc  docs  MaxIDE  mod  samples  src  versions.txt
si@Cylon:~/BlitzMax$ ldd MaxIDE
	linux-gate.so.1 =>  (0xf775f000)
	libX11.so.6 => not found
	libXxf86vm.so.1 => not found
	libGL.so.1 => not found
	libGLU.so.1 => not found
	libfreetype.so.6 => not found
	libXft.so.2 => not found
	libXpm.so.4 => not found
	libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7659000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7613000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf75f6000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf75da000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf742b000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7425000)
	/lib/ld-linux.so.2 (0xf7760000)

This shows that some of the files don't seem to have been installed so I looked them up on this page.

libGL.so is part of package libgl1-mesa-dev so I re-installed it, only to find that it was already there!

si@Cylon:~/BlitzMax$ sudo apt-get install libgl1-mesa-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgl1-mesa-dev is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

Files/Packages are as follows (But all of them are installed):
libX11.so	libgl1-mesa-dev
libXxf86vm.so	libxxf86vm-dev
libGL.so	libgl1-mesa-dev
libGLU.so	libglu1-mesa-dev
libfreetype.so	libfreetype6-dev
libXft.so	libxft-dev
libXpm.so	libxpm-dev

Does anyone have any suggestions?

Thanks in advance,
Si...


Derron(Posted 2015) [#2]
Did you read this thread ?

BTW: linux-gate.so.1 is one of the virtual DSO of the kernel - it is missing in our linux installations too :p.


bye
Ron


Scaremonger(Posted 2015) [#3]
Thanks @Derron.

It's obvious now I've fixed it, but MaxIDE is 32 bit so you need the i386 versions of the libraries:

sudo apt-get install libgl1-mesa-dev:i386
sudo apt-get install libxxf86vm-dev:i386
sudo apt-get install libglu1-mesa-dev:i386
sudo apt-get install libfreetype6-dev:i386
sudo apt-get install libxft-dev:i386
sudo apt-get install libxpm-dev:i386


Cheers.
Si...


dawlane(Posted 2015) [#4]
Unless there was a real big need to upgrade the OS, then you should have left it at Ubuntu 12.04 as it's supported until 2017. You will now find that those using 12.04 may have difficulty running your applications as a result of glibc and other library incompatibilities. To support 12.04 you either have to downgrade or use a chroot environment to compile your applications.

Installing the 32bit development files on a Debian based 64 bit distribution is something that I would not recommend. If you ever have the need to build a non 32bit application, then you have to mess around reinstalling the 64bit development libraries. You would then again have to reinstall the 32bit version to use BlitzMax.

Currently there should be no difference between the development include file headers. The real difference is with the system links and what they link to. The simplest method is to create an number of links to those libraries that will be in a known search path /usr/lib32. The only other alternative is to recompile bmk to include the library locations in the search path, but then you end up getting a chicken and the egg problem.

FYI if not known: What is linux-gate.so.1?