Re: [textadept] Compiler for windows

From: Robert <>
Date: Fri, 12 Aug 2011 10:13:42 +0200

Hi Patrick,

On Fri, Aug 12, 2011 at 4:50 AM, Patrick McMorris <> wrote:
> Well, I can't really find any clear walkthroughs on how to set up the dev
> environment and build on windows.  I've tried to fumble through installing
> the gtk+ 2.22 dev bundle.  But I must have missed something as I keep
> getting build errors.  Do you build from in the texadept_X/src folder?  Even
> doing a make clean gives me an error:
> $ make clean
> rm ../textadept *.o
> rm: cannot lstat `../textadept': No such file or directory

I think this error always shows when there is nothing to delete.
The cross-compiling process can be hard... I tried a while ago and
didn't manage it.
I re-tried now with a fresh Ubuntu Lucid (10.04) Virtual Machine and
it worked :-)

Necessary packages:
sudo apt-get install build-essential libgtk2.0-dev gcc-mingw32

And the full package from into src/win32gtk
(I recommend the full package, trying to get the packages individually
might have
caused many of the problems I had the last time I tried.)

the link in the manual seems to be gone and now to be the one above.
- not) and the [GTK+ for Windows
+ not) and the [GTK+ for Windows bundle](

Is 2.16 recommended still necessary? I used 2.22.

> Also using make WIN32=1 was still looking for i486-mingw32-gcc which I don't
> have for some reason.   I've installed the mingw32-gcc package, updated and
> upgraded but I still don't get that binary.  Looking at the file list here
> I can
> see the file in a newer version of the package.  But I guess my repositories
> only have up to 4.5.2-1.  I tried just changing it to gcc in the make file
> but that didn't get me much further.

I don't know about Arch Linux, on Debian/Ubuntu the packages prefix is

There were two options I removed in the makefile:

- CPP = i586-mingw32msvc-g++ -mms-bitfields -mwindows -static-libgcc
+ CPP = i586-mingw32msvc-g++ -mms-bitfields -mwindows -static-libgcc

- $(CPP) $(EXPORTLUASYMS) -o $@ $^ $(GTKLIBS) -ldl

To run the final textadept.exe it is necessary to copy the dll-files and
etc, lib and share directories to the textadept directory as in the
packaged version.

Hope this helps,

> Anyway, it would be good to have some updated instructions for setting up a
> dev environment and building the package.  Also, if you have all the symbol
> files for the 4.0 beta 1 package then I'd rather use those.  There are no
> guarantees that the version I build myself will fail the same way.
> Patrick
Received on Fri 12 Aug 2011 - 04:13:42 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:19:06 EST