VisualFBEditor - IDE for FreeBasic

User projects written in or related to FreeBASIC.
Post Reply
lenoil98
Posts: 15
Joined: Feb 16, 2021 0:13
Location: USA

Re: VisualFBEditor - IDE for FreeBasic

Post by lenoil98 »

When attempting to build on FreeBSD/PowerPC64 I'm getting the following errors:

root@blackbird:~/Devel/VisualFBEditor/src # fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i "../../MyFbFramework"
/root/Devel/MyFbFramework/mff/UString.bas(269) error 318: Type mismatch in byref function result assignment, found 'Else' in 'If subject = 0 Then Return "" Else Return *subject'
/root/Devel/MyFbFramework/mff/UString.bas(346) error 318: Type mismatch in byref function result assignment in 'If m_BufferLen = 0 Then Return ""'
/root/Devel/MyFbFramework/mff/SysUtils.bas(259) error 24: Invalid data types, before '&' in 'Result &= IIf(i = iStart, "", Delimiter) & subject(i)'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1463) error 318: Type mismatch in byref function result assignment in 'Case 0: Return "No error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1464) error 318: Type mismatch in byref function result assignment in 'Case 1: Return "Illegal function call"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1465) error 318: Type mismatch in byref function result assignment in 'Case 2: Return "File not found signal"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1466) error 318: Type mismatch in byref function result assignment in 'Case 3: Return "File I/O error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1467) error 318: Type mismatch in byref function result assignment in 'Case 4: Return "Out of memory"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1468) error 318: Type mismatch in byref function result assignment in 'Case 5: Return "Illegal resume"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1469) error 318: Type mismatch in byref function result assignment in 'Case 6: Return "Out of bounds array access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1469) error 133: Too many errors, exiting

Am I missing something? Please help.
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Maybe you are compiling with an old version of the compiler?
lenoil98
Posts: 15
Joined: Feb 16, 2021 0:13
Location: USA

Re: VisualFBEditor - IDE for FreeBasic

Post by lenoil98 »

I'm using the most recent release. See below.

FreeBASIC Compiler - Version 1.07.2 (2021-03-19), built for freebsd-powerpc64 (64bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
target: freebsd-powerpc64, powerpc64, 64bit
root@blackbird:~/Devel/VFBE/src # fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i "../../MyFbFramework"
/root/Devel/MyFbFramework/mff/UString.bas(269) error 318: Type mismatch in byref function result assignment, found 'Else' in 'If subject = 0 Then Return "" Else Return *subject'
/root/Devel/MyFbFramework/mff/SysUtils.bas(259) error 24: Invalid data types, before '&' in 'Result &= IIf(i = iStart, "", Delimiter) & subject(i)'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1463) error 318: Type mismatch in byref function result assignment in 'Case 0: Return "No error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1464) error 318: Type mismatch in byref function result assignment in 'Case 1: Return "Illegal function call"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1465) error 318: Type mismatch in byref function result assignment in 'Case 2: Return "File not found signal"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1466) error 318: Type mismatch in byref function result assignment in 'Case 3: Return "File I/O error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1467) error 318: Type mismatch in byref function result assignment in 'Case 4: Return "Out of memory"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1468) error 318: Type mismatch in byref function result assignment in 'Case 5: Return "Illegal resume"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1469) error 318: Type mismatch in byref function result assignment in 'Case 6: Return "Out of bounds array access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 318: Type mismatch in byref function result assignment in 'Case 7: Return "Null Pointer Access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 133: Too many errors, exiting
root@blackbird:~/Devel/VFBE/src #

I originally tried with a fbc built from the Github master (1.08), then an older compiler 1.05. Regardless of the compiler, I get the same errors. Could this be an issue with FreeBSD?
Cretin Ho
Posts: 182
Joined: Feb 04, 2021 13:01

Re: VisualFBEditor - IDE for FreeBasic

Post by Cretin Ho »

lenoil98 wrote:I'm using the most recent release. See below.

