VisualFBEditor - IDE for FreeBasic

User projects written in or related to FreeBASIC.
Post Reply
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

Xusinboy Bekchanov wrote:
j8w344c6 wrote:
Xusinboy Bekchanov wrote: You can compile like this:
fbc.exe" -b "VisualFBEditor.bas" -exx -v -x "../VisualFBEditor32.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i "D:\GitHub\VisualFBEditor/./MyFbFramework" -p "D:\FreeBasic\msys2\msys32\mingw32\lib"

fbc.exe" -b "mff.bi" -exx -v -x "../mff32.dll" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -i "D:\GitHub\VisualFBEditor/./MyFbFramework" -p "D:\FreeBasic\msys2\msys32\mingw32\lib"
Currently it will error as __USE_GTK3__ definition is duplicated. I removed -d __USE_GTK3__ and MFF is built fine. VFBE's build fails at frmMenuEditor.frm(48) error 4: Duplicated definition, BGR.
You can download the latest version from github.
Built fine now. When running VFBE it said libmff64_gtk3.so is missing. I renamed mff64.dll to libmff64_gtk3.so and now it could proceed running but crashed when attempting to search for installed compiler. The compiler (fbc32.exe and fbc64.exe) is already on Windows' PATH. I don't try any further as it built fine is enough for me now.

