VisualFBEditor - IDE for FreeBasic

User projects written in or related to FreeBASIC.
Post Reply
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: VisualFBEditor - IDE for FreeBasic

Post by robert »

Xusinboy Bekchanov wrote:
robert wrote:Hi Xusinboy:

I'm trying to compile latest GitHub VisualFBEditor with latest GitHub FBC 1.0.8 on Linux Fedora 33. Is it possible? Can you help me?

Code: Select all


fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i "../MyFbFramework"

/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4629) error 18: Element not defined, Msg
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4630) error 42: Variable not declared, CM_NOTIFY
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4630) error 3: Expected End-of-Line, found 'CM_NOTIFY'
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4631) error 14: Expected identifier, found 'NMTREEVIEW'
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4633) error 28: Expected pointer, before '->'
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4634) error 42: Variable not declared, TVN_ITEMEXPANDING
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4634) error 3: Expected End-of-Line, found 'TVN_ITEMEXPANDING'
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4720) error 42: Variable not declared, sourcenb
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4720) error 3: Expected End-of-Line, found 'sourcenb'
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4721) error 42: Variable not declared, source
/home/robert/Dev/FB/VisualFBEditor/src/Main.bas(4721) error 133: Too many errors, exiting

Corrected:
https://github.com/XusinboyBekchanov/Vi ... 3986f91e6f
Thank you for the quick fix.

Now I need to know how to compile MyFbFramework in Linux for the .so libraries. The ones that are in the binary distro do not work on Fedora because, I assume, they were compiled on some flavour of Debian or derivative.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

robert wrote: Thank you for the quick fix.

Now I need to know how to compile MyFbFramework in Linux for the .so libraries. The ones that are in the binary distro do not work on Fedora because, I assume, they were compiled on some flavour of Debian or derivative.
So you can compile:

Code: Select all

cd "C:\FreeBasic\Projects\VisualFBEditor-master\MyFbFramework\mff"

"C:\FreeBasic\X64\fbc.exe" -b "mff.bi" -dll -x "..\libmff64.so"
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: VisualFBEditor - IDE for FreeBasic

Post by robert »

Xusinboy Bekchanov wrote:
robert wrote: Thank you for the quick fix.

Now I need to know how to compile MyFbFramework in Linux for the .so libraries. The ones that are in the binary distro do not work on Fedora because, I assume, they were compiled on some flavour of Debian or derivative.
So you can compile:

Code: Select all

cd "C:\FreeBasic\Projects\VisualFBEditor-master\MyFbFramework\mff"

"C:\FreeBasic\X64\fbc.exe" -b "mff.bi" -dll -x "..\libmff64.so"
This is what I did from command line.

Code: Select all

git clone https://github.com/XusinboyBekchanov/VisualFBEditor.git
cd VisualFBEditor
git clone https://github.com/XusinboyBekchanov/MyFbFramework.git
cd MyFbFramework/mff
fbc -b "mff.bi" -dll -x "../libmff64_gtk3.so"
cd ../../src
fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i "../MyFbFramework"
cd ..
./VisualFBEditor64_gtk3
The following was output on the command line console

Code: Select all

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.640: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.640: gtk_layout_put: assertion 'GTK_IS_WIDGET (child_widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.671: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.671: gtk_layout_put: assertion 'GTK_IS_WIDGET (child_widget)' failed
Then VisualFBEditor started.

When I shut it down, the following was output on the command line console

Code: Select all

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

Then the console hung and I had to shut it down using the X.

Maybe I'm missing some GTK3 components?

Looking good so far.
Last edited by robert on Feb 01, 2021 20:08, edited 1 time in total.
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: VisualFBEditor - IDE for FreeBasic

Post by robert »

Deleted. Above post corrected
Last edited by robert on Feb 01, 2021 20:26, edited 1 time in total.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Yes, there are such warnings. When I have time, I'll fix that, too.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

robert wrote: The following was output on the command line console

Code: Select all

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.640: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.640: gtk_layout_put: assertion 'GTK_IS_WIDGET (child_widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.671: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.671: gtk_layout_put: assertion 'GTK_IS_WIDGET (child_widget)' failed
Then VisualFBEditor started.

When I shut it down, the following was output on the command line console

Code: Select all

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

Then the console hung and I had to shut it down using the X.

Maybe I'm missing some GTK3 components?
Fixed GTK messages and crashing when closing the program:
https://github.com/XusinboyBekchanov/Vi ... 078cd47f47
https://github.com/XusinboyBekchanov/My ... 824cc4448d
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: VisualFBEditor - IDE for FreeBasic

Post by robert »

Xusinboy Bekchanov wrote:
robert wrote: The following was output on the command line console

Code: Select all

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.640: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.640: gtk_layout_put: assertion 'GTK_IS_WIDGET (child_widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.671: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:29:49.671: gtk_layout_put: assertion 'GTK_IS_WIDGET (child_widget)' failed
Then VisualFBEditor started.

When I shut it down, the following was output on the command line console

Code: Select all

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(VisualFBEditor64_gtk3:3383): Gtk-CRITICAL **: 22:33:47.811: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

Then the console hung and I had to shut it down using the X.

Maybe I'm missing some GTK3 components?
Fixed GTK messages and crashing when closing the program:
https://github.com/XusinboyBekchanov/Vi ... 078cd47f47
https://github.com/XusinboyBekchanov/My ... 824cc4448d
Thank you. It's all good now. Windows and Linux functioning as expected.
anku
Posts: 3
Joined: Feb 16, 2021 21:05

