Re: gtk+-2.0 installation error due to jasper



On Sun, Aug 30, 2009 at 8:00 AM, Peng Yu<pengyu ut gmail com> wrote:
> Hi,
>
> I have the following error messages. Can somebody let know how to fix it?
>
> --------------------------------------------------------------------
>
> I installed jasper-1.900.1 by the following commands. I get the .a
> file but not the .so file.
> ./configure --prefix=mydir
> make
> make install
>
> If I run the following command in the directory gtk+-2.14.7
> ./configure --prefix=mydir
>
> I then run 'make'. I get the following error:
> mydir/lib/libjasper.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
>
> Alternatively, if I run the following command in the directory gtk+-2.14.7
> ./configure --prefix=mydir --without-libjasper
>
> I then run 'make'. I get the following error
> libtool: link: `gtktearoffmenuitem.lo' is not a valid libtool object
> make[4]: *** [libgtk-x11-2.0.la] Error 1

I just what to share with others how I solved the problem. The error
was because by default there is only static library compiled in jasper
by default.

There might be two solutions. I have tried the first one, when I
install gtk+-2.14.7. In this case, jasper can be installed using the
default option.

export CFLAGS="-fPIC"
./configure --prefix=somedir
make
make install
unset CFLAGS

I haven't tired the second solution. But I think that it should OK,
but I am not sure.

Compile jasper with the following option in configure, then you will
get a share library. The default installation command for gtk+2.14.7
should work.

#for jasper instalation
./configure --prefix=mydir --enable-shared

Regards,
Peng


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