Menu

Does windows9 work under linux?

2020-03-13
2020-03-19
  • John Duchek

    John Duchek - 2020-03-13

    I downloaded it and installed it,but it doesn't run. I am using fedora 31. 64 bit. One of the problems was a simple capitalization problem. It couldn't find window9.bi because it was named Window9.bi. Anyway, is it supposed to run under linux, and if so, how do I correctly install it? I notice on sourceforge it shows windows and linux...

     
  • John Duchek

    John Duchek - 2020-03-13

    I did find this on the fb forums...
    Linux (with standard compiler installation):

    1) Put files libwindow9.a, libLinked_Lists.a in the folder: /usr/local/lib/freebasic/linux-x86 OR /usr/local/lib/freebasic/linux-x86_64

    2) Put files Linked_Lists.bi , window9.bi , keys.bi in the folder: /usr/local/include/freebasic

    In the Linux may have to install dependencies from dev versions: gtk (I suggest GTK2) , zlib, webkitgtk , ...

    I did that, but could not find a keys.bi file anywhere in the download.

     
  • stabud

    stabud - 2020-03-14

    Hi!

    For Windows you need to download the archive: window9.zip (sourceforge.net)

    For LINUX you need to download the archive: window9_linux.tar.gz (sourceforge.net)

    In the archive window9_linux.tar.gz the file keys.bi present

     

    Last edit: stabud 2020-03-14
    • John Duchek

      John Duchek - 2020-03-14

      Thank you. For some reason sourceforge was only showing me the windows version. Your link did it. Thanks,
      John

       
  • John Duchek

    John Duchek - 2020-03-15

    I downloaded the linux version, and installed according to this:

    Linux (with standard compiler installation):

    1) Put files libwindow9.a, libLinked_Lists.a in the folder: /usr/local/lib/freebasic/linux-x86 OR /usr/local/lib/freebasic/linux-x86_64

    2) Put files Linked_Lists.bi , window9.bi , keys.bi in the folder: /usr/local/include/freebasic

    In the Linux may have to install dependencies from dev versions: gtk (I suggest GTK2) , zlib, webkitgtk , ...

    Now it looks like I should run _createbuildMakefile.bas ? When I try to run it, it compiles without error, but then gives a run time error of: Aborting due to runtime error 6 (out of bounds array access) at line 21 of _createbuildMakefile.bas::()

    I would appreciate any help or comments to get past this,
    Thanks,
    John

     
  • stabud

    stabud - 2020-03-15

    file createbuildMakefile.bas need to create makefile.
    makefile you need to compile the library from source.
    You wish to compile the library from source? Then compile the file createbuildMakefile.bas in the folder where all the source codes of the library , then in the terminal run in the same folder should be created makefile. Next, type the command make . And then the compiled library will place in the folder: /usr/local/lib/freebasic/linux-x86 (for x86 system) OR /usr/local/lib/freebasic/linux-x86_64 (for a x86-64 system) .

    Now it looks like I should run _createbuildMakefile.bas ? When I try to run it, it compiles without error, but then gives a run time error of: Aborting due to runtime error 6 (out of bounds array access) at line 21 of _createbuildMakefile.bas::()

    I don't know what you are doing ... You just use the standard compiler , and not some third-party Assembly? Are you sure You have not made corrections to the file createbuildMakefile.bas ? this error can only occur if the file createbuildMakefile.bas variable nFiles less Lbound array or more Ubound array.

    Try to comment out all the excess and leave in the file only this code:

    const FBC_PATH as string = "fbc"
    const FBC_FLAG as string = "-w pedantic -lib"
    
    ChDir ExePath()
    
    redim as string files()
    dim as string   file  = dir("*.bas")
    dim as integer  nFiles
    
    while len(file)
        if left(file,1)="_" then
            ' ignore all files with "_"
        else
            redim preserve files(nFiles)
            ? file , nFiles
            files(nFiles) = file
            nFiles+=1
        end if
        file = dir()
    wend
    
    sleep
    

    And put the result of the work here

     
  • John Duchek

    John Duchek - 2020-03-15

    I am sorry, that is my mistake. I am not trying to recompile it. I was wandering around trying to get something to run. I cannot get the sample program below to run.

    Include "window9.bi"

    Dim As HWND hwnd
    hwnd=OpenWindow("1",30,30,100,100)
    UpdateInfoXServer ' only for Linux
    CenterWindow(hwnd)
    Do
    var event=WaitEvent()
    If event=EventClose Then End
    Loop

    When I compile this I get:
    ld: cannot find -lwebkitgtk-1.0
    ld. cannot find -lgtkgl-2.0

    Fedora 31 has webkitgtk-4.0 installed,
    gtkgl appears to be an include file for freebasic, but it is present.
    I have installed gtkglext and gtkglext-devel and gtkglext-libs to my system but apparently not the same.

    so I am trying to find the right versions to make this work.
    John

     
  • stabud

    stabud - 2020-03-16

    I'm counting on you linux not new, just chosen the not easiest Linux distribution. For example, distributions based on Debian , required packages are available for installation directly from synaptic.


    Well , let me explain: you need the packages provided FEDORA31 no, but you can them find\install. For example, the package webkitgtk-1.0-devel can be found on the website : pkgs.org (for Fedora version 30 , but it should work ). Also the package libgtkgl-2 you can take from this site , but from the opensuse (download source package, unzip , make build and put libgtkgl-2.0.so.1.0.1 in folder /usr/lib64 and create a symbolic link libgtkgl-2.0.so )

     
  • John Duchek

    John Duchek - 2020-03-17

    I am a long time user of linux and Fedora. I didn't find the versions your software needs at pksg.org or rpmbone.org. Fedora 30 has webkitgtk-2.4. Fedora 15 has webkitgtk-1.4 Finding 1.0 has been a problem. I am guessing it comes from about 2011? I have found the libgtk-gl-2. It is fairly old too, Is there a possibility of the software being updated to more modern dependencies soon? If not I guess I will keep looking. Thanks for your help, John

     
  • stabud

    stabud - 2020-03-17

    webkit: link

    Provides: libwebkitgtk-1.0.so.0()(64bit)


    gtkgl2: link

    suggest to download Source Package and build library from sources. I already wrote how, but I'll explain again:
    1) download
    2) unzip and go to folder: gtkglarea-2.0.1
    3) ./configure
    4) go to folder gtkgl
    5) make
    6) in a hidden folder .libs will need a library : libgtkgl-2.0.so.1.0.1
    7) put it in /usr/lib64
    8) create her symbolic links: libgtkgl-2.0.so and libgtkgl-2.0.so.1

     
  • John Duchek

    John Duchek - 2020-03-19

    Hi,
    I got the gtkgl2 problem resolved, but installing the Fed 30 rpm doesn't work. I did get it installed, but it is not liking several other libraries it is seeing. The libicudata versions it needs are older that what is on the computer. And the compile error still remains. (ld:cannot find -lwebkitgtk-1.0)
    Anyway I did get things working in a Ubuntu 18.04 LTS virtualbox, so I can now see how the software works at least. Thanks for your help. Your software looks interesting.

     
  • stabud

    stabud - 2020-03-19

    On the page which I have indicated, there are instructions. Quote:

    Install Howto

    1) Add RPM Fusion repositories to your system
    2)  Download latest rpmsphere-release rpm from
    
    3) Install rpmsphere-release rpm:
    
    rpm -Uvh rpmsphere-release*rpm
    
    4) Install webkitgtk rpm package:
    
    dnf install webkitgtk
    
     
  • John Duchek

    John Duchek - 2020-03-19

    Hi,
    I did all that and it went smoothly. The error still remained. I then added
    dnf install webkitgtk-devel and the errors have finally gone away.
    stabud, thank you for your patience and your help. I look forward to learning to use this.
    John

     

Log in to post a comment.

MongoDB Logo MongoDB