FreeBASIC Compiler - Version 1.07.2 (2021-03-19), built for freebsd-powerpc64 (64bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
target: freebsd-powerpc64, powerpc64, 64bit
root@blackbird:~/Devel/VFBE/src # fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i "../../MyFbFramework"
/root/Devel/MyFbFramework/mff/UString.bas(269) error 318: Type mismatch in byref function result assignment, found 'Else' in 'If subject = 0 Then Return "" Else Return *subject'
/root/Devel/MyFbFramework/mff/SysUtils.bas(259) error 24: Invalid data types, before '&' in 'Result &= IIf(i = iStart, "", Delimiter) & subject(i)'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1463) error 318: Type mismatch in byref function result assignment in 'Case 0: Return "No error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1464) error 318: Type mismatch in byref function result assignment in 'Case 1: Return "Illegal function call"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1465) error 318: Type mismatch in byref function result assignment in 'Case 2: Return "File not found signal"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1466) error 318: Type mismatch in byref function result assignment in 'Case 3: Return "File I/O error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1467) error 318: Type mismatch in byref function result assignment in 'Case 4: Return "Out of memory"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1468) error 318: Type mismatch in byref function result assignment in 'Case 5: Return "Illegal resume"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1469) error 318: Type mismatch in byref function result assignment in 'Case 6: Return "Out of bounds array access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 318: Type mismatch in byref function result assignment in 'Case 7: Return "Null Pointer Access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 133: Too many errors, exiting
root@blackbird:~/Devel/VFBE/src #

I originally tried with a fbc built from the Github master (1.08), then an older compiler 1.05. Regardless of the compiler, I get the same errors. Could this be an issue with FreeBSD?
No. Seems to be the issue with your own FreeBSD/PowerPC port of fbc.
BTW, his IDE has never supported any OS outside of Linux and Windows.
Here is the error log when compiling it with FreeBSD/amd64 (fbc build by StW):

Code: Select all

[fellow@fellow ~/VisualFBEditor/src]$ fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i ../MyFbFramework
/usr/home/fellow/VisualFBEditor/MyFbFramework/mff/UString.bi(5) error 23: File not found, "glib.bi"
[fellow@fellow ~/VisualFBEditor/src]$ fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i ../MyFbFramework -i $HOME/Downloads/fbc_freebsd64/inc
/home/fellow/Downloads/fbc_freebsd64/inc/crt/sys/types.bi(21) error: Platform unsupported
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(24) error 14: Expected identifier, found 'clock_t' in 'declare function clock () as clock_t'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(25) error 59: Illegal specification, at parameter 1 of time_() in 'declare function time_ alias "time" (byval as time_t ptr = NULL) as time_t'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(26) error 59: Illegal specification, at parameter 1 of difftime() in 'declare function difftime (byval as time_t, byval as time_t) as double'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(27) error 59: Illegal specification, at parameter 1 of mktime() in 'declare function mktime (byval as tm ptr) as time_t'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(28) error 59: Illegal specification, at parameter 1 of asctime() in 'declare function asctime (byval as tm ptr) as zstring ptr'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(29) error 59: Illegal specification, at parameter 1 of ctime() in 'declare function ctime (byval as time_t ptr) as zstring ptr'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(30) error 59: Illegal specification, at parameter 1 of gmtime() in 'declare function gmtime (byval as time_t ptr) as tm ptr'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(31) error 59: Illegal specification, at parameter 1 of localtime() in 'declare function localtime (byval as time_t ptr) as tm ptr'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(32) error 59: Illegal specification, at parameter 4 of strftime() in 'declare function strftime (byval as zstring ptr, byval as size_t, byval as zstring ptr, byval as tm ptr) as size_t'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(32) error 133: Too many errors, exiting
You could see. The problems are of the crt headers but not his code like yours.
Your FreeBSD/PowerPC maybe broken. Try compiling his IDE on his supported OS, Windows or Linux, to see if it's really the problems of his code or not, which I think very unlikely.
lenoil98
Posts: 15
Joined: Feb 16, 2021 0:13
Location: USA

Re: VisualFBEditor - IDE for FreeBasic

Post by lenoil98 »

Cretin Ho wrote:
lenoil98 wrote:I'm using the most recent release. See below.

