Page 4 of 4

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Posted: 04 Oct 2016, 17:48
by Cellulo
I know it's old topic, but i want to try to compile the wheely example source code with the last Freebasic 1.0.5.0 version but all time i fail to compil the code, i follow the pdf tutorial, but some steps it's not clear for me. here the steps order.

1) I install freebasic at c:\

2) i install fbedit IDE in freebasic at "c:\freebasic\fbedit"

3) i put all examples files folder TSX Wheely, TSX ViewCam etc.. in "c:\freebasic"

4) i put "tsxapi" folder in "c:\freebasic"

5) Now i launch FBedit, i open "Wheely.bas" file, i make the Compil TSX setting in build option.

6) i launch the compil and i get this error message:

Build error(s)
c:\FreeBASIC\fbc -w 3 -s gui -dll -export "wheely.bas" "wheely.rc"
C:\FreeBASIC\tsxapi\tsxMouse.bi(88) error 14: Expected identifier, found 'Pointer' in 'Type tsxMousetool As Pointer'
C:\FreeBASIC\tsxapi\tsxExtOb.bi(22) error 14: Expected identifier, found 'Pointer' in 'Type tsxFile As Pointer'

What's wrong here ? and where is "windows.bi" file ? i don't find it , sorry i'm noob in programming, maybe i make a bad step in the processus.

i want make this test to see if there is no trouble with freebasic 1.0.5.0, maybe i need to try with freebasic 0.20.0b from the tutorial pdf file.

EDIT: i found windows.bi file, it autodetect when i compil.

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Posted: 04 Oct 2016, 18:45
by Cellulo
Well, i found my problem the last freebasic version is not suitable for compil the example freebasic plugin file from the freebasic SDK, i continu to test other version of freebasic to see when the problem come, this mean that the code in freebasic has changed after a certain version.

Re: Developing tS 6.6 (Modeler) PlugIns in a Basic Language

Posted: 04 Oct 2016, 19:31
by Cellulo
I have made more test with different version of freebasic to have a working wheely plugin dll file compiled, here the result:


Freebasic 1.0.4 and 1.0.5 : NO, problem in the code with pointer, no files generated due to the error.

Freebasic 1.00, 1.01, 1.02.1 and 1.03 : OK but no more obj file generated but the dll plugin file is created with 10 octet in addition instead of 15 ko final size plugin file.

Freebasic 0.24.0 : OK, but no more obj file generated but the dll plugin file is created with 1 octet in addition instead of 15 ko final size plugin file.

Freebasic 0.23.0 : OK, all is good with this freebasic version, all three files are generated.

The best is to use the freebasic 0.23.0 to compil plugin made in basic because the dll file is light in size and three files are generated when compiled as the freebasic SDK tutorial pdf file say made by DesignDevil.

Freebasic 0.23.0

i have question the obj file generated is needed or not ?