[code] [textadept] Building on Ubuntu 13.04

From: Robert <rob.g.att.web.de>
Date: Mon, 29 Apr 2013 18:01:19 +0200


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 @@
     LDFLAGS = -rdynamic -Wl,--retain-symbols-file -Wl,lua.sym
     ifeq (Linux, $(kernel))
- LDFLAGS += -ldl
+ LDFLAGS += -ldl -lgmodule-2.0
       MAKE = make
       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?

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
scintilla/src/CallTip.cxx scintilla/src/Catalogue.cxx
scintilla/src/CellBuffer.cxx scintilla/src/CharClassify.cxx
scintilla/src/ContractionState.cxx scintilla/src/Decoration.cxx
scintilla/src/Document.cxx scintilla/src/Editor.cxx
scintilla/src/ExternalLexer.cxx scintilla/src/Indicator.cxx
scintilla/src/KeyMap.cxx scintilla/src/LineMarker.cxx
scintilla/src/PerLine.cxx scintilla/src/PositionCache.cxx
scintilla/src/RESearch.cxx scintilla/src/RunStyles.cxx
scintilla/src/ScintillaBase.cxx scintilla/src/Selection.cxx
scintilla/src/Style.cxx scintilla/src/UniConversion.cxx
scintilla/src/ViewStyle.cxx scintilla/src/XPM.cxx
scintilla/lexlib/Accessor.cxx scintilla/lexlib/CharacterSet.cxx
scintilla/lexlib/LexerBase.cxx scintilla/lexlib/LexerModule.cxx
scintilla/lexlib/LexerSimple.cxx scintilla/lexlib/PropSetSimple.cxx
scintilla/lexlib/StyleContext.cxx scintilla/lexlib/WordList.cxx
In file included from scintilla/src/ExternalLexer.cxx:24:0:
scintilla/src/ExternalLexer.h:21:30: error: expected ‘)’ before ‘*’ token
scintilla/src/ExternalLexer.h:21:30: error: expected initializer
before ‘*’ token
scintilla/src/ExternalLexer.h:22:29: error: expected ‘)’ before ‘*’ token
scintilla/src/ExternalLexer.h:23:30: error: expected ‘)’ before ‘*’ token
scintilla/src/ExternalLexer.h:24:45: error: expected ‘)’ before ‘*’ token
scintilla/src/ExternalLexer.h:29:2: error: ‘GetLexerFactoryFunction’
does not name a type
scintilla/src/ExternalLexer.h:40:27: error: ‘GetLexerFactoryFunction’
has not been declared
scintilla/src/ExternalLexer.h: In constructor
‘ExternalLexerModule::ExternalLexerModule(int, LexerFunction, const
char*, LexerFunction)’:
scintilla/src/ExternalLexer.h:35:3: error: class ‘ExternalLexerModule’
does not have any field named ‘fneFactory’
scintilla/src/ExternalLexer.cxx: At global scope:
scintilla/src/ExternalLexer.cxx:38:39: error: variable or field
‘SetExternal’ declared void
scintilla/src/ExternalLexer.cxx:38:39: error:
‘GetLexerFactoryFunction’ was not declared in this scope
scintilla/src/ExternalLexer.cxx:38:73: error: expected
primary-expression before ‘int’
scintilla/src/ExternalLexer.cxx: In constructor
‘LexerLibrary::LexerLibrary(const char*)’:
scintilla/src/ExternalLexer.cxx:59:3: error: ‘GetLexerCountFn’ was not
declared in this scope
scintilla/src/ExternalLexer.cxx:59:19: error: expected ‘;’ before
scintilla/src/ExternalLexer.cxx:61:7: error: ‘GetLexerCount’ was not
declared in this scope
scintilla/src/ExternalLexer.cxx:66:4: error: ‘GetLexerNameFn’ was not
declared in this scope
scintilla/src/ExternalLexer.cxx:66:19: error: expected ‘;’ before ‘GetLexerName’
scintilla/src/ExternalLexer.cxx:67:4: error: ‘GetLexerFactoryFunction’
was not declared in this scope
scintilla/src/ExternalLexer.cxx:67:28: error: expected ‘;’ before ‘fnFactory’
scintilla/src/ExternalLexer.cxx:76:33: error: ‘GetLexerName’ was not
declared in this scope
scintilla/src/ExternalLexer.cxx:94:22: error: ‘fnFactory’ was not
declared in this scope
make: *** [ExternalLexer.o] Error 1


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:01:19 EDT

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