FreeBASIC Compiler - Version 1.07.2 (2021-03-19), built for freebsd-powerpc64 (64bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
target: freebsd-powerpc64, powerpc64, 64bit
root@blackbird:~/Devel/VFBE/src # fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i "../../MyFbFramework"
/root/Devel/MyFbFramework/mff/UString.bas(269) error 318: Type mismatch in byref function result assignment, found 'Else' in 'If subject = 0 Then Return "" Else Return *subject'
/root/Devel/MyFbFramework/mff/SysUtils.bas(259) error 24: Invalid data types, before '&' in 'Result &= IIf(i = iStart, "", Delimiter) & subject(i)'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1463) error 318: Type mismatch in byref function result assignment in 'Case 0: Return "No error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1464) error 318: Type mismatch in byref function result assignment in 'Case 1: Return "Illegal function call"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1465) error 318: Type mismatch in byref function result assignment in 'Case 2: Return "File not found signal"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1466) error 318: Type mismatch in byref function result assignment in 'Case 3: Return "File I/O error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1467) error 318: Type mismatch in byref function result assignment in 'Case 4: Return "Out of memory"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1468) error 318: Type mismatch in byref function result assignment in 'Case 5: Return "Illegal resume"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1469) error 318: Type mismatch in byref function result assignment in 'Case 6: Return "Out of bounds array access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 318: Type mismatch in byref function result assignment in 'Case 7: Return "Null Pointer Access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 133: Too many errors, exiting
root@blackbird:~/Devel/VFBE/src #

I originally tried with a fbc built from the Github master (1.08), then an older compiler 1.05. Regardless of the compiler, I get the same errors. Could this be an issue with FreeBSD?
No. Seems to be the issue with your own FreeBSD/PowerPC port of fbc.
BTW, his IDE has never supported any OS outside of Linux and Windows.
Here is the error log when compiling it with FreeBSD/amd64 (fbc build by StW):

Code: Select all

[fellow@fellow ~/VisualFBEditor/src]$ fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i ../MyFbFramework
/usr/home/fellow/VisualFBEditor/MyFbFramework/mff/UString.bi(5) error 23: File not found, "glib.bi"
[fellow@fellow ~/VisualFBEditor/src]$ fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i ../MyFbFramework -i $HOME/Downloads/fbc_freebsd64/inc
/home/fellow/Downloads/fbc_freebsd64/inc/crt/sys/types.bi(21) error: Platform unsupported
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(24) error 14: Expected identifier, found 'clock_t' in 'declare function clock () as clock_t'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(25) error 59: Illegal specification, at parameter 1 of time_() in 'declare function time_ alias "time" (byval as time_t ptr = NULL) as time_t'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(26) error 59: Illegal specification, at parameter 1 of difftime() in 'declare function difftime (byval as time_t, byval as time_t) as double'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(27) error 59: Illegal specification, at parameter 1 of mktime() in 'declare function mktime (byval as tm ptr) as time_t'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(28) error 59: Illegal specification, at parameter 1 of asctime() in 'declare function asctime (byval as tm ptr) as zstring ptr'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(29) error 59: Illegal specification, at parameter 1 of ctime() in 'declare function ctime (byval as time_t ptr) as zstring ptr'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(30) error 59: Illegal specification, at parameter 1 of gmtime() in 'declare function gmtime (byval as time_t ptr) as tm ptr'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(31) error 59: Illegal specification, at parameter 1 of localtime() in 'declare function localtime (byval as time_t ptr) as tm ptr'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(32) error 59: Illegal specification, at parameter 4 of strftime() in 'declare function strftime (byval as zstring ptr, byval as size_t, byval as zstring ptr, byval as tm ptr) as size_t'
/home/fellow/Downloads/fbc_freebsd64/inc/crt/time.bi(32) error 133: Too many errors, exiting
You could see. The problems are of the crt headers but not his code like yours.
Your FreeBSD/PowerPC maybe broken. Try compiling his IDE on his supported OS, Windows or Linux, to see if it's really the problems of his code or not, which I think very unlikely.
I didn’t say it was his code, I was just trying to see if there was something I was missing. However, your input added value as the issue may be as I suggested with FreeBSD (that is the headers I’m using for FreeBSD).

