No installer for linux?

Linux specific forum
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Re: No installer for linux?

Post by dhouston »

Amiga5k wrote:What do the "seasoned" Linux-PB developers here do? Mainly, I mean developers who do their primary or even exclusive developing on their Linux machine and have been doing it for some time...
According to your definition, I don't qualify as a seasoned developer - I developed my rather large app on Windows XP and then ported it to Linux and OSX (with minimal difficulties). Ubuntu has been the most popular for a few years but I prefer Debian as it has proven to be far more stable. The only problem I've ever had with it came a about 18 months back when it began having trouble recognizing the built-in graphics chip on my (rather ancient) Dell. I sometimes had to launch 9-10 times to get it to load the desktop. Since I had to add a graphics card to run Windows 7, that problem went away. Debian's stability is directly related to the fact that its updates are far less frequent than most distros. All of the others, including Ubuntu, have had major problems, usually following the near weekly updates of numerous items.

However, I do not run any version of Linux for more than a few hours per month - just long enough for Update Manager to do its thing and to test any code changes I may have made in my app. I give each its own hard disk (swappable) as I found it a major hassle to deal with updates/upgrades when there were multiple partitions. Changes made to boot menus were a PITA. One advantage is that most will still run on a 10GB HDD and I found a cheap source ($5 ea) from an Apple dealer who pulled them from older Macs.
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)
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: No installer for linux?

Post by DarkDragon »

MachineCode wrote:
dhouston wrote:Which, of the 57,000 varieties of Linux do you recommend they support?
And this is precisely why Windows will always be the dominant OS. Linux has too many cooks spoiling the broth.
And this is a good reason for experts to switch to linux: no amateurs! Let us never change this!
bye,
Daniel
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Re: No installer for linux?

Post by AND51 »

MachineCode wrote:
dhouston wrote:Which, of the 57,000 varieties of Linux do you recommend they support?
And this is precisely why Windows will always be the dominant OS. Linux has too many cooks spoiling the broth.
Dominating on Desktop Computers only (IMHO). On te server side, Linux will dominate, I tink.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
lakomet
User
User
Posts: 53
Joined: Mon Apr 04, 2011 3:56 am
Location: Russia,Angarsk

Re: No installer for linux?

Post by lakomet »

Hello. Excuse if not on a theme, for association of icons to files "*.pb, *.pbi, *.pbv, *.pbp", has made so

Code: Select all

ProgPath.s=GetPathPart(ProgramFilename())
Per_Str.s = #LF$
Enumeration
  #Window_0
  
  #Text_0
  #Text_1
  #Text_2
  #Text_3
  #Text_4
  #Text_5
  #Text_6
  #Text_7
  #Text_8
  #Text_9
  #Text_10
  #Text_11
  
  #String_0
  #String_1
  
  #Button_0
  #Button_1
  #Button_2
  #Button_3
  #Button_4
  #Button_5
  #Button_6
  #Button_7
  #Button_8
  #Button_9
  #Button_10
EndEnumeration

ProgPath.s=GetPathPart(ProgramFilename())

