Isn’t Ken just updating the SourceForge repo? There’s not a new build from
there, but I’ve seen checkin comments.

I have been able to get VirtualT to build on Windows with Visual Studio,
but I did have to locate the older version of FLTK. I may pull the latest
repo to update my working copy and integrate Ken’s latest changes.

I don’t know if there’s a way to do pull requests on SourceForge, like
there is on GitHub, but if there is, that’s where I’d start. Get your work
rolled back in to the main repo.

I’m planning on patching a bug in the serial port emulation; the program
locks up when you close it with the serial port emulation turned on, and it
doesn’t open the serial port when you select it from the peripheral menu.
The user has to restart the program. So that all needs some cleanup.

The internal Rex implementation is also out of date; the control-key
hotkeys don’t work, for example.

Specifically on paths: I think the Windows shell limit on path sizes is 260
characters, but if VirtualT is still using char* arrays for paths, that
should probably be refactored to use the STL string type.

Ken has been commenting here, so hopefully he’ll have some advice on how we
can submit patches for these things.

On Tue, Mar 24, 2020 at 3:28 PM Brian K. White <[email protected]> wrote:

> This version has a handful of build fixes and array size fixes, but does
> not yet have the speed fix Tom Wilson posted.
>
> Well, my best guess at the proper fixes. I made the compiler warnings go
> away, but I'm not 100% sure they are really the right way to fix each item.
>
> Some arrays looked like they were one byte too small so they couldn't
> hold their terminating null. But maybe the arrays were the right size
> and the variables that used them needed to be reduced by one instead.
>
> Others were fuzzier like just needing more room for path strings, but no
> specific number, just, more, so I just picked a bigger value arbitrarily.
>
> This shows everything in one diff
>
> https://github.com/bkw777/VirtualT/commit/fe6df94725a5fcf1989964b22cb79848dc778a6d
>
> Oh yeah I see some fltk fixes for newer versions too I forgot those.
>
> Particularly I'm not sure if removing the Cancel button in display.cpp
> was correct. It makes the too-many-params error go away, but I don't
> know if that option was actually needed and so it needs some other fix
> that lets you still have the button.
>
> I think Ken said he addressed the speed problem in his repo by now. I
> don't remember if he posted a github or other public link to his new git
> repo.
>
> The diff for Tom's speed fix from my local copy is:
> (not a real diff, I collapsed all the spaces for the email)
>
> bkw@negre:~/src/VirtualT$ git diff HEAD^
> diff --git a/src/io.c b/src/io.c
> index 28bbdb4..ef4cf42 100644
> --- a/src/io.c
> +++ b/src/io.c
> @@ -1262,14 +1262,15 @@ int inport(uchar port)
> {
>   if (fullspeed == 0)
>    {
> +  // Disabled per Tom Wilson <[email protected]> post to m100 list
>     /* Loop through all LCD driver modules */
> -  for (c = 0; c < 10; c++)
> -   {
> -    /* Check if this driver is enabled */
> -    if (lcdbits & (1 << c))
> -     if (lcdTime[c]+.000014 > hirestimer())
> -      return (0x80);
> -   }
> +   //for (c = 0; c < 10; c++)
> +   //{
> +   // /* Check if this driver is enabled */
> +   // if (lcdbits & (1 << c))
> +   //  if (lcdTime[c]+.000014 > hirestimer())
> +   //   return (0x80);
> +   //}
>      return 64;
>     }
>    else
>
>
> --
> bkw
>
>
> On 3/24/20 4:22 PM, Kevin Becker wrote:
> > For what it's worth, I just built VirtualT on Fedora 31 using Brian's
> > github.  I didn't build fltk myself, I used the packaged versions.
> >
> > git clone https://github.com/bkw777/VirtualT.git
> > sudo dnf install fltk fltk-devel fltk-static fltk-fluid
> > libXinerama-devel libjpeg-devel
> > export FLTKDIR=/usr/lib64
> > make
> >
> > I haven't done any real testing but it launches and appears to work
> >
> > On Mon, Jan 6, 2020, at 10:17 PM, Brian K. White wrote:
> >> I was just now able to build the latest FLTK and VirtualT on linux with
> >> the following changes from the v1.7 sourceforge version:
> >>
> >>
> https://github.com/bkw777/VirtualT/commit/fe6df94725a5fcf1989964b22cb79848dc778a6d
> >>
> >> I don't know if every change is quite the most correct way to resolve
> >> the compiler warnings or errors, and I don't know if one or two changes
> >> don't also break compiling on Windows or Mac.
> >>
> >> But this commit link shows everything all together and it's not very
> >> much, and at least for me, it builds without even any compiler warnings
> >> let alone errors, and the resulting binary runs.
> >>
> >> I started with a clean copy of the src zip file from sourceforge, not a
> >> fork from one of the other copies of VirtualT already on github.
> >>
> >> For fltk I didn't I didn't have to change anything. I just cloned the
> >> current fltk repo from github (from the fltk web site) and followed the
> >> CMake directions for building on linux.
> >>
> >> --
> >> bkw
> >>
> >
>
>
> --
> bkw
>
-- 
Tom Wilson
[email protected]
(619)940-6311
K6ABZ

Reply via email to