[Gambas-devel] Yet more Cygwin[RESEND]

Brandon Bergren bdragon at ...185...
Fri Nov 26 03:19:19 CET 2004


Didn't seem to go through -- resending
--Brandon

===================
Info files generated:
gb.compress
gb.db
gb.debug
gb.eval
gb <-- Doesn't crash gbi now! :)
gb.net <-- Functionally broken; I had to comment out some stuff. Cygwin lacks a
couple of reentrant functions, have to look into more later.
gb.vb

Currently broken:
gb.qt <-- link issues. It might be my fault, I was using a binary release, and
the problems I'm getting look ABI related. I'm going to compile QT from scratch
tonight and see if that fixes it.
gb.sdl <-- I have it disabled while I do other things.

To fix the crash I was having with gbi, I had to upgrade libltdl, make
distclean, and reconfigure.

Also, I still have to manually #define USE_LTDL 1 in config.h.

The newest stable, Libtool 1.5.10, works great in cygwin.  I manually copied
/usr/local/share/libtool/libltdl into place, but normally you upgrade with
'libtoolize --ltdl', right?  The version in the gambas tree has a copyright
date of 2000 (!)

Libtool can be had at:
http://www.gnu.org/software/libtool/libtool.html

After upgrading libltdl, I had to comment out the two 'lt_dlopen_flag =' lines
in the code.
I think those aren't required anymore, and it doesn't appear to exist in ltdl.h
anymore.

After that, make completed fine, and make install completed fine (Except that
the development environment and all the example programs don't work because
gb.qt is missing.)

The runtime works great! I tested against gb.vb.

Here's a 'screenshot'

---------

sf_bbergren at ...187... ~/build/gambas-0.99.RC3/examples/Basic/testing
$ cat win1.class
STATIC PUBLIC SUB Main()

DIM Nfoo AS INTEGER

FOR Nfoo = 1 TO 5
PRINT VB.Left("Helloi",Nfoo)
NEXT

END


sf_bbergren at ...187... ~/build/gambas-0.99.RC3/examples/Basic/testing
$ gbc
OK

sf_bbergren at ...187... ~/build/gambas-0.99.RC3/examples/Basic/testing
$ gbx
H
He
Hel
Hell
Hello

sf_bbergren at ...187... ~/build/gambas-0.99.RC3/examples/Basic/testing
$
-----------

It's simple, but it works! I used lib gb.vb with it, no runtime problems or
anything :)

If recompiling QT fixes gb.qt, we're almost there! :)
--Brandon




More information about the Devel mailing list