Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Building Tk for Cygwin

37 views
Skip to first unread message

Arjen Markus

unread,
Jun 11, 2018, 4:05:02 PM6/11/18
to
I am encountering odd problems when I try to build Tk for Cygwin. For some reason the tclStubPtr is undefined (with a number of related messages) but I also see most of the object files in the win subdirectory, while I definitely build from the unix subdirectory.

I used the following command to configure the build:

./configure --with-tcl=/usr/lib

so pretty basic.

What should I instead?

Regards,

Arjen

Ralf Fassel

unread,
Jun 12, 2018, 5:05:59 AM6/12/18
to
* Arjen Markus <arjen.m...@gmail.com>
I'm using Msys and the Visual Studio compiler, but I would expect the
same to work in cygwin/gcc:

I start in the 'win' subdirectory, calling ./configure from there.
My own Makefile-windows (not the one in tk subdirectory) has:

tk: tcl
cd $(TKDIR)/win \
&& sh ./configure $(THREADS) $(DEBUG) $(PREFIX) \
&& make \
&& make install-binaries install-libraries install-private-headers

with
TKDIR = tk source tree top directory
THREADS = -disable-threads (don't ask)
DEBUG = -disable-symbols
PREFIX = .../installation-path

Works for tcl 8.5.19 and 8.6.8.

Maybe worth a try to start in 'win' instead of 'unix'.

HTH
R'

Arjen Markus

unread,
Jun 12, 2018, 5:29:21 AM6/12/18
to
On Tuesday, June 12, 2018 at 11:05:59 AM UTC+2, Ralf Fassel wrote:
> * Arjen Markus
The reason I am trying to do this is that Cygwin acts as a UNIX/Linux system - so the mousewheel events are reported as button presses 4 and 5 (using the X Server that comes with Cygwin). TIP 474 suggests to map these events to mousewheel events as under Windows and OSX. And that is what I am trying to achieve ;).

The build scripts seem to be less clear about what Cygwin actually is in terms of build environment.

Regards,

Arjen

Harald Oehlmann

unread,
Jun 12, 2018, 6:00:10 AM6/12/18
to
Am 12.06.2018 um 11:29 schrieb Arjen Markus:
> The reason I am trying to do this is that Cygwin acts as a UNIX/Linux system - so the mousewheel events are reported as button presses 4 and 5 (using the X Server that comes with Cygwin). TIP 474 suggests to map these events to mousewheel events as under Windows and OSX. And that is what I am trying to achieve ;).
>
> The build scripts seem to be less clear about what Cygwin actually is in terms of build environment.
>
> Regards,
>
> Arjen
>

Jan Nijtmans has made a speech about cygwin builds on Windows:

http://www.eurotcl.eu/presentations/EuroTcl2012-Nijtmans-Cygwin.pdf

I just find it confusing. But since that, I know to test for windows is:
file libext eq ".dll"...

Hope this helps,
Harald

Arjen Markus

unread,
Jun 12, 2018, 6:36:52 AM6/12/18
to
Ah, thanks - building Tcl on Cygwin is not a problem, but with Tk I ran into the problems I reported.

BTW, I discovered I can also use another platform to test my changes, so the need to build on Cygwin is less pressing.

Regards,

Arjen
0 new messages