Re: [code] [textadept] Building on Ubuntu 13.04

From: Mitchell <m.att.foicica.com>
Date: Mon, 29 Apr 2013 12:25:17 -0400 (EDT)

Robert,

On Mon, 29 Apr 2013, Robert wrote:

> Hi,
>
> I tried compiling Textadept on Ubuntu 13.04. I had to add
>
> --- a/src/Makefile Fri Apr 26 14:48:54 2013 -0400
> +++ b/src/Makefile Mon Apr 29 17:47:14 2013 +0200
> @@ -74,7 +74,7 @@
> LUAFLAGS = -DLUA_USE_LINUX
> LDFLAGS = -rdynamic -Wl,--retain-symbols-file -Wl,lua.sym
> ifeq (Linux, $(kernel))
> - LDFLAGS += -ldl
> + LDFLAGS += -ldl -lgmodule-2.0
> MAKE = make
> else
> ifeq (curses, $(findstring curses, $(MAKECMDGOALS)))
>
> Otherwise I got this error:
> /usr/bin/ld: PlatGTK.o: undefined reference to symbol 'g_module_symbol'
> /usr/bin/ld: note: 'g_module_symbol' is defined in DSO
> /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 so try adding it to the
> linker command line
> /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0: could not read symbols:
> Invalid operation
> collect2: error: ld returned 1 exit status
>
> There quite a few threads online with similar problems (which is how I
> figured this out) - maybe this could be included in the Makefile?

Yes, I will add this.

> My only remaining problem is building the Curses version from Hg
> (using Chris' script). Do I need to update something else? In
> Scintilla, CDK oder Termkey (these were copied from the 6.5 sources)?
>
> g++ -c -pedantic -Os -DCURSES -DSCI_LEXER -DNDEBUG
> -DG_THREADS_IMPL_NONE -Iscintilla/include -Iscintilla/src
> -Iscintilla/lexlib -Wall -Wno-missing-braces -Wno-char-subscripts
> -Wno-long-long scintilla/src/AutoComplete.cxx
> [snip]
> In file included from scintilla/src/ExternalLexer.cxx:24:0:
> scintilla/src/ExternalLexer.h:21:30: error: expected ) before * token

You need scintilla hg which checks for CURSES instead of NCURSES.

Cheers,
Mitchell

-- 
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 Mon 29 Apr 2013 - 12:25:17 EDT

This archive was generated by hypermail 2.2.0 : Tue 30 Apr 2013 - 06:34:35 EDT