On Sun, Sep 7, 2008 at 12:07 PM, Robert Arkiletian <[EMAIL PROTECTED]> wrote:
> On Sun, Sep 7, 2008 at 11:46 AM, imacarthur <[EMAIL PROTECTED]> wrote:
>> On 7 Sep 2008, at 19:27, Robert Arkiletian wrote:
>>
>>> New problem. (I feel like a newbie)
>>>
>>> #make install
>>>
>>> failed. Here is the end of the output.
>>>
>>> lcUniConv/cp1251.h:36: warning: 'cp1251_mbtowc' defined but not used
>>> Archiving ../lib/libfltk_xutf8.a...
>>> Installing libfltk_xutf8.a in /usr/local/lib...
>>> make[1]: execvp: /usr/local/lib: Permission denied
>>> make[1]: execvp: ../lib/libfltk_xutf8.a: Permission denied
>>> make[1]: *** [install] Error 127
>>> make: *** [install] Error 1
>>>
Seems like there are many problems. The makeinclude file in the top
level (which the Makefile in xutf8 includes is missing some variables)
I am using basically (copy of) Red Hat Enterprise Linux 5.2 (i386 arch)
===makeinclude=====
# programs we use...
HTMLDOC =
INSTALL = /usr/bin/install -c
LN = ln -s
NROFF = /usr/bin/nroff
RM = rm -f
RMDIR = rm -rf
SHELL = /bin/sh
STRIP = strip
#======== the 3 lines below were missing
CP = cp
MKDIR = mkdir
CHMOD = chmod
So the Makefile in dir xutf8 fails below since the above 3 lines are
not defined.
install: $(XUTF8)
echo "Installing libfltk_xutf8$(LIBEXT) in $(libdir)..."
echo $(CP)
echo $(RM)
echo $(MKDIR)
echo $(LN)
echo $(XDSONAME)
-$(MKDIR) $(libdir)
$(RM) $(libdir)/libfltk_xutf8$(LIBEXT)
$(CP) $(XUTF8) $(libdir)
$(RANLIB) $(libdir)/libfltk_xutf8$(LIBEXT)
if test x$(XDSONAME) = xlibfltk_xutf8.so.1.1; then\
#here an ^ error
$(RM) $(DESTDIR)$(libdir)/libfltk_xutf8.so*;\
$(CP) libfltk_xutf8.so.1.1 $(DESTDIR)$(libdir); \
$(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_xutf8.so.1.1; \
$(LN) libfltk_xutf8.so.1.1
$(DESTDIR)$(libdir)/libfltk_xutf8.so;\
fi
In addition there is no XDSONAME defined. Just DSONAME. I think the
"x" in front of the variable name on the if test line is also an
error. In any case, I tried to get things working but still failed. I
now cannot seem to get --enable-shared and
--enable-xdbe option to work with ./configure when building fltk.
Below is my complete configure line
./configure --enable-shared --enable-threads --enable-xdbe --enable-xft
Here is my attempted build at fl_teachertool
....
fl_teachertool.o:(.rodata._ZTV15ThumbMenuButton[vtable for
ThumbMenuButton]+0x14): undefined reference to
`Fl_Menu_Button::handle(int)'
fl_teachertool.o:(.rodata._ZTV15ThumbMenuButton[vtable for
ThumbMenuButton]+0x18): undefined reference to `Fl_Widget::resize(int,
int, int, int)'
fl_teachertool.o:(.rodata._ZTI15ThumbMenuButton[typeinfo for
ThumbMenuButton]+0x8): undefined reference to `typeinfo for
Fl_Menu_Button'
collect2: ld returned 1 exit status
make: *** [fl_teachertool] Error 1
Can anyone provide me a link to an article that describes how to port
1.x code to 2.0?
My entire code is under 3000 lines so I may consider trying 2.0.
Either that or I may wait a bit until 1.3 has it. Thanks Matt and Ian.
I assume many others will welcome UTF-8 in 1.3.
BTW I just want to say: FLTK support on this list is FANTASTIC!
--
Robert Arkiletian
Eric Hamber Secondary, Vancouver, Canada
Fl_TeacherTool http://www3.telus.net/public/robark/Fl_TeacherTool/
C++ GUI tutorial http://www3.telus.net/public/robark/
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk