static build



Hello-

I am trying to build gtk+ as a static library.  I am running RedHat
7.2 with gcc 2.95.3 on a Pentium 4.  Pango, atk, and glib
all built fine like so:

~> configure --prefix=/scratch/cforlibs/$CURGCC --disable-shared --enable-static
~> make && make install

Then i tried to do the same with gtk+.  That failed and I submitted it
as a bug (http://bugzilla.gnome.org/show_bug.cgi?id=104674), however,
it apparently is not a bug and I am now contacting this list.  To
solve the first problem, I had to add --with-included-loaders and
compile a static lib of libpng.  Now what i have is as follows:

/configure \
    --prefix=/scratch/cforlibs/$CURGCC \
    --enable-static \
    --disable-shared \
    --disable-modules \
    --with-included-loaders=png

However, make fails with this error (repeated for each im module):

<--- SNIP --->

Cannot load module
/afs/cs.wisc.edu/p/cfor/packages/gtk+-2.2.0/modules/input/im-xim.la:
/afs/cs.wisc.edu/p/cfor/packages/gtk+-2.2.0/modules/input/.libs/:
cannot read file data: Is a directory
/afs/cs.wisc.edu/p/cfor/packages/gtk+-2.2.0/modules/input/im-xim.la
does not export GTK+ IM module API:
/afs/cs.wisc.edu/p/cfor/packages/gtk+-2.2.0/modules/input/.libs/:
cannot read file data: Is a directory
make[3]: *** [gtk.immodules] Error 1
make[3]: Leaving directory
`/afs/cs.wisc.edu/p/cfor/packages/gtk+-2.2.0/modules/input'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/afs/cs.wisc.edu/p/cfor/packages/gtk+-2.2.0/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/afs/cs.wisc.edu/p/cfor/packages/gtk+-2.2.0'
make: *** [all-recursive-am] Error 2

<--- SNIP --->

The entire make output can be found at :

http://www.cs.wisc.edu/~kidd/gtk+-make-im.txt

I have checked the symlinks and permissions and they all seem fine.
Any help would be greatly appreciated.

Thanks,
-nick



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]