Author Topic: Getting a Linux program up and running #2  (Read 25252 times)

MrTAToad

  • Guest
Re: Getting a Linux program up and running #2
« Reply #30 on: 2010-May-03 »
One other thing that isn't included is the SDL library - however, there should be no problem getting that.

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: Getting a Linux program up and running #2
« Reply #31 on: 2010-May-03 »
Thank you MrTAToad!!

MrTAToad

  • Guest
Re: Getting a Linux program up and running #2
« Reply #32 on: 2010-May-05 »
By the way, you've blocked my personal messages - with regards to your query, I only tend to use simple things in Terminal and just stick to the GUI...

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: Getting a Linux program up and running #2
« Reply #33 on: 2010-May-05 »
Apologies, about that.  I have 20/200 sometimes "options" get set improperly  :(

Offline CrystalNoir

  • Mc. Print
  • *
  • Posts: 33
    • View Profile
Re: Getting a Linux program up and running #2
« Reply #34 on: 2011-Aug-29 »
Hi everybody,

I've done some testing with the last Ubuntu 11.04 Natty and there is a few step to get GLbasic apps to work properly ;)

I started with a fresh install of Ubuntu.

1 - Install Ubuntu 11.04

So, that's easy, just install the Os. Follow the process.

2. Update Ubuntu

You need to update Ubuntu first. To do this, follow these steps

Code: GLBasic [Select]
sudo apt-get update

Code: GLBasic [Select]
sudo apt-get dist-upgrade

Code: GLBasic [Select]
sudo apt-get upgrade

That's take a while to complete...and the reboot the system

3 - The graphic card

I have an ATI video card, but it's the same with Nvidia.

Ubuntu tells you that there are some owner drivers of your card. Install them. If Ubuntu doesn't say anything, just go in the system properties and click on the "Other drivers" option to install them.

4 - Installing free and non-free codec

I've installed some codecs before try running a GLBasic program. These codecs let you play some multimedia files like mp3, video etc..

To do all of these, we use the medibuntu repo. I give you a link that explain you how to use Medibuntu repo. Be aware that for some codecs there is a legal notice, depend of the country you are :

https://help.ubuntu.com/community/Medibuntu

5 - And that'all ?

Yes ! that's all, you don't need anything else. SDL en stdc++ are already installed :) you can now enjoy GLBasic App under Linux :)

I tested this on my PC (AMD x64) with Ubuntu 11.04

Have fun and Happy GLB !


« Last Edit: 2011-Aug-29 by CrystalNoir »

Offline fuzzy70

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 828
  • Look left, Look right, LOOK OUT!!
    • View Profile
Re: Getting a Linux program up and running #2
« Reply #35 on: 2013-May-23 »
I recently installed Ubuntu 13.04 x64 & I get the following error
Code: GLBasic [Select]
./lesson_thirteen.linux: error while loading shared libraries: libSDL_mixer-1.2.so.0: cannot open shared object file: No such file or directory
 

SDL Mixer is installed including the dev package so naturally I assume it is the x64 version. Obviously building my own from the SDL source creates a x64 version as well. A google search lead me to some Ubuntu forums with regards to installing 32bit libs by appending :i386 to the end of the required package (used to have a different ending but changed in V11 or 12 of ubuntu).

After entering
Code: GLBasic [Select]
sudo apt-get install libsdl-mixer1.2:i386
everything works fine.

A WORD OF WARNING: DO NOT INSTALL THE 32bit DEV FILES OTHERWISE IT WILL WANT TO REMOVE A LOT OF PACKAGES.
for example entering
Code: GLBasic [Select]
sudo apt-get install libsdl-mixer1.2-dev:i386
comes up with this
Code: GLBasic [Select]
 

As you can see it would cause a lot of problems to your install.