If OpenWindow(#Window_0, 409, 227, 409, 255, "Установка иконки (.png)",  #PB_Window_SystemMenu |  #PB_Window_ScreenCentered)
  TextGadget(#Text_0, 10, 10, 350, 20, "Иконка 16х16")
  TextGadget(#Text_1, 10, 30, 350, 20, "Иконка 22х22")
  TextGadget(#Text_2, 10, 50, 350, 20, "Иконка 32х32")
  TextGadget(#Text_3, 10, 70, 350, 20, "Иконка 36х36")
  TextGadget(#Text_4, 10, 90, 350, 20, "Иконка 48х48")
  TextGadget(#Text_5, 10, 110, 350, 20, "Иконка 64х64")
  TextGadget(#Text_6, 10, 130, 350, 20, "Иконка 72х72")
  TextGadget(#Text_7, 10, 150, 350, 20, "Иконка 96х96")
  TextGadget(#Text_8, 10, 170, 350, 20, "Иконка 128х128")
  TextGadget(#Text_9, 10, 190, 350, 20, "Иконка 192х192")
  TextGadget(#Text_10, 20, 210, 180, 20, "MIME тип (лучше не менять)", #PB_Text_Center)
  TextGadget(#Text_11, 90, 230, 10, 20, "/")
  StringGadget(#String_0, 0, 230, 80, 20, "users")
  StringGadget(#String_1, 100, 230, 190, 20, "x-purebasic")
  ButtonGadget(#Button_0, 360, 10, 40, 20, "...")
  ButtonGadget(#Button_1, 360, 30, 40, 20, "...")
  ButtonGadget(#Button_2, 360, 50, 40, 20, "...")
  ButtonGadget(#Button_3, 360, 70, 40, 20, "...")
  ButtonGadget(#Button_4, 360, 90, 40, 20, "...")
  ButtonGadget(#Button_5, 360, 110, 40, 20, "...")
  ButtonGadget(#Button_6, 360, 130, 40, 20, "...")
  ButtonGadget(#Button_7, 360, 150, 40, 20, "...")
  ButtonGadget(#Button_8, 360, 170, 40, 20, "...")
  ButtonGadget(#Button_9, 360, 190, 40, 20, "...")
  ButtonGadget(#Button_10, 300, 230, 100, 20, "УСТАНОВИТЬ")
EndIf

Repeat
  WindowNumber = WaitWindowEvent()
  GadgetNumber = EventGadget()

  Select GadgetNumber
    Case #Button_0
      Ico_16x16$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_16x16$
        SetGadgetText(#Text_0, Ico_16x16$)
      EndIf
    Case #Button_1
      Ico_22x22$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_22x22$
        SetGadgetText(#Text_1, Ico_22x22$)
      EndIf
    Case #Button_2
      Ico_32x32$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_32x32$
        SetGadgetText(#Text_2, Ico_32x32$)
      EndIf
    Case #Button_3
      Ico_36x36$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_36x36$
        SetGadgetText(#Text_3, Ico_36x36$)
      EndIf
    Case #Button_4
      Ico_48x48$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_48x48$
        SetGadgetText(#Text_4, Ico_48x48$)
      EndIf
    Case #Button_5
      Ico_64x64$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_64x64$
        SetGadgetText(#Text_5, Ico_64x64$)
      EndIf
    Case #Button_6
      Ico_72x72$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_72x72$
        SetGadgetText(#Text_6, Ico_72x72$)
      EndIf
    Case #Button_7
      Ico_96x96$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_96x96$
        SetGadgetText(#Text_7, Ico_96x96$)
      EndIf
    Case #Button_8
      Ico_128x128$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_128x128$
        SetGadgetText(#Text_8, Ico_128x128$)
      EndIf
    Case #Button_9
      Ico_192x192$ = OpenFileRequester("Укажите зашифровываемый Файл",GetCurrentDirectory(),"Картинки (*.png)|*.png",0)
      If Ico_192x192$
        SetGadgetText(#Text_9, Ico_192x192$)
      EndIf
    Case #Button_10
      If Ico_16x16$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 16 "+ReplaceString(GetFilePart(Ico_16x16$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_16x16$), #PB_Program_Wait)
      EndIf
      If Ico_22x22$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 22 "+ReplaceString(GetFilePart(Ico_22x22$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_22x22$), #PB_Program_Wait)
      EndIf
      If Ico_32x32$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 32 "+ReplaceString(GetFilePart(Ico_32x32$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_32x32$), #PB_Program_Wait)
      EndIf
      If Ico_36x36$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 36 "+ReplaceString(GetFilePart(Ico_36x36$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_36x36$), #PB_Program_Wait)
      EndIf
      If Ico_48x48$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 48 "+ReplaceString(GetFilePart(Ico_48x48$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_48x48$), #PB_Program_Wait)
      EndIf
      If Ico_64x64$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 64 "+ReplaceString(GetFilePart(Ico_64x64$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_64x64$), #PB_Program_Wait)
      EndIf
      If Ico_72x72$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 72 "+ReplaceString(GetFilePart(Ico_72x72$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_72x72$), #PB_Program_Wait)
      EndIf
      If Ico_96x96$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 96 "+ReplaceString(GetFilePart(Ico_96x96$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_96x96$), #PB_Program_Wait)
      EndIf
      If Ico_128x128$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 128 "+ReplaceString(GetFilePart(Ico_128x128$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_128x128$), #PB_Program_Wait)
      EndIf
      If Ico_192x192$
        RunProgram("xdg-icon-resource","install --context mimetypes --size 192 "+ReplaceString(GetFilePart(Ico_192x192$), " ","\ ")+" gnome-mime-users-x-purebasic", GetPathPart(Ico_192x192$), #PB_Program_Wait)
      EndIf  
      mime1.s = GetGadgetText(#String_0)
      mime2.s = GetGadgetText(#String_1)
      FileXML$ = ProgPath+mime2+".xml"
      file_mime = OpenFile(#PB_Any, FileXML$)
      If file_mime
        mime.s = "<?xml version="+Chr(34)+"1.0"+Chr(34)+" encoding="+Chr(34)+"utf-8"+Chr(34)+"?>"+Per_Str
        mime = mime + "<mime-info xmlns="+Chr(39)+"http://www.freedesktop.org/standards/shared-mime-info"+Chr(39)+">"+Per_Str
        mime = mime + "	<mime-type type="+Chr(34)+mime1+"/"+mime2+Chr(34)+">"+Per_Str
        mime = mime + "		  <comment>PureBasic source code</comment>"+Per_Str
        mime = mime + "		  <generic-icon name="+Chr(34)+"gnome-mime-"+mime1+"-"+mime2+Chr(34)+"/>"+Per_Str
        mime = mime + "		  <glob pattern="+Chr(34)+"*.pb"+Chr(34)+"/>"+Per_Str
        mime = mime + "		  <glob pattern="+Chr(34)+"*.pbi"+Chr(34)+"/>"+Per_Str
        mime = mime + "		  <glob pattern="+Chr(34)+"*.pbv"+Chr(34)+"/>"+Per_Str
        mime = mime + "		  <glob pattern="+Chr(34)+"*.pbp"+Chr(34)+"/>"+Per_Str
        mime = mime + "	</mime-type>"+Per_Str
        mime = mime + "</mime-info>"      
        WriteString(file_mime, mime)
        CloseFile(file_mime)   
        RunProgram("xdg-mime","install --novendor "+mime2+".xml", ProgPath, #PB_Program_Wait)
        DeleteFile(FileXML$)
        RunProgram("update-mime-database","~/.local/share/mime", GetHomeDirectory(), #PB_Program_Wait) 
        RunProgram("gtk-update-icon-cache","--ignore-theme-index -t ~/.local/share/icons/hicolor", GetHomeDirectory(), #PB_Program_Wait)
      EndIf
  EndSelect
Until WindowNumber = #PB_Event_CloseWindow
Linux Mint Maya(Mate), x86, PureBasic 5.00(5.10b1)
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Re: No installer for linux?

Post by remi_meier »

Amiga5k wrote:Sounds like a royal pain in the a**, not only for Fantaisie Software and its user base but for Linux developers in general!

What do the "seasoned" Linux-PB developers here do? Mainly, I mean developers who do their primary or even exclusive developing on their Linux machine and have been doing it for some time (as opposed to me, who only in the last month or so decided to give Linux a try: First with a Fedora 14 LiveCD and then a Ubuntu LiveCD [because Ubuntu seemed to be the one almost everyone was using], which I decided to install in its own partition - Highly recommended!).
You know, I might sound like Stallman here, but here is my personal
experience:
If you develop successful open source software, you simply do not
have that issue. Someone will come along and make a package
for his favorite distro. And "successful" does not even mean to have
a user base as large as Purebasic. There are lots of examples that
prove otherwise.
Now, if you develop closed source software. There is no reason, that
others cannot create such dependency packages for their distros. It
certainly happens. But most of the time the developers of that software
have money and care for the Linux port enough so that they at least
support 1-2 distros themselves.
IMO PureBasic is just not popular enough in the Linux community so
that such dependency packages get built (or at least kept up to date)
and Fred/Freak do not want to spend the time to build such a package.
Even if it would take no more than a day to figure out how.

greetz
Remi
Athlon64 3700+, 1024MB Ram, Radeon X1600
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Re: No installer for linux?

Post by Amiga5k »

I'm totally new to Linux, so forgive my ignorance. What is the difference between the distributions, specifically? I know they have different GUI/Window managers (KDE, Gnome, etc), so that's one thing. But what makes them 'incompatible' with each other other than that? They are all based on, I'm guessing, a standard kernal version (Ubuntu is kernal 2.6.35-28-generic-pae {whatever that means!}).

There needs to be a 'textbook' implementation of Linux (maybe there is already?) that has a basic functionality that all distros agree to support, similar to the long-defunct MSX PC standard from the 1980's that never quite got a foot-hold in the market (at least in the US - I hear it did alright in Asian countries and parts of Europe). Then, software developers can program for that standard and "know" that their programs will run. Of course, that standard has to be continually developed and improved, otherwise it stagnates and dies... but too frequent and it can cause other problems. Maybe a 12 - 18 month cycle would be more inline with Microsoft releases?

Anyway, yeah, so who actually sets the standards for Linux? Or, in the open source OS world, is no one at the wheel?

Russell
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Re: No installer for linux?

Post by dhouston »

Amiga5k wrote:...what makes them 'incompatible' with each other other than that?
...
Or, in the open source OS world, is no one at the wheel?
No one is at the wheel but you're making a mountain out of a molehill and Fred or freak are likely to lock the thread to prevent disinformation from spreading.. The numerous distros are not 'incompatible' with each other . In fact, that phrase is nonsensical when used this way. For example...libgtk2.0-dev might have a different name and or version number for various distributions. This means you may need a different installer for every distribution and that would leave freak little time to do the other things he does so well.

As I've noted earlier in the thread, the problem is only for PB users not for those using applications compiled with PB which, at compile time, statically links to any external functions and creates a standalone application with...
- No external DLLs, runtime interpreter or anything else required when creating executables
as stated at...
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)
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Re: No installer for linux?

Post by Amiga5k »

Whoa there, fella, I'm just asking questions, not spreading 'disinformation'! As stated, I'm new to Linux, so it's an alien world to me.

Probably this thread should be locked, as I will probably not be using the Linux version anyway. However, other people may find useful information in it. Who knows?

Russell
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Re: No installer for linux?

Post by remi_meier »

dhouston wrote:[...]
As I've noted earlier in the thread, the problem is only for PB users not for those using applications compiled with PB which, at compile time, statically links to any external functions and creates a standalone application with...
- No external DLLs, runtime interpreter or anything else required when creating executables
as stated at...
That is wrong. Just try

Code: Select all

ldd $executable
on your executable and you will see a mountain of dynamic
dependencies which you'll have to satisfy on each distribution.

Here is a command line which will print you the list of packages
needed on a debian system:

Code: Select all

EXE=yourexecutable FILES=`ldd $EXE | cut -d= -f1 | cut -f2 | cut -d" " -f1` ; echo -e "### FILES ###\n$FILES\n\n### PACKAGES ###" ; dpkg -S $FILES | fgrep "$FILES"
Athlon64 3700+, 1024MB Ram, Radeon X1600
User avatar
the.weavster
Addict
Addict
Posts: 1576
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: No installer for linux?

Post by the.weavster »

DarkDragon wrote:
MachineCode wrote:
dhouston wrote:Which, of the 57,000 varieties of Linux do you recommend they support?
And this is precisely why Windows will always be the dominant OS. Linux has too many cooks spoiling the broth.
And this is a good reason for experts to switch to linux: no amateurs! Let us never change this!
That seems to be the dominant view in the GNU/Linux world :D There is an OS that looks and works just like Windows already - it's called Windows, if you like it knock yourself out but stop requesting that Linux becomes like it.

In my experience installing software is usually a chuffing site easier on Linux than it is on Windows anyway - you just open Synaptic and tick what you want (any dependencies are marked for you) so PB is the exception rather than the rule in that respect. When I think back to my Windows days having to run one installer at a time :? it seems absurd now.

For anyone new to Linux I can recommend Linux Mint, it's a really nice distro and the forum users tend to be quite gentle with newbies which isn't always the case.

Happy scanning Windows boys :twisted:
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Re: No installer for linux?

Post by AND51 »

the.weavster wrote:There is an OS that looks and works just like Windows already - it's called
...ReactOS :arrow: http://www.reactos.org

Absolutely free, looks exactly like Windows, is binary-compatible to Windows, etc...

SCNR :wink:
PB 4.30

Code: Select all

onErrorGoto(?Fred)
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: No installer for linux?

Post by DarkDragon »

the.weavster wrote:... you just open Synaptic and tick what you want ...
Nobody needs an XServer, so who wants Synaptic?
AND51 wrote:
the.weavster wrote:There is an OS that looks and works just like Windows already - it's called
...ReactOS :arrow: http://www.reactos.org

Absolutely free, looks exactly like Windows, is binary-compatible to Windows, etc...

SCNR :wink:
Have you ever tested it? It doesn't even boot the installer here and ends up with a bluescreen.
bye,
Daniel
User avatar
idle
Always Here
Always Here
Posts: 5835
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: No installer for linux?

Post by idle »

Have you ever tested it? It doesn't even boot the installer here and ends up with a bluescreen.
sounds like they've faithfully reproduced windows :lol:
Windows 11, Manjaro, Raspberry Pi OS
Image
jmatienza
User
User
Posts: 10
Joined: Wed Nov 29, 2006 4:52 am
Location: Philippines

Re: No installer for linux?

Post by jmatienza »

Hi, everyone.

I've just started using Ubuntu 11.04. Not having any knowledge or previous experience on Linux, and having the difficulty described on this thread, I thought of running PB/Windows on Wine. I just installed it without incident, but on startup the PB IDE looks funny. The toolbar doesn't display. Doesn't bode well for the experience.

Anyone have experience using PB-Windows on Wine?

Jim
Post Reply