I’ll figure it out!
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

lenoil98 wrote:I'm using the most recent release. See below.

FreeBASIC Compiler - Version 1.07.2 (2021-03-19), built for freebsd-powerpc64 (64bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
target: freebsd-powerpc64, powerpc64, 64bit
root@blackbird:~/Devel/VFBE/src # fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i "../../MyFbFramework"
/root/Devel/MyFbFramework/mff/UString.bas(269) error 318: Type mismatch in byref function result assignment, found 'Else' in 'If subject = 0 Then Return "" Else Return *subject'
/root/Devel/MyFbFramework/mff/SysUtils.bas(259) error 24: Invalid data types, before '&' in 'Result &= IIf(i = iStart, "", Delimiter) & subject(i)'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1463) error 318: Type mismatch in byref function result assignment in 'Case 0: Return "No error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1464) error 318: Type mismatch in byref function result assignment in 'Case 1: Return "Illegal function call"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1465) error 318: Type mismatch in byref function result assignment in 'Case 2: Return "File not found signal"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1466) error 318: Type mismatch in byref function result assignment in 'Case 3: Return "File I/O error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1467) error 318: Type mismatch in byref function result assignment in 'Case 4: Return "Out of memory"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1468) error 318: Type mismatch in byref function result assignment in 'Case 5: Return "Illegal resume"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1469) error 318: Type mismatch in byref function result assignment in 'Case 6: Return "Out of bounds array access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 318: Type mismatch in byref function result assignment in 'Case 7: Return "Null Pointer Access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 133: Too many errors, exiting
root@blackbird:~/Devel/VFBE/src #

I originally tried with a fbc built from the Github master (1.08), then an older compiler 1.05. Regardless of the compiler, I get the same errors. Could this be an issue with FreeBSD?
Please try rounding string values on WStr(), then maybe it works. If it works, then I will make them all so.

Code: Select all

Function WGet(ByRef subject As WString Ptr) ByRef As WString
	If subject = 0 Then Return WStr("") Else Return *subject
End Function
lenoil98
Posts: 15
Joined: Feb 16, 2021 0:13
Location: USA

Re: VisualFBEditor - IDE for FreeBasic

Post by lenoil98 »

Xusinboy Bekchanov wrote:
lenoil98 wrote:I'm using the most recent release. See below.

FreeBASIC Compiler - Version 1.07.2 (2021-03-19), built for freebsd-powerpc64 (64bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
target: freebsd-powerpc64, powerpc64, 64bit
root@blackbird:~/Devel/VFBE/src # fbc "VisualFBEditor.bas" -x "../VisualFBEditor64_gtk3" -i "../../MyFbFramework"
/root/Devel/MyFbFramework/mff/UString.bas(269) error 318: Type mismatch in byref function result assignment, found 'Else' in 'If subject = 0 Then Return "" Else Return *subject'
/root/Devel/MyFbFramework/mff/SysUtils.bas(259) error 24: Invalid data types, before '&' in 'Result &= IIf(i = iStart, "", Delimiter) & subject(i)'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1463) error 318: Type mismatch in byref function result assignment in 'Case 0: Return "No error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1464) error 318: Type mismatch in byref function result assignment in 'Case 1: Return "Illegal function call"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1465) error 318: Type mismatch in byref function result assignment in 'Case 2: Return "File not found signal"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1466) error 318: Type mismatch in byref function result assignment in 'Case 3: Return "File I/O error"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1467) error 318: Type mismatch in byref function result assignment in 'Case 4: Return "Out of memory"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1468) error 318: Type mismatch in byref function result assignment in 'Case 5: Return "Illegal resume"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1469) error 318: Type mismatch in byref function result assignment in 'Case 6: Return "Out of bounds array access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 318: Type mismatch in byref function result assignment in 'Case 7: Return "Null Pointer Access"'
/root/Devel/MyFbFramework/mff/SysUtils.bas(1470) error 133: Too many errors, exiting
root@blackbird:~/Devel/VFBE/src #