If you distribute your app/game etc on Linux (ubuntu that is as not sure on other distro's) it might be worth mentioning the need for the 32bit SDL_Mixer if they are running an x64 system.

Lee
"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1142
    • View Profile
    • My GLBasic code archiv
Re: Getting a Linux program up and running #2
« Reply #36 on: 2013-May-23 »
So with this it can run on 64bit linux? Cool I always though we are limited to 32bit linux.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Offline fuzzy70

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 828
  • Look left, Look right, LOOK OUT!!
    • View Profile
Re: Getting a Linux program up and running #2
« Reply #37 on: 2013-May-23 »
It's still a 32bit program obviously but that's all I had to type to get it working. I'm running GLB in windows XP via VMWARE player & assigned a shared directory so I can compile straight to the directory on the linux host without messing about making it in windows then rebooting into linux etc etc.

Lee
"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)

MrTAToad

  • Guest
Re: Getting a Linux program up and running #2
« Reply #38 on: 2013-May-24 »
A lot of the packages that GLBasic Linux programs needs are no longer supported - getting the required files are certainly problematic now unfortunately.  Gernot did try with the lastest library files, but there were... problems...

Offline fuzzy70

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 828
  • Look left, Look right, LOOK OUT!!
    • View Profile
Re: Getting a Linux program up and running #2
« Reply #39 on: 2013-May-24 »
A lot of the packages that GLBasic Linux programs needs are no longer supported - getting the required files are certainly problematic now unfortunately.  Gernot did try with the lastest library files, but there were... problems...

One command worked for me so maybe it was luck with the current version of Ubuntu. It did download another 7 or 8 packages along with sdl_mixer x32 but no more than a couple of MB's worth total.

With regards to your post about the latest libraries, are you referring to x64 versions or other distro's like Redhat/Suse/Debian etc.

It would be interesting to know what required files GLB needs for Linux are getting problematic to obtain, purely for an inquisitive point of view. I just installed Purebasic as well & that was fun with it's dependencies, however that is a native app unlike GLB so expected some hassle in that department  :D

Lee
"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)

MrTAToad

  • Guest
Re: Getting a Linux program up and running #2
« Reply #40 on: 2013-May-24 »
Its mainly the C/C++ library - it is now rather difficult to get.

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1142
    • View Profile
    • My GLBasic code archiv
Re: Getting a Linux program up and running #2
« Reply #41 on: 2013-May-24 »
Since some time almost everything is included, only needed packages are the SDL mixer ones. At least thats the experince that i made with Ubuntu related distros.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

MrTAToad

  • Guest
Re: Getting a Linux program up and running #2
« Reply #42 on: 2013-May-24 »
It will try to install the C library too if needed - the problem being the latest one isn't compatible and by default older versions are not longer available...

Its even worse with the 64-bit version of Ubuntu...
« Last Edit: 2013-May-24 by MrTAToad »

Offline Hark0

  • Prof. Inline
  • *****
  • Posts: 1020
  • Geek Developer
    • View Profile
    • LitioPixel - Desarrollo de videojuegos con GLBasic | Videogame development with GLBasic
Re: Getting a Linux program up and running #2
« Reply #43 on: 2013-Aug-23 »


Hi! I just downloaded yesterday last Ubuntu 13.4 for Dekstop (32).

3 Steps for run app on Linux:

1.- Installed Linux OS on Virtual Machine.
2.- Open Ubuntu App Updater and find for SDL Mixer and install it. (Clic on option for advanced packages).
3.- Open terminal, go to path of GLB app and type "./gameglb.linux".

And volià! App working! (compiled with GLB 11.414)  :)


My 2 questions:

1.- How add working icon on Linux?
2.- How make auto run app (2 clics) to avoid Terminal use?

Thanks!
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Re: Getting a Linux program up and running #2
« Reply #44 on: 2013-Aug-23 »
Take a look here Hark0... I think whit this steps are possible, I read only the first part and I think it's you needed...
http://www.ubuntugeek.com/how-to-add-an-icon-to-apps-in-ubuntus-application-menu-that-only-show-a-generic-icon.html