FreeBasic IDE-poseidonFB(Update 2024.03.03)

User projects written in or related to FreeBASIC.
Post Reply
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by Kuan Hsu »

demosthenesk wrote:I have installed:

cd-5.14_Linux54_64_lib
im-3.15_Linux54_64_lib
iup-3.30_Linux54_64_lib
for Ubuntu 20.04

all of those packages are at latest release for Ubuntu 20.04 LTS.

The problem is that the menu bar and icon bar are overlaped because poseidon is been built with old iup libraries and it needs rebuild.

I cant run poseidon with old iup packages and cannot build poseidon is missing instructions...

Please update iup release and release for ubuntu 20.04.
https://bitbucket.org/KuanHsu/poseidonf ... -overlaped
I believe you mean Ubuntu Mate, not Ubuntu 20.04
poseidonFB_x64_rev461.AppImage run on Ubuntu 20.04.2:
Image
Even rebuild the IUP on Ubuntu Mate 18.04/20.04, the issue isn't gone. I've test IUP example code(IupScintillaDlg) and still the same, I think the issue is between IUP and desktop environment that I don't know how to fix.

The only way I found is( Test on Ubuntu Mate 20.04.2 ):
MATE Tweak -> Panel -> Change the user interface to "Contemporary"
Image
Run poseidonFB_x64_rev461.AppImage:
Image
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by demosthenesk »

Yes Ubuntu Mate 20.04 LTS has this issue.
The panel tweak fix the problem but i dont like Contemporary panels, so this is not a solution for me.
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by demosthenesk »

Is it possible the autocomplete feature to complete words with capitalize the first letter.
for example Print instead print...
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by demosthenesk »

I have Ubuntu Mate 20.04.2 LTS and i installed Gnome Desktop.
The problem is still there...
https://drive.google.com/file/d/1RHFZKq ... p=drivesdk
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by Kuan Hsu »

demosthenesk wrote:Is it possible the autocomplete feature to complete words with capitalize the first letter.
for example Print instead print...
The keyword complete had already supported, Preference -> Editor -> Auto Convert Keyword Case -> Mixedcase. the complete list about keyword will turn to Mixedcase.
If you mean all complete list, I need check my code that it should not be hard......

But the list is show the original word case and paste to document, if I enable all items of list are Mixedcase, they are different from original functions/variables/type....etc name, the sources are more hard to read, so I think I'll still keep the keyword complete enabled only.
Last edited by Kuan Hsu on Aug 05, 2021 4:23, edited 2 times in total.
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by Kuan Hsu »

demosthenesk wrote:I have Ubuntu Mate 20.04.2 LTS and i installed Gnome Desktop.
The problem is still there...
https://drive.google.com/file/d/1RHFZKq ... p=drivesdk
Please test https://www.mediafire.com/file/o4s31tz1 ... Image/file, mate desktop test OK~
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by demosthenesk »

Kuan Hsu wrote:
demosthenesk wrote:I have Ubuntu Mate 20.04.2 LTS and i installed Gnome Desktop.
The problem is still there...
https://drive.google.com/file/d/1RHFZKq ... p=drivesdk
Please test https://www.mediafire.com/file/o4s31tz1 ... Image/file, mate desktop test OK~
yes it is ok now...

what was wrong?
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by Kuan Hsu »

demosthenesk wrote:
Kuan Hsu wrote:
demosthenesk wrote:I have Ubuntu Mate 20.04.2 LTS and i installed Gnome Desktop.
The problem is still there...
https://drive.google.com/file/d/1RHFZKq ... p=drivesdk
Please test https://www.mediafire.com/file/o4s31tz1 ... Image/file, mate desktop test OK~
yes it is ok now...

what was wrong?
I'm 100% sure the issue is about IUP and GTK, so I re-read IUP document, I found:
Image
I insert one line in my code --

Code: Select all

IupSetGlobal( "GLOBALMENU", "NO" )
It's done
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by demosthenesk »

Kuan Hsu wrote:
demosthenesk wrote:
Kuan Hsu wrote: Please test https://www.mediafire.com/file/o4s31tz1 ... Image/file, mate desktop test OK~
yes it is ok now...

what was wrong?
I'm 100% sure the issue is about IUP and GTK, so I re-read IUP document, I found:
Image
I insert one line in my code --

Code: Select all

IupSetGlobal( "GLOBALMENU", "NO" )
It's done
Thanks! Make an official release please. I am writing a book for FreeBASIC in Greek and i would like to use and mention poseidonfb as main editor in my book
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by demosthenesk »

