On Feb 2, 2008, at 7:53 AM, Stefan Schimanski wrote:
Am 02.02.2008 um 04:19 schrieb Bennett Helm:
On Feb 1, 2008, at 12:03 PM, Stefan Schimanski wrote:
Hi!
I (mostly) rewrote my patch to support pasting of graphics from
the clipboard. In contrast to my old implementation it fits much
better into LyX's architecture and is much much cleaner.
I'm anxious to try this (Mac 10.4.11), but it won't compile for
me. Here's what I get:
Here is a patch to enable the Objective-C code for the autotools.
At least in automake 1.9 there is Objective-C support, but none for
Objective-C++. So I added a quick and dirty case for the .mm file.
Somebody with more automake knowledge could help here maybe.
Still not working for me with the updated pastegraphics.patch and
pastegraphics_autotools.patch.
Bennett
Making all in support
make all-am
gcc -DHAVE_CONFIG_H -I. -I../../src -I./.. -I../../boost -
DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I/
Users/bennett/lyx/qt-4.3-install/include -I/Users/bennett/lyx/qt-4.3-
install/include/QtCore -I./minizip -Wextra -Wall -I/System/
Library/Frameworks/CoreFoundation.framework/Headers -g -O2 -c
linkback/LinkBackProxy.mm
linkback/LinkBackProxy.mm: In function 'BOOL -[LyXLinkBackClient
edit:](LyXLinkBackClient*, objc_selector*, NSString*)':
linkback/LinkBackProxy.mm:97: warning: use '-fobjc-exceptions' to
enable Objective-C exception syntax
/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h:17:
warning: variable 'r' might be clobbered by 'longjmp' or 'vfork'
/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -Os -L/Users/
bennett/lyx/qt-4.3-install/lib -framework Carbon -framework OpenGL -
framework AGL -framework QuickTime -framework Cocoa -o
liblyxsupport.la FileMonitor.lo convert.lo debug.lo docstream.lo
docstring.lo environment.lo FileFilterList.lo FileName.lo
filetools.lo ForkedCalls.lo gettext.lo gzstream.lo kill.lo
lstrings.lo lyxtime.lo lyxsum.lo Messages.lo os.lo Path.lo Package.lo
socktools.lo Systemcall.lo SignalSlot.lo Timeout.lo userinfo.lo
unicode.lo liblyxsupport_la-ioapi.lo liblyxsupport_la-iowin32.lo
liblyxsupport_la-unzip.lo liblyxsupport_la-zip.lo zipunzip.lo
LinkBack.lo LinkBackServer.lo -lQtCore -lz -lm -liconv
LinkBackProxy.o
*** Warning: Linking the shared library liblyxsupport.la against the
non-libtool
*** objects LinkBackProxy.o is not portable!
rm -fr .libs/liblyxsupport.a .libs/liblyxsupport.la
ar cru .libs/liblyxsupport.a FileMonitor.o convert.o debug.o
docstream.o docstring.o environment.o FileFilterList.o FileName.o
filetools.o ForkedCalls.o gettext.o gzstream.o kill.o lstrings.o
lyxtime.o lyxsum.o Messages.o os.o Path.o Package.o socktools.o
Systemcall.o SignalSlot.o Timeout.o userinfo.o unicode.o
liblyxsupport_la-ioapi.o liblyxsupport_la-iowin32.o liblyxsupport_la-
unzip.o liblyxsupport_la-zip.o zipunzip.o LinkBack.o LinkBackServer.o
ranlib .libs/liblyxsupport.a
creating liblyxsupport.la
(cd .libs && rm -f liblyxsupport.la && ln -s ../liblyxsupport.la
liblyxsupport.la)
Making all in frontends
Making all in qt4
/Users/bennett/lyx/qt-4.3-install///bin/moc -o DockView_moc.cpp
DockView.h
DockView.h:0: Warning: No relevant classes found. No output generated.
/Users/bennett/lyx/qt-4.3-install///bin/moc -o GuiIdListModel_moc.cpp
GuiIdListModel.h
GuiIdListModel.h:0: Warning: No relevant classes found. No output
generated.
/Users/bennett/lyx/qt-4.3-install///bin/moc -o
LaTeXHighlighter_moc.cpp LaTeXHighlighter.h
LaTeXHighlighter.h:0: Warning: No relevant classes found. No output
generated.
make all-am
/Users/bennett/lyx/qt-4.3-install///bin/moc -o DockView_moc.cpp
DockView.h
DockView.h:0: Warning: No relevant classes found. No output generated.
/Users/bennett/lyx/qt-4.3-install///bin/moc -o GuiIdListModel_moc.cpp
GuiIdListModel.h
GuiIdListModel.h:0: Warning: No relevant classes found. No output
generated.
/Users/bennett/lyx/qt-4.3-install///bin/moc -o
LaTeXHighlighter_moc.cpp LaTeXHighlighter.h
LaTeXHighlighter.h:0: Warning: No relevant classes found. No output
generated.
Making all in .
make[4]: Nothing to be done for `all-am'.
Making all in .
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -Os -framework
Carbon -framework OpenGL -framework AGL -framework QuickTime -
framework Cocoa -o lyx main.o ISpell.o SpellBase.o Box.o
Dimension.o PrinterParams.o Thesaurus.o liblyxcore.la
liblyxmathed.la liblyxinsets.la frontends/liblyxfrontends.la
frontends/qt4/liblyxqt4.la liblyxgraphics.la support/
liblyxsupport.la ../boost/liblyxboost.la ../intl/libintl.a -liconv -
Wl,-framework -Wl,CoreFoundation -liconv -lz -framework
ApplicationServices -framework Carbon -framework AppKit -lQtGui -
lQtCore -lz -lm -liconv
g++ -g -Os -framework Carbon -framework OpenGL -framework AGL -
framework QuickTime -framework Cocoa -o lyx main.o ISpell.o
SpellBase.o Box.o Dimension.o PrinterParams.o Thesaurus.o -Wl,-
framework -Wl,CoreFoundation -framework ApplicationServices -
framework Carbon -framework AppKit -Wl,-bind_at_load ./.libs/
liblyxcore.a ./.libs/liblyxmathed.a ./.libs/liblyxinsets.a
frontends/.libs/liblyxfrontends.a frontends/qt4/.libs/liblyxqt4.a -L/
Users/bennett/lyx/qt-4.3-install/lib ./.libs/liblyxgraphics.a
support/.libs/liblyxsupport.a ../boost/.libs/liblyxboost.a ../intl/
libintl.a -lQtGui -lQtCore -lz -lm /usr/lib/libiconv.dylib
/usr/bin/ld: Undefined symbols:
lyx::support::editLinkBackFile(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)
lyx::support::getLinkBackData(__gnu_debug_def::vector<char,
std::allocator<char> >&)
lyx::support::closeAllLinkBackLinks()
lyx::support::isLinkBackDataInPasteboard()
collect2: ld returned 1 exit status
make[3]: *** [lyx] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1