p/s: I'm building for 64 bit so I changed your commands accordingly. I also changed the syntax to be Windows cmd.exe friendly as I don't use the MSYS2 shell (I have it but simply don't want to use). I got the GTK3 dlls from Geany's bin directory.

For details:

This script copy Geany's dlls and rename them to satisfy fbc. It's simply remove the extra "-0" from their names. It's placed on C:\Toolchain\VFBE\Geany and also ran from there.

@ECHO OFF
SET GEANY="C:\Toolchain\Geany\bin"
SET DESTDIR=%~dp0

copy %GEANY%\libglib-2.0-0.dll %DESTDIR%\libglib-2.0.dll
copy %GEANY%\libgthread-2.0-0.dll %DESTDIR%\libgthread-2.0.dll
copy %GEANY%\libgtk-3-0.dll %DESTDIR%\libgtk-3.dll
copy %GEANY%\libgdk-3-0.dll %DESTDIR%\libgdk-3.dll
copy %GEANY%\libgio-2.0-0.dll %DESTDIR%\libgio-2.0.dll
copy %GEANY%\libgobject-2.0-0.dll %DESTDIR%\libgobject-2.0.dll
copy %GEANY%\libgmodule-2.0-0.dll %DESTDIR%\libgmodule-2.0.dll
copy %GEANY%\libpango-1.0-0.dll %DESTDIR%\libpango-1.0.dll
copy %GEANY%\libcairo-2.dll %DESTDIR%\libcairo.dll
copy %GEANY%\libgdk_pixbuf-2.0-0.dll %DESTDIR%\libgdk_pixbuf-2.0.dll
copy %GEANY%\libpangocairo-1.0-0.dll %DESTDIR%\libpangocairo-1.0.dll
copy %GEANY%\libatk-1.0-0.dll %DESTDIR%\libatk-1.0.dll

This script is placed on VisualFBEditor\MyFbFramework\mff.

@ECHO OFF
SET folder=%~dp0..\

fbc64.exe -b "mff.bi" -exx -v -x "%folder%\mff64.dll" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -i "%folder%\MyFbFramework" -p "C:\Toolchain\VFBE\Geany"

This script is placed on VisualFBEditor\src.

@ECHO OFF
SET folder=%~dp0..\

fbc64.exe -b "VisualFBEditor.bas" -exx -v -x "%folder%\VisualFBEditor64.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i "%folder%\MyFbFramework" -p "C:\Toolchain\VFBE\Geany"

Everything built fine without any warnings. But strangely enough, when running VisualFBEditor64.exe it expects the dlls to have "-0" in their names (their original names) but not what we prepared in the previous step (I added C:\Toolchain\VFBE\Geany to PATH only to realize this). Then I added C:\Toolchain\Geany\bin to PATH and now it runs.
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

I found something. This library is of Geany: libgcc_s_seh-1.dll and this library is of fbc: libgcc_s_sjlj-1.dll. It seems they are incompatible that caused the crash of VFBE. I think if we build fbc from source to use libgcc_s_seh-1.dll like Geany it will no longer crash. It's just my hypothesis and remains as a hypothesis until someone actually test it. I will not test because with me having VFBE built with GTK3 on Windows is enough.
miilvyxg
Posts: 193
Joined: Dec 07, 2021 6:51

Re: VisualFBEditor - IDE for FreeBasic

Post by miilvyxg »

Could you implement drag and drop web development using Web Forms like ASP.NET? I know you intended to make this IDE a VB6/VB.NET replacement. It can't be a full replacement without this. Perhaps MyFbFramework should be extended to include a Web Framework which later be used to empower the drag and drop web development of the IDE? You could get inspirations from ASP.NET Web Forms itself or from Gambas3.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

miilvyxg wrote:Could you implement drag and drop web development using Web Forms like ASP.NET? I know you intended to make this IDE a VB6/VB.NET replacement. It can't be a full replacement without this. Perhaps MyFbFramework should be extended to include a Web Framework which later be used to empower the drag and drop web development of the IDE? You could get inspirations from ASP.NET Web Forms itself or from Gambas3.
I'll see, I need to study this. It is an open source project. You can also participate in the development.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

j8w344c6 wrote:I found something. This library is of Geany: libgcc_s_seh-1.dll and this library is of fbc: libgcc_s_sjlj-1.dll. It seems they are incompatible that caused the crash of VFBE. I think if we build fbc from source to use libgcc_s_seh-1.dll like Geany it will no longer crash. It's just my hypothesis and remains as a hypothesis until someone actually test it. I will not test because with me having VFBE built with GTK3 on Windows is enough.
I was able to run the GTK3 version of VisualFBEditor. To do this, I copied the bin, lib, share folders from Geany.
https://github.com/XusinboyBekchanov/Vi ... ditor2.png
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

I installed mingw64/mingw-w64-x86_64-gtk3 and use the MSYS2 shell this time. The commands I used:

fbc -b "VisualFBEditor.bas" -s gui -exx -v -x "../VisualFBEditor64.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i ../MyFbFramework -p "C:\Toolchain\msys64\mingw64\lib"

fbc -b "mff.bi" -exx -v -x "../libmff64_gtk3.so" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -p "C:\Toolchain\msys64\mingw64\lib"

Compiled flawlessly. But when running it with ./VisualFBEditor64.exe it asked me to check for installed compilers. I accepted then it crashed. This is what printed on the MSYS2 shell:

(VisualFBEditor64.exe:3396): Pango-WARNING **: 13:01:49.733: couldn't load font "Times New Bold Not-Rotated 20", falling back to "Sans Bold Not-Rotated 20", expect ugly output.
0 The resource at “EndProgram” does not exist
0 The resource at “List” does not exist
Segmentation fault

p/s: I don't build my own fbc from source but used the official FreeBASIC-1.08.1-win64 instead. It's /mingw64/bin/libgcc_s_seh-1.dll so I think it's libgcc_s_seh-1.dll vs libgcc_s_sjlj-1.dll that caused problem again. Might be building fbc from source with MSYS2's gcc will cause it to use libgcc_s_seh-1.dll instead of libgcc_s_sjlj-1.dll and eliminate the problem.
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

It seems we are going to be able to develop for Android, doesn't it?

https://github.com/XusinboyBekchanov/Vi ... b8b7d4ae92
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

j8w344c6 wrote:It seems we are going to be able to develop for Android, doesn't it?

https://github.com/XusinboyBekchanov/Vi ... b8b7d4ae92
Yes. Thanks to Ralph Versteegen.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

j8w344c6 wrote:I installed mingw64/mingw-w64-x86_64-gtk3 and use the MSYS2 shell this time. The commands I used:

fbc -b "VisualFBEditor.bas" -s gui -exx -v -x "../VisualFBEditor64.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i ../MyFbFramework -p "C:\Toolchain\msys64\mingw64\lib"

fbc -b "mff.bi" -exx -v -x "../libmff64_gtk3.so" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -p "C:\Toolchain\msys64\mingw64\lib"

Compiled flawlessly. But when running it with ./VisualFBEditor64.exe it asked me to check for installed compilers. I accepted then it crashed. This is what printed on the MSYS2 shell:

(VisualFBEditor64.exe:3396): Pango-WARNING **: 13:01:49.733: couldn't load font "Times New Bold Not-Rotated 20", falling back to "Sans Bold Not-Rotated 20", expect ugly output.
0 The resource at “EndProgram” does not exist
0 The resource at “List” does not exist
Segmentation fault

p/s: I don't build my own fbc from source but used the official FreeBASIC-1.08.1-win64 instead. It's /mingw64/bin/libgcc_s_seh-1.dll so I think it's libgcc_s_seh-1.dll vs libgcc_s_sjlj-1.dll that caused problem again. Might be building fbc from source with MSYS2's gcc will cause it to use libgcc_s_seh-1.dll instead of libgcc_s_sjlj-1.dll and eliminate the problem.
Fixed: Compiling with GTK on Windows:
https://github.com/XusinboyBekchanov/Vi ... 79b6c3fc9a

Fixed: Compiling with GTK on Windows:
https://github.com/XusinboyBekchanov/My ... 4d92545aff
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

Please check the syntax of VisualFBEditor.rc and mff.rc against windres.exe. The version of windres.exe of MSYS2:

windres --version
GNU windres (GNU Binutils) 2.37
Copyright (C) 2021 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.

When I use my own fbc which was built from source, this fbc uses windres by default and it failed to compile with these errors:

fbc -b "VisualFBEditor.bas" -s gui -exx -v -x "../VisualFBEditor64.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i ../MyFbFramework -p "C:\Toolchain\msys64\mingw64\lib"
FreeBASIC Compiler - Version 1.08.1 (2021-12-12), built for win64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
target: win64, x86-64, 64bit
backend: gcc
compiling: VisualFBEditor.bas -o VisualFBEditor.c (main module)
compiling C: gcc.exe -m64 -march=x86-64 -S -nostdlib -nostdinc -Wall -Wno-unused-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fwrapv -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-format -g -masm=intel "VisualFBEditor.c" -o "VisualFBEditor.asm"
assembling: as.exe --64 "VisualFBEditor.asm" -o "VisualFBEditor.o"
compiling rc: windres.exe --output-format=coff --include-dir=. "VisualFBEditor.rc" "VisualFBEditor.rc.o"
VisualFBEditor.rc:1: fatal error: when writing output to : Invalid argument
1 | /*'#########################################################*/
|
compilation terminated.
windres.exe: VisualFBEditor.rc:51: syntax error
windres.exe: preprocessing failed.
compiling rc failed: 'windres.exe' terminated with exit code 1

fbc -b "mff.bi" -exx -v -x "../mff64_gtk3.dll" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -p "C:\Toolchain\msys64\mingw64\lib"
FreeBASIC Compiler - Version 1.08.1 (2021-12-12), built for win64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
target: win64, x86-64, 64bit
backend: gcc
compiling: mff.bi -o mff.c (main module)
compiling C: gcc.exe -m64 -march=x86-64 -S -nostdlib -nostdinc -Wall -Wno-unused-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fwrapv -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-format -g -masm=intel "mff.c" -o "mff.asm"
assembling: as.exe --64 "mff.asm" -o "mff.o"
compiling rc: windres.exe --output-format=coff --include-dir=. "mff.rc" "mff.rc.o"
windres.exe: mff.rc:86: syntax error
compiling rc failed: 'windres.exe' terminated with exit code 1

If I switched to the official FreeBASIC-1.08.1-win64 release it compiled without any problems. As you can see, the official fbc uses GoRC, not windres:

fbc -b "VisualFBEditor.bas" -s gui -exx -v -x "../VisualFBEditor64.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i ../MyFbFramework -p "C:\Toolchain\msys64\mingw64\lib"
FreeBASIC Compiler - Version 1.08.1 (2021-07-05), built for win64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
standalone
target: win64, x86-64, 64bit
backend: gcc
compiling: VisualFBEditor.bas -o VisualFBEditor.c (main module)
compiling C: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\gcc.exe -m64 -march=x86-64 -S -nostdlib -nostdinc -Wall -Wno-unused-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fwrapv -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-format -g -masm=intel "VisualFBEditor.c" -o "VisualFBEditor.asm"
assembling: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\as.exe --64 "VisualFBEditor.asm" -o "VisualFBEditor.o"
compiling rc: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\GoRC.exe /ni /nw /o /machine X64 /fo "VisualFBEditor.obj" "VisualFBEditor.rc"
linking: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\ld.exe -m i386pep -o "../VisualFBEditor64.exe" -subsystem windows -T "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\fbextra.x" --stack 2097152,2097152 -L "C:\Toolchain\msys64\mingw64\lib" -L "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64" -L "." "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crt2.o" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crtbegin.o" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\fbrt0.o" "VisualFBEditor.o" "VisualFBEditor.obj" "-(" -lkernel32 -lgdi32 -lmsimg32 -luser32 -lversion -ladvapi32 -limm32 -lglib-2.0 -lgthread-2.0 -lgtk-3 -lgdk-3 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lpango-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangocairo-1.0 -latk-1.0 -lfbmt -lgcc -lmsvcrt -lmingw32 -lmingwex -lmoldname -lgcc_eh "-)" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crtend.o"

fbc -b "mff.bi" -exx -v -x "../mff64_gtk3.dll" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -p "C:\Toolchain\msys64\mingw64\lib"
FreeBASIC Compiler - Version 1.08.1 (2021-07-05), built for win64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
standalone
target: win64, x86-64, 64bit
backend: gcc
compiling: mff.bi -o mff.c (main module)
compiling C: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\gcc.exe -m64 -march=x86-64 -S -nostdlib -nostdinc -Wall -Wno-unused-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fwrapv -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-format -g -masm=intel "mff.c" -o "mff.asm"
assembling: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\as.exe --64 "mff.asm" -o "mff.o"
compiling rc: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\GoRC.exe /ni /nw /o /machine X64 /fo "mff.obj" "mff.rc"
linking: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\ld.exe -m i386pep -o "../mff64_gtk3.dll" -subsystem console --dll --enable-stdcall-fixup -e DllMainCRTStartup -T "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\fbextra.x" --stack 2097152,2097152 --output-def "../mff64_gtk3.def" -L "C:\Toolchain\msys64\mingw64\lib" -L "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64" -L "." "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\dllcrt2.o" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crtbegin.o" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\fbrt0.o" "mff.o" "mff.obj" "-(" -lkernel32 -lgdi32 -lmsimg32 -luser32 -lversion -ladvapi32 -limm32 -lglib-2.0 -lgthread-2.0 -lgtk-3 -lgdk-3 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lpango-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangocairo-1.0 -latk-1.0 -lwinspool -lfb -lgcc -lmsvcrt -lmingw32 -lmingwex -lmoldname -lgcc_eh "-)" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crtend.o"
creating import library: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\dlltool.exe --def "../mff64_gtk3.def" --dllname "mff64_gtk3.dll" --output-lib "../libmff64_gtk3.dll.a"
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

j8w344c6 wrote:fbc -b "VisualFBEditor.bas" -s gui -exx -v -x "../VisualFBEditor64.exe" "VisualFBEditor.rc" -g -d __USE_GTK__ -d __USE_GTK3__ -i ../MyFbFramework -p "C:\Toolchain\msys64\mingw64\lib"
FreeBASIC Compiler - Version 1.08.1 (2021-07-05), built for win64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
standalone
target: win64, x86-64, 64bit
backend: gcc
compiling: VisualFBEditor.bas -o VisualFBEditor.c (main module)
compiling C: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\gcc.exe -m64 -march=x86-64 -S -nostdlib -nostdinc -Wall -Wno-unused-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fwrapv -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-format -g -masm=intel "VisualFBEditor.c" -o "VisualFBEditor.asm"
assembling: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\as.exe --64 "VisualFBEditor.asm" -o "VisualFBEditor.o"
compiling rc: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\GoRC.exe /ni /nw /o /machine X64 /fo "VisualFBEditor.obj" "VisualFBEditor.rc"
linking: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\ld.exe -m i386pep -o "../VisualFBEditor64.exe" -subsystem windows -T "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\fbextra.x" --stack 2097152,2097152 -L "C:\Toolchain\msys64\mingw64\lib" -L "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64" -L "." "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crt2.o" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crtbegin.o" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\fbrt0.o" "VisualFBEditor.o" "VisualFBEditor.obj" "-(" -lkernel32 -lgdi32 -lmsimg32 -luser32 -lversion -ladvapi32 -limm32 -lglib-2.0 -lgthread-2.0 -lgtk-3 -lgdk-3 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lpango-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangocairo-1.0 -latk-1.0 -lfbmt -lgcc -lmsvcrt -lmingw32 -lmingwex -lmoldname -lgcc_eh "-)" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crtend.o"

fbc -b "mff.bi" -exx -v -x "../mff64_gtk3.dll" "mff.rc" -dll -g -d __USE_GTK__ -d __USE_GTK3__ -p "C:\Toolchain\msys64\mingw64\lib"
FreeBASIC Compiler - Version 1.08.1 (2021-07-05), built for win64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
standalone
target: win64, x86-64, 64bit
backend: gcc
compiling: mff.bi -o mff.c (main module)
compiling C: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\gcc.exe -m64 -march=x86-64 -S -nostdlib -nostdinc -Wall -Wno-unused-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fwrapv -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-format -g -masm=intel "mff.c" -o "mff.asm"
assembling: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\as.exe --64 "mff.asm" -o "mff.o"
compiling rc: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\GoRC.exe /ni /nw /o /machine X64 /fo "mff.obj" "mff.rc"
linking: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\ld.exe -m i386pep -o "../mff64_gtk3.dll" -subsystem console --dll --enable-stdcall-fixup -e DllMainCRTStartup -T "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\fbextra.x" --stack 2097152,2097152 --output-def "../mff64_gtk3.def" -L "C:\Toolchain\msys64\mingw64\lib" -L "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64" -L "." "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\dllcrt2.o" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crtbegin.o" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\fbrt0.o" "mff.o" "mff.obj" "-(" -lkernel32 -lgdi32 -lmsimg32 -luser32 -lversion -ladvapi32 -limm32 -lglib-2.0 -lgthread-2.0 -lgtk-3 -lgdk-3 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lpango-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangocairo-1.0 -latk-1.0 -lwinspool -lfb -lgcc -lmsvcrt -lmingw32 -lmingwex -lmoldname -lgcc_eh "-)" "C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\lib\win64\crtend.o"
creating import library: C:\Toolchain\msys64\home\Administrator\FreeBASIC-1.08.1-win64\bin\win64\dlltool.exe --def "../mff64_gtk3.def" --dllname "mff64_gtk3.dll" --output-lib "../libmff64_gtk3.dll.a"
BTW, I found our binary is linked with libgcc_s_seh-1.dll (-lgcc_eh). It's the compiler that automatically link with this library or you manually set to link with it?
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

Xusinboy Bekchanov wrote:Fixed: Compiling with GTK on Windows:
https://github.com/XusinboyBekchanov/Vi ... 79b6c3fc9a

Fixed: Compiling with GTK on Windows:
https://github.com/XusinboyBekchanov/My ... 4d92545aff
Not really fixed. The crash when finding compiler now disappeared but when creating a new GUI project, the form designer is not displayed. Tried dragging controls into the form designer area (now is only an empty area) doesn't show anything. When I exit VFBE and choose not to save anything, it crashed.

This is what printed on the screen:

./VisualFBEditor64.exe
Segmentation fault

It's simply a Segmentation fault without any additional information. Seems will be hard to debug.

Do you need me to send you the binary of VFBE and MFF?

Edit: it seems it will Segmentation fault when I exit VFBE regardless of what I did when VFBE is running.

Edit2: The form designer could show if I choose to not find installed compiler.

Edit3: Regardless of my choice accept finding compilers or not, any time it will be a new project dialog automatically appeared.
Last edited by j8w344c6 on Dec 12, 2021 13:04, edited 1 time in total.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

j8w344c6 wrote: BTW, I found our binary is linked with libgcc_s_seh-1.dll (-lgcc_eh). It's the compiler that automatically link with this library or you manually set to link with it?
No, I didn’t configure.
What are these libraries used for? What is their purpose?
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: VisualFBEditor - IDE for FreeBasic

Post by j8w344c6 »

Xusinboy Bekchanov wrote:
j8w344c6 wrote: BTW, I found our binary is linked with libgcc_s_seh-1.dll (-lgcc_eh). It's the compiler that automatically link with this library or you manually set to link with it?
No, I didn’t configure.
What are these libraries used for? What is their purpose?
I have no idea either. It seems this libgcc_s_seh-1.dll is a dependency of the GTK3 dlls on MSYS2. When GTK3 being linked, it dragged libgcc_s_seh-1.dll together with it. It could be this libgcc_s_seh-1.dll is a dependency of any dlls on MSYS2, too.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

j8w344c6 wrote: Not really fixed. The crash when finding compiler now disappeared but when creating a new GUI project, the form designer is not displayed. Tried dragging controls into the form designer area (now is only an empty area) doesn't show anything.
Here is:
https://github.com/XusinboyBekchanov/Vi ... ditor2.png
j8w344c6 wrote: When I exit VFBE and choose not to save anything, it crashed.

This is what printed on the screen:

./VisualFBEditor64.exe
Segmentation fault

It's simply a Segmentation fault without any additional information. Seems will be hard to debug.

Do you need me to send you the binary of VFBE and MFF?

Edit: it seems it will Segmentation fault when I exit VFBE regardless of what I did when VFBE is running.
No, I don't need binaries, I myself know why. When debugging through gdb, I saw earlier.
Post Reply