What is the difference between "Run" button and "Quick run" button.
When i press "Run" i get mate-terminal empty... see screenshot.
When i press "Quick run" i actually run the executable.

https://drive.google.com/file/d/10S4Axg ... p=drivesdk
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by demosthenesk »

How i compile multiple files of a project?
See zip file with a test project, i have 2 files, main.bas and f.bas. In f.bas i have a function. In main.bas i declare the function and use it.
Poseidonfb compiles only main.bas and return an error.

https://drive.google.com/file/d/18C-3xD ... p=drivesdk

see also
viewtopic.php?f=2&t=29513&p=284440#p284438
well i found my way....
i have to Build Project and Run...not quick run
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.07.31)

Post by Kuan Hsu »

demosthenesk wrote:Thanks! Make an official release please. I am writing a book for FreeBASIC in Greek and i would like to use and mention poseidonfb as main editor in my book
It's my honor, I had already commited rev.462
demosthenesk wrote:
How i compile multiple files of a project?
See zip file with a test project, i have 2 files, main.bas and f.bas. In f.bas i have a function. In main.bas i declare the function and use it.
Poseidonfb compiles only main.bas and return an error.

https://drive.google.com/file/d/18C-3xD ... p=drivesdk

see also
viewtopic.php?f=2&t=29513&p=284440#p284438
well i found my way....
i have to Build Project and Run...not quick run
Everyones have his coding style, for me, *.bi(includes) just is the file includes declares/defines, no code bodies, so "Build" the project at poseidonFB will pass all *.bas of project to fbc compile except for *bi.

Compile/Quick Run just pass one file(active document) to compiler.

If we want to pass one file to build project, in "Project Properties", set "Pass One File To Compiler" is ON and set the Main file, poseidonFB will pass only main file to fbc while building.

So, in your thread:viewtopic.php?f=2&t=29513&p=284440#p284438
If we create a project and have main.bas and sum.bas, then build project, we got error message:

Code: Select all

error 42: Variable not declared, sum in 'a = sum(1, 2)'
Because the 2 files no any connect.
If we add #include "sum.bas" in main.bas, then build project, we got error message:

Code: Select all

multiple definition of `SUM@8'; D:/Test/main.o:fake:(.text+0x0): first defined here
Because the #include "sum.bas" had combine the 2 files in one file, so the sum() function in main.bas and sum.bas, we pass two files to fbc, multiple definition. So we need "Compile" one main.bas or set the project properties to make sue pass one file to fbc.

My way( or my style ) the project include 3 files, add a sum.bi:

Code: Select all

Declare Function sum( As Integer, As Integer ) As Integer
sum.bas:

Code: Select all

Function sum( a As Integer, b As Integer ) As Integer
Return a + b
End Function
main.bas:

Code: Select all

#include "sum.bi"

Dim a As Integer
a = sum(1, 2)
Print a
Sleep
Then "Build" the project...
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.05)

Post by demosthenesk »

yes you are right...
i found it before you post...

one issue only.... if i set up a main.bas file as main file in Project properties it does not work...because it needs the absolute path as i see...

so i cleared this value of main file and create 2 files in project and set main file with right click from tree view of files...
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2021.08.05)

Post by Kuan Hsu »

demosthenesk wrote:one issue only.... if i set up a main.bas file as main file in Project properties it does not work...because it needs the absolute path as i see...
??... Like this? It should no need absolute path...
Image
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2021.08.05)

Post by demosthenesk »

i set up with "main.bas" and i get this error...

========================================
Building Project: PoseidonTest......

"/home/user/Bin/FreeBASIC-1.08.1-ubuntu-20.04-x86_64/bin/fbc" -x "/home/user/Documents/Workspaces/freebasic/PoseidonTest/PoseidonTest" -m "main.bas" -b "/home/user/Documents/Workspaces/freebasic/PoseidonTest/sum.bas" -b "/home/user/Documents/Workspaces/freebasic/PoseidonTest/main.bas" -i "/home/user/Bin/FreeBASIC-1.08.1-ubuntu-20.04-x86_64/include/freebasic" -p "/home/user/Bin/FreeBASIC-1.08.1-ubuntu-20.04-x86_64/lib/freebasic/linux-x86_64"

ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crt1.o: in function `_start':
(.text+0x24): undefined reference to `main'


Build Error!
========================================

if i set up with "main" it is ok
Post Reply