Re: VisualFBEditor - IDE for FreeBasic

Post by anku »

If I start the IDE I get the following message:
https://postimg.cc/Q97W3KjR
What does that mean?
How can I solve this?
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

anku wrote:If I start the IDE I get the following message:
https://postimg.cc/Q97W3KjR
What does that mean?
How can I solve this?
Is there such a file in the path?
anku
Posts: 3
Joined: Feb 16, 2021 21:05

Re: VisualFBEditor - IDE for FreeBasic

Post by anku »

This is the content of the "VisualFBEditor" directory:
drwxrwxr-x 6 anku anku 4096 Dez 14 17:16 .
drwxrwxr-x 14 anku anku 4096 Feb 16 21:18 ..
-rw-rw-r-- 1 anku anku 2479 Dez 14 17:13 changes_en.txt
drwxrwxr-x 4 anku anku 4096 Dez 14 17:15 examples
drwxrwxr-x 2 anku anku 4096 Dez 14 17:15 .github
-rw-rw-r-- 1 anku anku 38 Jun 11 2020 .gitignore
-rw-rw-r-- 1 anku anku 108052 Dez 14 15:32 libmff32.dll.a
-rw-rw-r-- 1 anku anku 107380 Dez 14 15:33 libmff64.dll.a
-rw-rw-r-- 1 anku anku 1266288 Dez 14 15:09 libmff64_gtk2.so
-rw-rw-r-- 1 anku anku 1266512 Dez 14 15:22 libmff64_gtk3.so
-rw-rw-r-- 1 anku anku 27047 Jun 11 2020 LICENSE
drwxrwxr-x 2 anku anku 4096 Dez 14 17:15 mff
-rw-rw-r-- 1 anku anku 709120 Dez 14 15:32 mff32.dll
-rw-rw-r-- 1 anku anku 1005568 Dez 14 15:33 mff64.dll
-rw-rw-r-- 1 anku anku 4655 Dez 14 15:33 MyFbFramework.vfp
-rw-rw-r-- 1 anku anku 477 Jun 11 2020 README.md
drwxrwxr-x 2 anku anku 4096 Dez 14 17:15 resources
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Actually, the library files should be located in the "VisualFBEditor/MyFbFramework" folder. But you can specify a different path in the settings too (Options -> Includes -> Include MFF Path).
anku
Posts: 3
Joined: Feb 16, 2021 21:05

Re: VisualFBEditor - IDE for FreeBasic

Post by anku »

Sorry. This is the content of the "MyFbFramework" folder not the "VisualFBEditor" folder.
The lib seems to be where it should be but the programs says it cannot find it.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Previously there was a fix for file search in Linux:
https://github.com/XusinboyBekchanov/My ... f6fccd7674

So try the latest version (1.2.7) from github.
classd2008
Posts: 10
Joined: Oct 31, 2017 13:33

Re: VisualFBEditor - IDE for FreeBasic

Post by classd2008 »

How to force to use the GTK3 library in Windows? With this code VisualFBE compiles, it doesn't seem to be using the GTK3 library.

Code: Select all

'#ifdef __FB_WIN32__
	'#Compile -exx "Form1.rc"
'#else
	'#Compile -exx
'#endif
'#Region "Form"
	#define __USE_GTK3__
	#libpath "C:\msys64\mingw64\lib"
	'#libpath "C:\msys64\mingw32\lib"
	#include once "mff/Form.bi"
	#include once "mff/CommandButton.bi"
	
	Using My.Sys.Forms
	
	Type Form1 Extends Form
		Declare Constructor
		
		Dim As CommandButton CommandButton1
	End Type
	
	Constructor Form1
		' Form1
		With This
			.Name = "Form1"
			.Text = "Form1"
			.SetBounds 0, 0, 350, 300
		End With
		' CommandButton1
		With CommandButton1
			.Name = "CommandButton1"
			.Text = "CommandButton1"
			.SetBounds 60, 70, 210, 90
			.Parent = @This
		End With
	End Constructor
	
	Dim Shared fForm1 As Form1
	
	#ifndef _NOT_AUTORUN_FORMS_
		fForm1.Show
		
		App.Run
	#endif
'#End Region
classd2008
Posts: 10
Joined: Oct 31, 2017 13:33

Re: VisualFBEditor - IDE para FreeBasic

Post by classd2008 »

Error compiler.

Code: Select all

C:\FreeBasic\Projects\VisualFBEditor-master\src>C:\FreeBasic\FreeBASIC-1.07.1\fbc32 "VisualFBEditor.bas" -x "../VisualFBEditor32.exe" "VisualFBEditor.rc" -i "../MyFbFramework"
C:\FreeBasic\Projects\VisualFBEditor-master\src\frmFind.frm(597) error 18: Element not defined, SelectedTabIndex
C:\FreeBasic\Projects\VisualFBEditor-master\src\frmOptions.frm(1130) error 18: Element not defined, TabIndex
C:\FreeBasic\Projects\VisualFBEditor-master\src\frmOptions.frm(1141) error 3: Expected End-of-Line, found '='
C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(1421) error 9: Expected expression
C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3117) error 18: Element not defined, DisplayIcons
C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3857) error 3: Expected End-of-Line, found '='
C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3881) error 3: Expected End-of-Line, found '='
C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3903) error 3: Expected End-of-Line, found '='
C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3991) error 3: Expected End-of-Line, found '='
C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(4072) error 9: Expected expression, found '='
C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(4072) error 133: Too many errors, exiting
Post Reply