Some questions about the linux version

Linux specific forum
Christian Uceda
User
User
Posts: 67
Joined: Thu Jul 29, 2010 10:53 am

Some questions about the linux version

Post by Christian Uceda »

Hi,

I just became a registered user of PB and as a curiosity I played a bit with the Linux version on an Ubuntu 10.10 beta. Bear in mind that I did not buy PB for the Linux version, I did it for the Windows one.

On my test I tried to make a small GUI app, it did not work, I compiled it and tested it on other Linux boxes, it did not work either on a Debian server nor any of my older Ubuntu's, but at least the behaviour was consistent.

But let's say the results were less than stellar (have a look at the picture, and the worst part wasn't the GUI oddities, but I understand Ubuntu 10.10 is a beta right now)

Image

What I want to know is how reliable are PB programs on Linux, I mean: if I compile something on let's say a Debian Lenny and I move it to an Ubuntu 9.04, what can I expect? I mean beside the library dependency issues. Is there a list of officially supported distros? Can PB on Linux compile static versions of binaries? What are the reasonable expectations for executable longevity?

Before anyone thinks bad, I do not mean to say that Linux's PB is bad or anything like that. What happens is that I know out of experience that Linux as a platform is a moving target, Kernel, APIS, ABIS, libraries and X server/video drivers break every five minutes, anything which is not an officially sanctioned Distro like Redhat Enterprise/Debian Stable is expected to break and to break often. For a non FOSS software product made by a small team supporting an environment like Linux it means a lot of work, which makes me wonder about how safe is for me to bet on spending time releasing apps based on PB.

So I would like to hear the experience from people who use it.
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Re: Some questions about the linux version

Post by dhouston »

I've had far more problems with the various flavors of Linux than with PB. Nearly every major update to a distro has broken something (and usually something major). At the moment, I don't have Ubuntu available (I installed Windows 7 on that HDD) but do have Kubuntu 10.04 and see no problems with my PB app under it. OTOH, Fedora 13 will not even let me compile and an executable compiled under Debian exhibits some problems when running under Fedora 13. I usually have all of the operating systems listed below...

Mac Mini (Intel) 10.6.2
Dell Dimension 2400 W98SE,W2K,XP,Vista,Windows-7,Debian,Ubuntu,Kubuntu,Xubuntu,Fedora,Mandriva (on swappable HDDs)

Most of the problems I have encountered are independent of PB and traceable to differences in the Linux distros. I have not seen the problem illustrated in your pix.
DoctorLove
User
User
Posts: 85
Joined: Sat Mar 06, 2010 2:55 pm

Re: Some questions about the linux version

Post by DoctorLove »

Well, you have a problem with GTK.

I think with the new beta of Ubuntu, they also upgraded GTK to a new version.
This has broken something.
Christian Uceda
User
User
Posts: 67
Joined: Thu Jul 29, 2010 10:53 am

Re: Some questions about the linux version

Post by Christian Uceda »

@dhouston

What you describe is what I'm expecting to find on the Linux version: "Distro Hell"

@DoctorLove

I know, It's obvious, I pointed out in my comment that I tried on an Ubuntu beta, and I was putting the blame there and not on PB. Btw for me each new release of Ubuntu runs worse than the last.

I'm only asking about people's experience with PB in Linux.
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Re: Some questions about the linux version

Post by dhouston »

Christian Uceda wrote:@dhouston
What you describe is what I'm expecting to find on the Linux version: "Distro Hell"`.
Yes - I agree. But, in case my earlier answer wasn't clear, I've had very few problems with PB even on flaky distros. By and large, PB has been fine. I'm not yet sure whether one issue is a PB issue or a gtk+ issue, and the Fedora 13 issue appears to be that there is no version of the xine lib for Fedora 13 - at least, I cannot find one that satisfies PB..
http://davehouston.org
Mac Mini (Intel) 10.6.8 - iMac G4 (PPC) 10.4.11
Dell Dimension 2400 W98SE,W2K,XP,Vista,W7,Debian,Ubuntu,Kubuntu,Xubuntu,Fedora,Mandriva,Mint
(on swappable HDDs)
Vizio VTAB1008 - Android 3.1
MK808 miniAndroidPC (Android 4.1)
John Duchek
User
User
Posts: 83
Joined: Mon May 16, 2005 4:19 pm
Location: St. Louis, MO