I originally tried with a fbc built from the Github master (1.08), then an older compiler 1.05. Regardless of the compiler, I get the same errors. Could this be an issue with FreeBSD?
Please try rounding string values on WStr(), then maybe it works. If it works, then I will make them all so.

Code: Select all

Function WGet(ByRef subject As WString Ptr) ByRef As WString
	If subject = 0 Then Return WStr("") Else Return *subject
End Function
Thanks! That allowed me to get pass those initial errors, but more popped up. I truly believe this is related to the lack of good crt headers FreeBSD. Usually Linux headers will also work for FreeBSD, but this may be a bridge too far.
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

lenoil98 wrote:Thanks! That allowed me to get pass those initial errors, but more popped up. I truly believe this is related to the lack of good crt headers FreeBSD. Usually Linux headers will also work for FreeBSD, but this may be a bridge too far.
What are the mistakes, can you tell?
Cretin Ho
Posts: 182
Joined: Feb 04, 2021 13:01

Re: VisualFBEditor - IDE for FreeBasic

Post by Cretin Ho »

Xusinboy Bekchanov wrote:
Cretin Ho wrote:
Xusinboy Bekchanov wrote:Removed crt dependency:
https://github.com/XusinboyBekchanov/My ... 26983c4386

Now I think you can compile on your system.
Sorry. I didn't see your comment. No. Still fails. The crt was used by GTK and GLib themselves, so as I said on my previous post any programs use these libraries, not only your IDE, will fail to compile on the Solaris target.
Simple copying doesn't work?
Update: Simple copying and change the macro from "linux" to "freebsd" does work. It's just my previous source tree of fbc was messed up. I removed it and clone a new one then everything is worked now.

Note: on FreeBSD, you have to add -Wl -L/usr/local/lib to the compilation command in order to have the linker find the needed libraries. I make a bash shell alias to make it more convenient:

alias fbc='fbc -Wl -L/usr/local/lib'

The only thing that doesn't work on FreeBSD is the splash screen, you could see in my screenshot below, it doesn't disappear and just there, hiding other parts of the IDE so it's useless now. Is there any option to disable the splash screen to workaround this issue?

Image
Cretin Ho
Posts: 182
Joined: Feb 04, 2021 13:01

Re: VisualFBEditor - IDE for FreeBasic

Post by Cretin Ho »

Xusinboy Bekchanov wrote:
lenoil98 wrote:Thanks! That allowed me to get pass those initial errors, but more popped up. I truly believe this is related to the lack of good crt headers FreeBSD. Usually Linux headers will also work for FreeBSD, but this may be a bridge too far.
What are the mistakes, can you tell?
If he has the same experience as mine, then he is right. It's about the missing crt headers and needed macros for them on FreeBSD. But it's not as simple as copy the linux directory into the freebsd directory but one has to edit the headers themselves to add the needed macros for FreeBSD.
lenoil98
Posts: 15
Joined: Feb 16, 2021 0:13
Location: USA

Re: VisualFBEditor - IDE for FreeBasic

Post by lenoil98 »

Xusinboy Bekchanov wrote:
lenoil98 wrote:Thanks! That allowed me to get pass those initial errors, but more popped up. I truly believe this is related to the lack of good crt headers FreeBSD. Usually Linux headers will also work for FreeBSD, but this may be a bridge too far.
What are the mistakes, can you tell?
These are the new errors.

