Neil Williams wrote:
Hi All
I am currently working towards a native OSX port of SciTE.
My road map towards an alpha is:
1) Build baseline with Fink (done).
2) Build baseline with gtk+osx
3) Build with Cocoa framework
WRT to step 2, I can compile both scintilla and SciTE but can't link.
The terminal output is:
$ make GTK1=1
g++ `glib-config --libs gthread` -DGTK SciTEGTK.o SciTEBase.o
SciTEBuffers.o SciTEIO.o Exporters.o MultiplexExtension.o
DirectorExtension.o SciTEProps.o Utf8_16.o
../../scintilla/bin/scintilla.a LuaExtension.o IFaceTable.o lapi.o
lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o
lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o
lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o
ltablib.o lstrlib.o loadlib.o -o ../bin/SciTE `gtk-config --libs`
ld: warning suggest use of -bind_at_load, as lazy binding may result in
errors or different symbols being used
symbol _fnmatch used from dynamic library
/Library/Frameworks/GTK.framework/GTK(single module) not from earlier
dynamic library /usr/lib/libSystem.B.dylib(fnmatch.So)
ld: Undefined symbols:
_gdk_ic_attr_destroy
_gdk_ic_attr_new
_libiconv
_libiconv_close
_libiconv_open
make: *** [../bin/SciTE] Error 1
Any hints, tips or words of encouragement would be much appreciated.
Watch this space for more news over the next couple of weeks.
Thanks to the help from Neil Hodgson and Krzysztof
Kowalczyk I have been able to build SciTE against
GTK+OSX.
The solution to date is to
1) comment out the calls to gdk_ic_attr_destroy()
and gdk_ic_attr_new() in ScintillaGTK.cxx
2) Patch the gtk-config script that comes with
gtk+osx so that gtk-config --libs contains -liconv
I now have major runtime problems. It will be fun
to figure out why the program won't start.
atb
Neil Williams
Inverkeithing
Scotland
KY11 1HQ
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest