Re: Past the autogen.sh, onto configure and make

Darren Vincent Hart <[email protected]> 01 Aug 2003 19:24:02 -0600
Newsgroups gmane.comp.embedded.stk.gui.devel
Message-ID <1059787442.949.40.camel@sway>
Mike,

If you do use those *.pc files I attached to the previous mail, be sure
to modify them to fit your install of the various libraries.

Darren

On Fri, 2003-08-01 at 18:59, Darren Vincent Hart wrote:
> Mike,
> 
> 0) Please do a 'cvs update', I have worked a lot on the configure script
> today (very recently).
> 
> 1) You won't be able to build without the freetype configuration. 
> pkg-config has a set of *.pc files in places like /usr/lib/pkgconfig. 
> You will need freetype2.pc in the PKG_CONFIG_PATH.  In case you don't
> have it for whatever reason, I have attached it.  (Note this file should
> come with freetype).  You should also have libpng.pc and directfb.pc
> (also attached) if you want libpng or directfb support.
> 
> 
> 2) You don't have libtool in the project directory.  Try runnin
> 'libtoolize -f' in the top level libstk directory.  I think this should
> be part of autogen.sh actually.
> 
> 
> 3) The backends are enabled with --enable-sdl, --enable-directfb, and
> --enable-fbdev.  Note that fbdev isn't working at the moment.  configure
> --help shows all the options (and there aren't that many).  I suggest
> running the following:
> 
> cvs udpate
> ./autogen.sh
> ./configure --enable-sdl --enable-logging --enable-tests
> make
> cd test
> test/test_app sdl
> 
> 
> 4) Remember to put a copy of a truetype font in /usr/share/libstk/fonts
> and call it Arial.ttf (so the test apps can run).
> 
> Let me know how that goes.
> 
> Darren
> 
> 
> On Fri, 2003-08-01 at 18:43, Mike Melanson wrote:
> > Hi,
> > 	Okay, SDL must register its macros with automake when SDL gets
> > installed. So I seem to be past the autogen.sh phase. ./configure is now
> > failing. Here are the final lines:
> > 
> > 
> > checking for pkg-config... /usr/local/bin/pkg-config
> > Package freetype2 was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `freetype2.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'freetype2' found
> > Package freetype2 was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `freetype2.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'freetype2' found
> >  *** Libpng Support enabled
> > configure: error: No Backend Selected
> > 
> > 
> > So it can't find freetype2 even though it is present. Then in complains
> > about no backend being specified. configure does not offer any apparent
> > way to specify a backend ("./configure --help | grep backend" turns up
> > nothing).
> > 
> > 	Digging through the configure[.in] script, I see that if I specify
> > './configure' with no parameters, it basically has no chance of succeeding
> > since all of the output targets are disabled by default and it needs a
> > target. So './configure --enable-sdl' gets me through the configuration.
> > 
> > 	Now for the make phase-- bombs out immediately:
> > 
> > [melanson@x-wing libstk]$ make
> > Making all in libstk
> > make[1]: Entering directory `/home/projects/libstk/libstk'
> > make  all-am
> > make[2]: Entering directory `/home/projects/libstk/libstk'
> > if /bin/sh ../libtool --mode=compile g++3.2 -DHAVE_CONFIG_H -I. -I. -I.
> > -I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT
> > -I/usr/local/include/libpng12   -I..     -g -O2 -MT application.lo -MD -MP
> > -MF ".deps/application.Tpo" \
> >   -c -o application.lo `test -f 'application.cpp' || echo
> > './'`application.cpp; \
> > then mv ".deps/application.Tpo" ".deps/application.Plo"; \
> > else rm -f ".deps/application.Tpo"; exit 1; \
> > fi
> > ../libtool: ../libtool: No such file or directory
> > make[2]: *** [application.lo] Error 1
> > make[2]: Leaving directory `/home/projects/libstk/libstk'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/home/projects/libstk/libstk'
> > make: *** [all-recursive] Error 1
> > 
> > 
> > --
> > 	-Mike Melanson
> > 
> > 
> > 
> > _______________________________________________
> > Libstk mailing list
> > [email protected]
> > http://www.dvhart.com/cgi-bin/mailman/listinfo/libstk