Re: Some questions about the linux version

Post by John Duchek »

I am using Mandriva Linux. After I read the readme that told me all the other items that had to be installed and made sure they were I have had less trouble with PB under linux than I have had under windows. (I have a long running problem in the windows (XP) version on all my computers. Everytime I hit F1 for help, PB closes. It drives me nuts.) No one else reports the problem and so it is likely an interaction between pb and another program that has usurped the F1 button. I still haven't been able to deal with it.

Anyway, I am very pleased with the Linux version.
John
John R. Duchek
St. Louis,MO
Robynsveil
User
User
Posts: 44
Joined: Fri Nov 30, 2012 2:07 pm

Re: Some questions about the linux version

Post by Robynsveil »

I have installed all the required files as per the instruction under Ubuntu 12.04 (Mint 13 is basically Ubuntu 12.04). Loading, PB is happy. Yet I have nil output from the most simple code, such as this:

Code: Select all

If OpenConsole()
  PrintN("1. Official PureBasic Home")
  PrintN("2. Official PureBasic Forums")
  PrintN("3. PureArea.net")
  PrintN("")
  PrintN("Enter a number from 1 To 3 and press Return: ")
  Destination.s = Input()
  Select Destination
    Case "1"
      RunProgram("http://www.purebasic.com")
    Case "2"
      RunProgram("http://forums.purebasic.com")
    Case "3"
      RunProgram("http://www.purearea.net")
    EndSelect
  EndIf
End
I am totally getting the feeling that Linux support for PB is a hastily added feature without any real substance to it. PB is thoroughly Windows-centric... I am regretting having invested in this.
:cry:
User avatar
Erlend
Enthusiast
Enthusiast
Posts: 114
Joined: Mon Apr 19, 2004 8:22 pm
Location: NORWAY

Re: Some questions about the linux version

Post by Erlend »

You example will not give any results when run normally, but create a executable and run that from console and it will give the expected results.

That beeing said RunProgram("url") will not work either, it will possibly work on Windows but on linux you must use something like this:
RunProgram("firefox","www.purebasic.com","")
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: Some questions about the linux version

Post by Kukulkan »

Windows:
RunProgram(uri.s)

Linux:
RunProgram("xdg-open", uri.s, "")

Mac:
RunProgram("open", uri.s, "")
Robynsveil
User
User
Posts: 44
Joined: Fri Nov 30, 2012 2:07 pm

Re: Some questions about the linux version

Post by Robynsveil »

Erlend wrote:You example will not give any results when run normally, but create a executable and run that from console and it will give the expected results.

That beeing said RunProgram("url") will not work either, it will possibly work on Windows but on linux you must use something like this:
RunProgram("firefox","www.purebasic.com","")
Thank you, Erland. I really do have a lot to learn, don't I? I think I might just focus on getting my head around the manual first - as was kindly suggested by Fred - and if I get really really stuck, I'll come back here and more humbly ask for help.

Thank you again for the pointer, Erland... :)
Robynsveil
User
User
Posts: 44
Joined: Fri Nov 30, 2012 2:07 pm

Re: Some questions about the linux version

Post by Robynsveil »

Kukulkan wrote:Windows:
RunProgram(uri.s)

Linux:
RunProgram("xdg-open", uri.s, "")

Mac:
RunProgram("open", uri.s, "")
Way excellent... I'll give that a go. Thank you, Kukulkan! :!:
Post Reply