Skip to content

About

IDE for FreeBasic

Resources

Stars

2 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

3,255 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language: English | 中文介绍

Visual FB Editor

IDE for FreeBasic

Introduction

VisualFBEditor is the IDE for FreeBasic with visual designer, debugger, project support and etc. VisualFBEditor based on the library MyFbFramework.

Requirements:

Screenshots

VisualFBEditor-1 VisualFBEditor-2 VisualFBEditor-3 VisualFBEditor-4 VisualFBEditor-5 VisualFBEditor-6 image

Compilation:

To compile use the following command lines:

For Windows 32-bit:

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -s gui -x "../VisualFBEditor32.exe" "VisualFBEditor.rc" -i "Path_to_VisualFBEditor/Controls/MyFbFramework"
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" "mff.rc" -dll -x "../mff32.dll"

For Windows 32-bit (for gtk2):

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -s gui -x "../VisualFBEditor32_gtk2.exe" "VisualFBEditor.rc" -d __USE_GTK__ -i "Path_to_VisualFBEditor/Controls/MyFbFramework" -p "Path_to_msys2\msys32\mingw32\lib"
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" "mff.rc" -dll -x "../mff32_gtk2.dll" -d __USE_GTK__ -p "Path_to_msys2\msys32\mingw32\lib"

For Windows 32-bit (for gtk3):

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -s gui -x "../VisualFBEditor32_gtk3.exe" "VisualFBEditor.rc" -d __USE_GTK__ -d __USE_GTK3__ -i "Path_to_VisualFBEditor/Controls/MyFbFramework" -p "Path_to_msys2\msys32\mingw32\lib"
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" "mff.rc" -dll -x "../mff32_gtk3.dll" -d __USE_GTK__ -d __USE_GTK3__ -p "Path_to_msys2\msys32\mingw32\lib"

For Windows 64-bit:

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -s gui -x "../VisualFBEditor64.exe" "VisualFBEditor.rc" -i "Path_to_VisualFBEditor/Controls/MyFbFramework"
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" "mff.rc" -dll -x "../mff64.dll"

For Windows 64-bit (for gtk2):

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -s gui -x "../VisualFBEditor64_gtk2.exe" "VisualFBEditor.rc" -d __USE_GTK__ -i "Path_to_VisualFBEditor/Controls/MyFbFramework" -p "Path_to_msys2\msys32\mingw64\lib"
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" "mff.rc" -dll -x "../mff64_gtk2.dll" -d __USE_GTK__ -p "Path_to_msys2\msys32\mingw64\lib"

For Windows 64-bit (for gtk3):

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -s gui -x "../VisualFBEditor64_gtk3.exe" "VisualFBEditor.rc" -d __USE_GTK__ -d __USE_GTK3__ -i "Path_to_VisualFBEditor/Controls/MyFbFramework" -p "Path_to_msys2\msys32\mingw64\lib"
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" "mff.rc" -dll -x "../mff64_gtk3.dll" -d __USE_GTK__ -d __USE_GTK3__ -p "Path_to_msys2\msys32\mingw64\lib"

Building on Linux

1. Install the development files of GTK (the only package VisualFBEditor needs itself):

Distribution GTK2 GTK3 GTK4
Debian / Ubuntu / Linux Mint sudo apt install libgtk2.0-dev sudo apt install libgtk-3-dev sudo apt install libgtk-4-dev
Fedora sudo dnf install gtk2-devel sudo dnf install gtk3-devel sudo dnf install gtk4-devel
Arch Linux / Manjaro sudo pacman -S gtk2 sudo pacman -S gtk3 sudo pacman -S gtk4

2. Install FreeBASIC and the packages it needs (gcc, binutils, ncurses, ...: see the list for your distribution in the README of FreeBASIC). The official binaries are recommended: https://sourceforge.net/projects/fbc/files/FreeBASIC-1.10.1/Binaries-Linux/

  wget https://sourceforge.net/projects/fbc/files/FreeBASIC-1.10.1/Binaries-Linux/FreeBASIC-1.10.1-linux-x86_64.tar.gz
  tar xf FreeBASIC-1.10.1-linux-x86_64.tar.gz
  cd FreeBASIC-1.10.1-linux-x86_64
  sudo ./install.sh -i

fbc looks for its libraries in lib/freebasic/linux-x86_64 next to its bin folder. Some packages (for example the .deb packages of FreeBASIC 1.10.3-1 from deb.fbxl.net) put them into /usr/lib/freebasic itself, and then linking fails with cannot open linker script file /usr/bin/../lib/freebasic/linux-x86_64/fbextra.x or cannot find .../fbrt0.o. A link to the folder fixes it:

  sudo ln -s . /usr/lib/freebasic/linux-x86_64

3. Get the sources. MyFbFramework must be in the folder Controls/MyFbFramework. Always use the git versions of both repositories together (git pull in both): a release archive of MyFbFramework can be older than the sources of VisualFBEditor.

  git clone https://github.com/XusinboyBekchanov/VisualFBEditor
  cd VisualFBEditor/Controls
  git clone https://github.com/XusinboyBekchanov/MyFbFramework

4. Compile the IDE and the library of the controls (the commands below, for example for Linux 64-bit with GTK3). The library (libmff64_gtk3.so) is not in git: the IDE needs it in Controls/MyFbFramework to show the controls in the Toolbox and in the designer of forms. DownloadAndCompile.sh installs GTK3, downloads FreeBASIC into the folder Compilers and compiles both itself (Compile.sh compiles again with that FreeBASIC), the packages of FreeBASIC from step 2 are still needed.

For Linux 32-bit (for gtk2):

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -x "../VisualFBEditor32_gtk2" -i "Path_to_VisualFBEditor/Controls/MyFbFramework"
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" -dll -x "../libmff32_gtk2.so"

For Linux 32-bit (for gtk3):

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -x "../VisualFBEditor32_gtk3" -i "Path_to_VisualFBEditor/Controls/MyFbFramework" -d __USE_GTK3__
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" -dll -x "../libmff32_gtk3.so" -d __USE_GTK3__

For Linux 64-bit (for gtk2):

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk2" -i "Path_to_VisualFBEditor/Controls/MyFbFramework"
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" -dll -x "../libmff64_gtk2.so"

For Linux 64-bit (for gtk3):

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i "Path_to_VisualFBEditor/Controls/MyFbFramework" -d __USE_GTK3__
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" -dll -x "../libmff64_gtk3.so" -d __USE_GTK3__

For Linux 64-bit (for gtk4):

  cd Path_to_VisualFBEditor/src
  fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk4" -i "Path_to_VisualFBEditor/Controls/MyFbFramework" -d __USE_GTK__ -d __USE_GTK4__
  cd Path_to_VisualFBEditor/Controls/MyFbFramework/mff
  fbc -b "mff.bi" -dll -x "../libmff64_gtk4.so" -d __USE_GTK__ -d __USE_GTK4__

Sample bat file (Windows 64-bit):

@echo off
REM Change these paths to yours
set FBC=C:\FreeBASIC\fbc64.exe
set VFBE=C:\FreeBASIC\Projects\VisualFBEditor

cd /d "%VFBE%\src"
"%FBC%" "VisualFBEditor.bas" "VisualFBEditor.rc" -s gui -x "../VisualFBEditor64.exe" -i "%VFBE%\Controls\MyFbFramework" || exit /b 1

cd /d "%VFBE%\Controls\MyFbFramework\mff"
"%FBC%" -b "mff.bi" "mff.rc" -dll -x "../mff64.dll" || exit /b 1

About

IDE for FreeBasic

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages