VisualFBEditor - IDE for FreeBasic

User projects written in or related to FreeBASIC.
Post Reply
Spiraleyes
Posts: 3
Joined: Nov 12, 2016 8:13

Re: VisualFBEditor - IDE for FreeBasic

Post by Spiraleyes »

I just downloaded and tried this IDE and I have to say I am really impressed. One issue I have that seems odd is that I don't see a simple push button on the toolbox controls available. Am I missing something?

Thanks
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Spiraleyes wrote: May 18, 2022 20:36 I just downloaded and tried this IDE and I have to say I am really impressed. One issue I have that seems odd is that I don't see a simple push button on the toolbox controls available. Am I missing something?

Thanks
There is a CommandButton.
Spiraleyes
Posts: 3
Joined: Nov 12, 2016 8:13

Re: VisualFBEditor - IDE for FreeBasic

Post by Spiraleyes »

I see, I must have missed that one. Thanks
Avata
Posts: 102
Joined: Jan 17, 2021 7:27

Re: VisualFBEditor - IDE for FreeBasic

Post by Avata »

In fact I still don't understand that which button do you want. It is better Post a picture showing what you want.
Avata
Posts: 102
Joined: Jan 17, 2021 7:27

Re: VisualFBEditor - IDE for FreeBasic

Post by Avata »