/root/Devel/VFBE/src/EditControl.bas(1049) error 58: Type mismatch, at parameter 2 in 'WLet(FECLine->Text, IIf(TabAsSpaces AndAlso ChoosedTabStyle = 0, WSpace(CurIndents * TabWidth), WString(CurIndents, !"\t")) & LTrim(*FECLine->Text, Any !"\t "))'
/root/Devel/VFBE/src/TabWindow.bas(169) error 42: Variable not declared, C in 'Function AddTab(ByRef FileName As WString = C, bNew As Boolean = False, TreeN As TreeNode Ptr = 0, bNoActivate As Boolean = False) As TabWindow Ptr'
/root/Devel/VFBE/src/TabWindow.bas(1279) warning 36(1): Mismatching parameter initializer, at parameter 2 (PropertyName) of ChangeControl()
/root/Devel/VFBE/src/TabWindow.bas(1354) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine j, *FLine1 & TabSpace & "Dim As " & WGet(tb->Des->ReadPropertyFunc(Cpnt, "ClassName")) & WStr(" ") & CtrlName'
/root/Devel/VFBE/src/TabWindow.bas(1370) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine tp + 1, *FLine1 & TabSpace & "Declare Constructor"'
/root/Devel/VFBE/src/TabWindow.bas(1444) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + 4, *FLine1 & TabSpace & "' " & frmName'
/root/Devel/VFBE/src/TabWindow.bas(1445) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + 5, *FLine1 & TabSpace & "With This"'
/root/Devel/VFBE/src/TabWindow.bas(1446) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + 6, *FLine1 & TabSpace & TabSpace & ".Name = """ & frmName & """"'
/root/Devel/VFBE/src/TabWindow.bas(1448) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + 7, *FLine1 & TabSpace & TabSpace & ".Text = """ & WGet(tb->Des->ReadPropertyFunc(tb->Des->DesignControl, "Text")) & """"'
/root/Devel/VFBE/src/TabWindow.bas(1452) error 24: Invalid data types, before '&' in 'If *FLine <> WStr("") Then ptxtCode->InsertLine ep + 8, *FLine1 & TabSpace & TabSpace & "." & PropertyName & " = " & *FLine: q = 1'
/root/Devel/VFBE/src/TabWindow.bas(1455) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + q + 8, *FLine1 & TabSpace & TabSpace & ".SetBounds " & iLeft1 & ", " & iTop1 & ", " & iWidth1 & ", " & iHeight1'
/root/Devel/VFBE/src/TabWindow.bas(1455) error 133: Too many errors, exiting
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

Cretin Ho wrote:
Xusinboy Bekchanov wrote:
Cretin Ho wrote: Sorry. I didn't see your comment. No. Still fails. The crt was used by GTK and GLib themselves, so as I said on my previous post any programs use these libraries, not only your IDE, will fail to compile on the Solaris target.
Simple copying doesn't work?
Update: Simple copying and change the macro from "linux" to "freebsd" does work. It's just my previous source tree of fbc was messed up. I removed it and clone a new one then everything is worked now.

Note: on FreeBSD, you have to add -Wl -L/usr/local/lib to the compilation command in order to have the linker find the needed libraries. I make a bash shell alias to make it more convenient:

alias fbc='fbc -Wl -L/usr/local/lib'

The only thing that doesn't work on FreeBSD is the splash screen, you could see in my screenshot below, it doesn't disappear and just there, hiding other parts of the IDE so it's useless now. Is there any option to disable the splash screen to workaround this issue?
Good news. You can close like this:
Clicking on the image in the splash form will close the splash form.
https://github.com/XusinboyBekchanov/Vi ... af2ef4539a
lenoil98
Posts: 15
Joined: Feb 16, 2021 0:13
Location: USA

Re: VisualFBEditor - IDE for FreeBasic

Post by lenoil98 »

Cretin Ho wrote:
Xusinboy Bekchanov wrote:
Cretin Ho wrote: Sorry. I didn't see your comment. No. Still fails. The crt was used by GTK and GLib themselves, so as I said on my previous post any programs use these libraries, not only your IDE, will fail to compile on the Solaris target.
Simple copying doesn't work?
Update: Simple copying and change the macro from "linux" to "freebsd" does work. It's just my previous source tree of fbc was messed up. I removed it and clone a new one then everything is worked now.

Note: on FreeBSD, you have to add -Wl -L/usr/local/lib to the compilation command in order to have the linker find the needed libraries. I make a bash shell alias to make it more convenient:

alias fbc='fbc -Wl -L/usr/local/lib'

The only thing that doesn't work on FreeBSD is the splash screen, you could see in my screenshot below, it doesn't disappear and just there, hiding other parts of the IDE so it's useless now. Is there any option to disable the splash screen to workaround this issue?

Image
Can you provide the details on what changes you made and to what macros? Thanks in advance.
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: VisualFBEditor - IDE for FreeBasic

Post by Xusinboy Bekchanov »

lenoil98 wrote:
Xusinboy Bekchanov wrote:
lenoil98 wrote:Thanks! That allowed me to get pass those initial errors, but more popped up. I truly believe this is related to the lack of good crt headers FreeBSD. Usually Linux headers will also work for FreeBSD, but this may be a bridge too far.
What are the mistakes, can you tell?
These are the new errors.

/root/Devel/VFBE/src/EditControl.bas(1049) error 58: Type mismatch, at parameter 2 in 'WLet(FECLine->Text, IIf(TabAsSpaces AndAlso ChoosedTabStyle = 0, WSpace(CurIndents * TabWidth), WString(CurIndents, !"\t")) & LTrim(*FECLine->Text, Any !"\t "))'
/root/Devel/VFBE/src/TabWindow.bas(169) error 42: Variable not declared, C in 'Function AddTab(ByRef FileName As WString = C, bNew As Boolean = False, TreeN As TreeNode Ptr = 0, bNoActivate As Boolean = False) As TabWindow Ptr'
/root/Devel/VFBE/src/TabWindow.bas(1279) warning 36(1): Mismatching parameter initializer, at parameter 2 (PropertyName) of ChangeControl()
/root/Devel/VFBE/src/TabWindow.bas(1354) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine j, *FLine1 & TabSpace & "Dim As " & WGet(tb->Des->ReadPropertyFunc(Cpnt, "ClassName")) & WStr(" ") & CtrlName'
/root/Devel/VFBE/src/TabWindow.bas(1370) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine tp + 1, *FLine1 & TabSpace & "Declare Constructor"'
/root/Devel/VFBE/src/TabWindow.bas(1444) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + 4, *FLine1 & TabSpace & "' " & frmName'
/root/Devel/VFBE/src/TabWindow.bas(1445) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + 5, *FLine1 & TabSpace & "With This"'
/root/Devel/VFBE/src/TabWindow.bas(1446) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + 6, *FLine1 & TabSpace & TabSpace & ".Name = """ & frmName & """"'
/root/Devel/VFBE/src/TabWindow.bas(1448) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + 7, *FLine1 & TabSpace & TabSpace & ".Text = """ & WGet(tb->Des->ReadPropertyFunc(tb->Des->DesignControl, "Text")) & """"'
/root/Devel/VFBE/src/TabWindow.bas(1452) error 24: Invalid data types, before '&' in 'If *FLine <> WStr("") Then ptxtCode->InsertLine ep + 8, *FLine1 & TabSpace & TabSpace & "." & PropertyName & " = " & *FLine: q = 1'
/root/Devel/VFBE/src/TabWindow.bas(1455) error 24: Invalid data types, before '&' in 'ptxtCode->InsertLine ep + q + 8, *FLine1 & TabSpace & TabSpace & ".SetBounds " & iLeft1 & ", " & iTop1 & ", " & iWidth1 & ", " & iHeight1'
/root/Devel/VFBE/src/TabWindow.bas(1455) error 133: Too many errors, exiting
You require all strings to be inside WStr() (What makes it so? String with quotation marks considers String and does not combine with WString???).
Only in this case where C came from, I don't know. In my code, quotation marks ("") stand together with it.
/root/Devel/VFBE/src/TabWindow.bas(169) error 42: Variable not declared, C in 'Function AddTab (ByRef FileName As WString = C, bNew As Boolean = False, TreeN As TreeNode Ptr = 0, bNoActivate As Boolean = False) As TabWindow Ptr'
Cretin Ho
Posts: 182
Joined: Feb 04, 2021 13:01

Re: VisualFBEditor - IDE for FreeBasic

Post by Cretin Ho »

lenoil98 wrote:
Cretin Ho wrote:Can you provide the details on what changes you made and to what macros? Thanks in advance.
Here is my crt directory, you could use it as a reference: https://ufile.io/zvkbotwx
This is just a random free file upload service I found on the internet. Too bad, this forum doesn't allow attachment. Attachment is very handy when sharing such a small file like this.
Last edited by Cretin Ho on Mar 21, 2021 15:10, edited 1 time in total.
Post Reply