Re: [code] How to build TextAdept for the Raspberry Pi on Debian

From: Ryan Pusztai <rpusztai.att.gmail.com>
Date: Fri, 7 Dec 2012 13:11:18 -0500

On Thu, Dec 6, 2012 at 9:55 PM, Mitchell <m.att.foicica.com> wrote:

> I have some sub repos in *src/* like gtdialog and Scintilla. I also put
> the Lua and LuaJIT releases in there. I have some rules in the Makefile
> that build the src release with the others. The "$(basedir).src" rule shows
> you what stuff I copy that's not in the textadept repo.

Is this set of source documented anywhere? Just wondering so is someone
else wanted to build it they could do it like you do?

 It won't build LuaJIT and gives this error:
>>
>>> make[1]: Entering directory `/home/pi/devel/hg/textadept/**src/luajit'
>>> ==== Building LuaJIT 2.0.0-beta11 ====
>>> make -C src
>>> cc1: error: unrecognized command line option -m32
>>> cc1: error: unrecognized command line option -m32
>>> cc1: error: unrecognized command line option -m32
>>> cc1: error: unrecognized command line option -m32
>>> cc1: error: unrecognized command line option -m32
>>> cc1: error: unrecognized command line option -m32
>>> make[2]: Entering directory `/home/pi/devel/hg/textadept/**
>>> src/luajit/src'
>>> Makefile:230: *** Unsupported target architecture. Stop.
>>> make[2]: Leaving directory `/home/pi/devel/hg/textadept/**
>>> src/luajit/src'
>>> make[1]: *** [default] Error 2
>>> make[1]: Leaving directory `/home/pi/devel/hg/textadept/**src/luajit'
>>> make: *** [libluajit32.a] Error
>>>
>>
>> Is there a way to build TextAdept without LuaJit? Just so I can continue
>> to
>> test?
>>
>
> In the 'all' target on line 177, just comment out or remove 'textadeptjit'.

I got TextAdept (ncurses only) build and running on the Raspberry Pi! It is
the Lua (not LuaJIT) only version.

Steps:
* Comment out the textadeptjit-ncurses chunk in the 'ncurses' target in the
Makefile.
     175 ncurses: textadept-ncurses #textadeptjit-ncurses
* Removed the not built targets except "../textadept-ncurses" from the
'install' target in the MakeFile.
     297 install: ../textadept-ncurses \

     298 | ../core ../doc ../init.lua ../lexers \

     299 ../LICENSE ../modules ../themes

It is kind of a hack, but it works!

--
Regards,
Ryan
-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 07 Dec 2012 - 13:11:18 EST

This archive was generated by hypermail 2.2.0 : Sat 08 Dec 2012 - 06:45:49 EST