[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
$(FT2_LIBS) in missing in linling liboctinterp-3-3-50+.dll (was Re: link
From: |
Tatsuro MATSUOKA |
Subject: |
$(FT2_LIBS) in missing in linling liboctinterp-3-3-50+.dll (was Re: link errors in linking liboctinterp.dll : Freetype Problem) |
Date: |
Sat, 9 Jan 2010 19:39:41 +0900 (JST) |
Hello
--- Tatsuro MATSUOKA wrote:
> Hello
>
> I have reached to the stage of linking liboctinterp.dll.
>
> There occurred the following errors,
>
> .libs/liboctinterp_la-txt-eng-ft.o:txt-eng-ft.cc:(.text+0x168): undefined
> reference to
> `FT_Done_Face'
> .libs/liboctinterp_la-txt-eng-ft.o:txt-eng-ft.cc:(.text+0x346): undefined
> reference to
The above error seem to come from 'FT2_LIBS' flag was not reflected in
src/Makefile.
In configure results, I found
FT2_CFLAGS: -I/WinDevTools/bin/../include/freetype2
-I/WinDevTools/bin/../include
FT2_LIBS: -L/WinDevTools/bin/../lib -lfreetype
However libtool command for liboctinterp did not have -lfreetype
/bin/sh ../libtool --tag=CXX --mode=link g++ -shared-libgcc -O3
-fomit-frame-pointer
-DHAVE_CONFIG_H -mieee-fp -I/WinDevTools/bin/../include/freetype2
-I/WinDevTools/bin/../include
-IC:/Programs/WinDevTools/include -Wall -W -Wshadow -Wold-style-cast -Wformat
-O3
-fomit-frame-pointer -O3 -fomit-frame-pointer -release 3.3.50+ -no-undefined
-Lc:/Programs/OctaveBuild/lib -LC:/Programs/WinDevTools/lib
-Lc:/Programs/GnuWin32/lib
-Wl,--allow-multiple-definition -lsupc++ -o liboctinterp.la -rpath
c:/Programs/OctaveBuild/lib/octave-3.3.50+ liboctinterp_la-Cell.lo :
:
liboctinterp_la-Quad-opts.lo ../liboctave/liboctave.la
../libcruft/libcruft.la ../libgnu/libgnu.la
-lfftw3 -lfftw3f -lhdf5 -lz -LC:/Programs/WinDevTools/lib -lfontconfig
-lopengl32 -lglu32
-lreadline -ltermcap -Lc:/Programs/OctaveBuild/lib -lblas.dll -llapack.dll
-liberty -lm -lpthread
-lgdi32 -lws2_32 -luser32 -lkernel32 -Lc:/Programs/OctaveBuild/lib
-LC:/Programs/WinDevTools/lib
-Lc:/Programs/GnuWin32/lib -Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0
-Lc:/programs/mingw/bin/../lib/gcc
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/lib
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../.. -lsupc++ -lm
-lpthread -lgfortranbegin
-lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32
-ladvapi32 -lshell32 -liberty
-lm -lpthread -lgdi32 -lws2_32 -luser32 -lkernel32
I add manually '-lfreetype' to libtool command, I have gotten
liboctinterp-3-3-50+.dll
In src/Makefile.am in my source directory
OCTINTERP_LINK_DEPS = \
$(RLD_FLAG) \
../liboctave/liboctave.la \
../libcruft/libcruft.la \
../libgnu/libgnu.la \
$(FFTW_XLDFLAGS) $(FFTW_XLIBS) \
$(HDF5_LDFLAGS) $(HDF5_LIBS) $(Z_LDFLAGS) $(Z_LIBS) \
$(OPENGL_LIBS) $(X11_LIBS) $(CARBON_LIBS) \
$(READLINE_LIBS) $(TERM_LIBS) \
$(LIBGLOB) \
$(LAPACK_LIBS) $(BLAS_LIBS) \
$(LIBS) \
$(FLIBS)
The above lacks $(FT2_LIBS). Perhaps this is origin of the error.
Regards
Tatsuro
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/