THE API functions for GTK3(https://github.com/XusinboyBekchanov/Vi ... K_html.zip )and Window32(https://github.com/XusinboyBekchanov/Vi ... DK_htm.zip )are now available. Has anyone try to translate into a local language?
Avata
Posts: 102
Joined: Jan 17, 2021 7:27

Re: VisualFBEditor - IDE for FreeBasic

Post by Avata »

Today I find out the download batch file is so powerfull. I paste there for whom want download the app.
DownloadAndCompileWithQuestions.bat

Code: Select all

@echo off

set /p DownloadCompiler=Do you want to download FreeBASIC Compiler 1.09.0 (yes/no/downloaded)? 

set /p DownloadGDB=Do you want to download gdb 11.2.90.20220320 (yes/no)? 

set /p Download7Zip=Do you want to download 7-Zip (yes/no)? 

set e7Zip=7z

if "%Download7Zip%" == "no" goto compiler

curl -L -O https://www.7-zip.org/a/7za920.zip

PowerShell Expand-Archive -LiteralPath "7za920.zip" -DestinationPath ".\7z" -Force

set e7Zip=%~dp0\7z\7za.exe

:compiler

if "%DownloadCompiler%" == "no" goto selectpath

if "%DownloadCompiler%" == "downloaded" goto setpath

curl -L -O https://sourceforge.net/projects/fbc/files/FreeBASIC-1.09.0/Binaries-Windows/winlibs-gcc-9.3.0/FreeBASIC-1.09.0-winlibs-gcc-9.3.0.7z

:setpath

set FBC32=%~dp0VisualFBEditor\Compilers\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\fbc32.exe

set FBC64=%~dp0VisualFBEditor\Compilers\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\fbc64.exe

goto download

:selectpath

if "%PROCESSOR_ARCHITEW6432%" == "AMD64" Set Bit = "64"
if "%PROCESSOR_ARCHITECTURE%" == ""      Set PROCESSOR_ARCHITECTURE = x86
if "%PROCESSOR_ARCHITECTURE%" == "x86"   Set Bit = "32"
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" Set Bit = "64"

if "%Bit%" == "64" Set Bit = "both"

if "%Bit%" == "64" goto selectpath64

set /p FBC32=Enter 32-bit compiler path: 

if "%Bit%" == "32" goto download

:selectpath64

set /p FBC64=Enter 64-bit compiler path: 

:download

if "%DownloadGDB%" == "no" goto downloadsources

curl -L -O https://github.com/ssbssa/gdb/releases/download/gdb-11.2.90.20220320/gdb-11.2.90.20220320-i686.7z

curl -L -O https://github.com/ssbssa/gdb/releases/download/gdb-11.2.90.20220320/gdb-11.2.90.20220320-x86_64.7z

:downloadsources

curl -L -O https://github.com/XusinboyBekchanov/VisualFBEditor/archive/master.zip

RMDIR /S /Q VisualFBEditor

PowerShell Expand-Archive -LiteralPath "master.zip" -DestinationPath "." -Force

Rename VisualFBEditor-master VisualFBEditor

curl -L -O https://github.com/XusinboyBekchanov/MyFbFramework/archive/master.zip

PowerShell Expand-Archive -LiteralPath "master.zip" -DestinationPath "VisualFBEditor" -Force

if "%DownloadCompiler%" == "no" goto label7z

"%e7Zip%" x "FreeBASIC-1.09.0-winlibs-gcc-9.3.0.7z" -o%~dp0VisualFBEditor\Compilers

:label7z

if "%Download7Zip%" == "no" goto start

"%e7Zip%" x "gdb-11.2.90.20220320-i686.7z" -o%~dp0VisualFBEditor\Debuggers\gdb-11.2.90.20220320-i686

"%e7Zip%" x "gdb-11.2.90.20220320-x86_64.7z" -o%~dp0VisualFBEditor\Debuggers\gdb-11.2.90.20220320-x86_64

:start

cd VisualFBEditor

Rename MyFbFramework-master MyFbFramework

cd ..\

if "%Bit%" == "64" goto compile64

cd VisualFBEditor\MyFbFramework\mff

"%FBC32%" -b "mff.bi" "mff.rc" -dll -x "../mff32.dll" -v

cd ..\..\..\VisualFBEditor\src

"%FBC32%" "VisualFBEditor.bas" -s gui -x "../VisualFBEditor32.exe" "VisualFBEditor.rc" -i "..\MyFbFramework" -v

cd ..\..\

if "%Bit%" == "32" goto finish

:compile64

cd VisualFBEditor\MyFbFramework\mff

"%FBC64%" -b "mff.bi" "mff.rc" -dll -x "../mff64.dll" -v

cd ..\..\..\VisualFBEditor\src

"%FBC64%" "VisualFBEditor.bas" -s gui -x "../VisualFBEditor64.exe" "VisualFBEditor.rc" -i "..\MyFbFramework" -v

cd ..\..\

:finish


jepalza
Posts: 149
Joined: Feb 24, 2010 10:08
Location: Spain (Bilbao)

Re: VisualFBEditor - IDE for FreeBasic

Post by jepalza »

I want to try to compile a program for android, but I am not sure how to configure the IDE. I have installed "Android Studio", but what else should I do? What options should I include?
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

jepalza wrote: May 29, 2022 15:22 I want to try to compile a program for android, but I am not sure how to configure the IDE. I have installed "Android Studio", but what else should I do? What options should I include?
You can open folder AndroidProject from Examples (File -> Open Folder). Or you can create a New Android Project from the New Project dialog.
You can download fbc releases from https://github.com/XusinboyBekchanov/fb ... tag/1.09.0.

And you must specify the path of the compiler in the Compile item in the Project Properties. And you must specify Android SDK Location, Android NDK Location, JDK Location in the Android Settings item in the Project Properties.

After you can start (F5).
jepalza
Posts: 149
Joined: Feb 24, 2010 10:08
Location: Spain (Bilbao)

Re: VisualFBEditor - IDE for FreeBasic

Post by jepalza »

Ok, This is what I was missing. I thought it was the IDE itself that compiled for ARM. :oops:
Xusinboy Bekchanov wrote: May 30, 2022 2:20 You can download fbc releases from https://github.com/XusinboyBekchanov/fb ... tag/1.09.0.
All ok now.
birosys
Posts: 17
Joined: Aug 28, 2007 20:39

Re: VisualFBEditor - IDE for FreeBasic

Post by birosys »

Hello,

does this editor and myfbFramework works on raspberry pi?

Thanks.
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

birosys wrote: May 30, 2022 14:26 Hello,

does this editor and myfbFramework works on raspberry pi?

Thanks.
Hello, I haven't tried it yet.
birosys
Posts: 17
Joined: Aug 28, 2007 20:39

Re: VisualFBEditor - IDE for FreeBasic

Post by birosys »

Hello Xusinboy.

I was able to compile the IDE and mff library without any problems.

The OS is the latest raspbian 32bit.
The compiler is FBC 1.09.0 (2021-12-31), built for linux-arm (32bit)

The IDE starts without a problem, but after selecting the compiler path the IDE crashes with a Segmentation fault.
After that, each new start after the appearance of the splash screen crashes with the error Segmentation fault.

what could it be?

Thanks again for the help.
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

birosys wrote: May 30, 2022 18:05 Hello Xusinboy.

I was able to compile the IDE and mff library without any problems.

The OS is the latest raspbian 32bit.
The compiler is FBC 1.09.0 (2021-12-31), built for linux-arm (32bit)

The IDE starts without a problem, but after selecting the compiler path the IDE crashes with a Segmentation fault.
After that, each new start after the appearance of the splash screen crashes with the error Segmentation fault.

what could it be?

Thanks again for the help.
Try from releases (1.3.2). I need to look at the latest unreleased version.
birosys
Posts: 17
Joined: Aug 28, 2007 20:39

Re: VisualFBEditor - IDE for FreeBasic

Post by birosys »

With version 1.3.2. everything is OK.
The editor works, no more problems with the compiler path.

However, when I try to compile a test program, I get the following message:

Code: Select all

21:31:43: Compilation: "/home/pi/VisualFBEditor.1.3.2/Compilers/FreeBASIC-1.09.0-raspbian9-arm/bin/fbc" "Form1.frm" -exx -v -s gui -i "/home/pi/VisualFBEditor.1.3.2/./MyFbFramework" 2> "/home/pi/VisualFBEditor.1.3.2/Temp/Compile.log"

error 81: Invalid command-line option, "Form1.frm"

21:31:43: Do not build file. Elapsed Time: 0.01 Seconds

21:31:43: Found Messages (1 Pos)
Xusinboy Bekchanov
Posts: 783
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

birosys wrote: May 30, 2022 19:40 However, when I try to compile a test program, I get the following message:

Code: Select all

21:31:43: Compilation: "/home/pi/VisualFBEditor.1.3.2/Compilers/FreeBASIC-1.09.0-raspbian9-arm/bin/fbc" "Form1.frm" -exx -v -s gui -i "/home/pi/VisualFBEditor.1.3.2/./MyFbFramework" 2> "/home/pi/VisualFBEditor.1.3.2/Temp/Compile.log"

error 81: Invalid command-line option, "Form1.frm"

21:31:43: Do not build file. Elapsed Time: 0.01 Seconds

21:31:43: Found Messages (1 Pos)
The Parameters Window will open in the Build -> Parameters menu. There, in the compiler line, it should have been written like this:
-b {S} -exx -v
When compiling, it was necessary to compile like this:
-b "Form1.frm" -exx -v
Have you changed this setting?
Post Reply