Re: [textadept] Compiler for windows

From: mitchell <c....at.caladbolg.net>
Date: Mon, 15 Aug 2011 18:42:20 -0400 (EDT)

Robert,

On Fri, 12 Aug 2011, Robert wrote:

> Hi Patrick,
>
> On Fri, Aug 12, 2011 at 4:50 AM, Patrick McMorris <patr....at.sixpack.ca> 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
> http://www.gtk.org/download/win32.php 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.)
>
> Mitchell,
> the link in the manual seems to be gone and now to be the one above.
> 12_Compiling.md
> l.23
> - not) and the [GTK+ for Windows
> bundle](http://www.gtk.org/download-windows.html)
> + not) and the [GTK+ for Windows bundle](http://www.gtk.org/download/win32.php)
>
> Is 2.16 recommended still necessary? I used 2.22.

Thanks, I updated the links in hg and 2.22 is recommended now.

>
>> 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
>> http://www.archlinux.org/packages/community/i686/mingw32-gcc/files/ 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
> i586-mingw32msvc
>
> There were two options I removed in the makefile:
>
> l.25
> - CPP = i586-mingw32msvc-g++ -mms-bitfields -mwindows -static-libgcc
> -static-libstdc++
> + CPP = i586-mingw32msvc-g++ -mms-bitfields -mwindows -static-libgcc
>
> l.130
> - $(CPP) $(EXPORTLUASYMS) -o $@ $^ $(GTKLIBS) -ldl
> + $(CPP) $(EXPORTLUASYMS) -o $@ $^ $(GTKLIBS)

This was a bug: -ldl is now a Linux only option in the Makefile in hg.

Thanks,
mitchell

>
> 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,
> Robert
>
>> 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
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
>
>

mitchell
Received on Mon 15 Aug 2011 - 18:42:20 EDT

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