imlib: jpeg library not found

214 views
Skip to first unread message

Ivan

unread,
Aug 5, 2010, 9:57:07 AM8/5/10
to minix3
Hi,

i'm trying to compile scrot in minix (just for do some screenshots :D)
And it asks for some dependencies, one of them (imlib) doesn't
finish ./configure script, the error returned is:

checking for jpeg_destroy_decompress in -ljpeg... no
configure: error: *** JPEG library not found ***

i googled it, and appears that jpeglib is needed. I tried to download
that library and install it (without problem) but the configure script
still had the same error.

Then i tried to install that library into /usr/X11R6/lib, but nothing
changed.

Finally i tried to install jpeg-6b from packman, but still have the
same result.

Do you have any idea on how to resolve that?

The config.log message is:
configure:23319: checking for jpeg_destroy_decompress in -ljpeg
configure:23349: gcc -o conftest -g -O2 -I/usr/X11R6/include -I$
{prefix}/inclu
de -INONE/include conftest.c -ljpeg -L/usr/X11R6/lib -lX11 -lm >&5
/usr/X11R6/lib/libX11.a: file not recognized: File format not
recognized
collect2: ld returned 1 exit status
configure:23355: $? = 1
configure: failed program was:
| /* confdefs.h. */
...
configure:23380: result: no
configure:23386: error: *** JPEG library not found ***

Thanks,
Ivan

pikpik

unread,
Aug 6, 2010, 5:16:11 PM8/6/10
to minix3
Hi,

On Aug 5, 9:57 am, Ivan <ivan.gualan...@gmail.com> wrote:
> Hi,
>
> i'm trying to compile scrot in minix (just for do some screenshots :D)
> And it asks for some dependencies, one of them (imlib) doesn't
> finish ./configure script, the error returned is:
>
> checking for jpeg_destroy_decompress in -ljpeg... no
> configure: error: *** JPEG library not found ***


Here's what I could figure out about the dependencies:
- "scrot" needs "imlib2" and maybe something else?
- "imlib2" needs "X11" (works) and might need to be ported to MINIX 3

imlib2: http://docs.enlightenment.org/api/imlib2/html/


Another possible solution could be to install ImageMagick and use the
"import" command:

import -window root screenshot.png


Or for a timed screenshot:

sleep 3s; import -window root screenshot.png


Source: http://www.linux-noob.com/forums/index.php?/topic/339-how-to-take-a-screenshot-in-linux/
About "import": http://linux.about.com/library/cmd/blcmdl1_import.htm


After testing on MINIX 3.1.7, I really recommend using the "import"
method of taking screen-shots.

I hope this is helpful,
pikpik

Ivan Gualandri

unread,
Aug 6, 2010, 5:51:05 PM8/6/10
to min...@googlegroups.com
Yes,
your infos are helpful (now i can do some screenshot :D)

But i want to try to port imlib and scrot to minix.
I know that imlib2 was a dependency, and one of the requirements of imlib is that jpeg-library
after a search on google that library seems to be libjpeg.

Now i installed libjpeg from sources (jpegsrc....) but without success.
After i tried the libjpeg available in minix but imlib still doesn't want to see that library.

Maybe is the wrong library?
There's a way that i can tell the configure script were to find that library?

Thanks,
 Ivan


--
You received this message because you are subscribed to the Google Groups "minix3" group.
To post to this group, send email to min...@googlegroups.com.
To unsubscribe from this group, send email to minix3+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/minix3?hl=en.




--
"elen sila lumenn omentielvo"

pikpik

unread,
Aug 7, 2010, 1:18:42 AM8/7/10
to minix3
Hi,

On Aug 6, 5:51 pm, Ivan Gualandri <ivan.gualan...@gmail.com> wrote:
> Yes,
> your infos are helpful (now i can do some screenshot :D)


Awesome! :D Also, the ImageMagick program "display" can be used to
view images on MINIX (with X11 running):

display screenshot.png

For more information about ImageMagick: http://www.imagemagick.org/script/command-line-tools.php


> But i want to try to port imlib and scrot to minix.
> I know that imlib2 was a dependency, and one of the requirements of imlib is
> that jpeg-library
> after a search on google that library seems to be libjpeg.
>
> Now i installed libjpeg from sources (jpegsrc....) but without success.
> After i tried the libjpeg available in minix but imlib still doesn't want to
> see that library.
>
> Maybe is the wrong library?
> There's a way that i can tell the configure script were to find that
> library?

Without seeing the configure script and scrot's code, I'm not exactly
sure what is needed.

I did find a listing of imlib2's dependencies, however:
http://www.linuxfromscratch.org/blfs/view/6.3/general/imlib2.html

It looks like it needs:

FreeType-2.3.7 (not sure whether it's ported)
libpng-1.2.29 (1.2.8 is in packman, I don't know which version is
newer)
libjpeg-6b (as you had guessed; in packman)

FreeType might not be ported completely or at all. However, there is
some kind of package for it on: http://www.marcoslot.net/minix.htm
I have no clue if it works correctly.

It looks like FreeType might not require very much though:
http://freetype.sourceforge.net/freetype2/index.html#requirements

I'm glad at least something works for screen-shots.
pikpik

Ivan

unread,
Aug 8, 2010, 6:33:31 PM8/8/10
to minix3
Thank you pikpik
for your informations :)

Now i did a little step forward.

libtiff was marked as optional, but configure fail if i don't install
it (also if i disable that feature with --without-tiff)
i installed libgif a and libpng.
And now, configure says me that libpng is not installed.

The file png.h is in /usr/local/include:

# find / -name png.h
/usr/local/include/png.h
#

checking for png_read_info in -lpng... no
configure: error: *** PNG library not found ***

There is another library for png?

I tried to reinstall it from sources, but it asks zlib as dependency,
i installed it from packman, but without success (libpng doesn't find
that library)

then i tried to install zlib by hand, and the result is (when i laun
make install):

ast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
cp libz.a /usr/local/lib
cp /usr/local/lib
cp: missing destination file
Try `cp --help' for more information.
*** Error code 1

Stop.
make: stopped in /home/silas/tmp/imlib-1.9.15/zlib-1.2.5

Any idea? :)
Mine are finished! :D

Bye,
Ivan

After i compiled libtiff, i needed to do some modification to

pikpik

unread,
Aug 9, 2010, 9:30:30 AM8/9/10
to minix3
Hi,

On Aug 8, 6:33 pm, Ivan <ivan.gualan...@gmail.com> wrote:
> Thank you pikpik
> for your informations :)
>
> Now i did a little step forward.
>
> libtiff was marked as optional, but configure fail if i don't install
> it (also if i disable that feature with --without-tiff)
> i installed libgif a and libpng.
> And now, configure says me that libpng is not installed.
>
> The file png.h is in /usr/local/include:
>
> # find / -name png.h
> /usr/local/include/png.h
> #
>
> checking for png_read_info in -lpng... no
> configure: error: *** PNG library not found ***
>
> There is another library for png?

There isn't another PNG library that I know of, but perhaps some of
the work involved in this older one could be applied to a newer
version. (I'm not sure of the work involved.)

You could try looking in the configure script to see where it thinks
libpng should be found. Perhaps it's assuming that libpng is in a
different place?

> I tried to reinstall it from sources, but it asks zlib as dependency,
> i installed it from packman, but without success (libpng doesn't find
> that library)

I'm not sure, but I think a recent version of zlib would need to be
ported.

> then i tried to install zlib by hand, and the result is (when i laun
> make install):
>
> ast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
> cp libz.a /usr/local/lib
> cp  /usr/local/lib

For this "cp /usr/local/lib" you could look in the configure script
(or Makefile) to see what's missing on that line.
Perhaps there's a shell variable that has an empty value: "cp $
{source} /usr/local/lib" or "cp /usr/local/lib ${destination}"

> cp: missing destination file
> Try `cp --help' for more information.
> *** Error code 1
>
> Stop.
> make: stopped in /home/silas/tmp/imlib-1.9.15/zlib-1.2.5

Based on what I read at: http://wiki.minix3.org/en/SummerOfCode2010/PkgSrc
(That page mentions that zlib might compile "cleanly" using pkgsrc.)

...perhaps you could try using MINIX 3.1.8 and installing pkgsrc (it
gives access to a lot of NetBSD packages; a few work, a lot don't):
http://wiki.minix3.org/en/DevelopersGuide/TestingPkgsrc

The downside to that is that I'm not sure of your goals, and because
it is relatively time-consuming to get pkgsrc working.

For instance, you may wish to stay in a stable version of MINIX (e.g.
3.1.6 or 3.1.7). But like I said, I don't know your goals or time
limitations. :)


> Any idea? :)
> Mine are finished! :D
>
> Bye,
> Ivan
>
> After i compiled libtiff, i needed to do some modification to

Does this mean you got libtiff working? :)

pikpik

Ivan

unread,
Aug 11, 2010, 6:41:54 PM8/11/10
to minix3
Hi,

On 9 Ago, 15:30, pikpik <pikpik.1...@gmail.com> wrote:
> Hi,
>
> On Aug 8, 6:33 pm, Ivan <ivan.gualan...@gmail.com> wrote:

> > Thank you pikpik
> > for your informations :)
>
> > Now i did a little step forward.
>
> > libtiff was marked as optional, but configure fail if i don't install
> > it (also if i disable that feature with --without-tiff)
> > i installed libgif a and libpng.
> > And now, configure says me that libpng is not installed.
>
> > The file png.h is in /usr/local/include:
>
> > # find / -name png.h
> > /usr/local/include/png.h
> > #
>
> > checking for png_read_info in -lpng... no
> > configure: error: *** PNG library not found ***
>
> > There is another library for png?
>
> There isn't another PNG library that I know of, but perhaps some of
> the work involved in this older one could be applied to a newer
> version. (I'm not sure of the work involved.)
>
> You could try looking in the configure script to see where it thinks
> libpng should be found. Perhaps it's assuming that libpng is in a
> different place?
>

I reinstalled minix, this time on real hardware, version 3.1.8
And now configure script finish without problem.
But now i have another problem:

In file included from colormod.h:12,
from api.c:12:
image.h:11:20: error: dlfcn.h: No such file or directory
image.h:16:4: warning: #warning "your crap box doesnt define
RTLD_LOCAL !?"
*** Error code 1

That library seems to be missing. You know if in newer versions of
kernel is implementend?
Or, u think to port them from another OS, or rewrite them is a heavy
task?
Actually my goals is to know a little bit better that OS. Try to port
some software, and study minix source code, and if i can in the future
submit some little patches :) (also if i have free time :) )


> > Any idea? :)
> > Mine are finished! :D
>
> > Bye,
> > Ivan
>
> > After i compiled libtiff, i needed to do some modification to
>
> Does this mean you got libtiff working? :)
>
Ok, i forgot to finish (or delete) that line. :) But yes, libtiff now
works for me.

Also i noticed a strange behaviour of many configure scripts. In fact
if i install a required library from packman, the configure scrip
doesn't find that library.
But if i install the same library from sources (if there aren't other
compilation problems) the configure script see that as installed and
pass to the next step.

Any idea why? Probably some missing paths?
> pikpik
bye,
Ivan

Antoine LECA

unread,
Aug 12, 2010, 4:00:11 AM8/12/10
to min...@googlegroups.com
Ivan wrote:
> In file included from colormod.h:12,
> from api.c:12:
> image.h:11:20: error: dlfcn.h: No such file or directory
> image.h:16:4: warning: #warning "your crap box doesnt define
> RTLD_LOCAL !?"

What a nice style...


> That library seems to be missing. You know if in newer versions of
> kernel is implementend?

No it is not. The "library" is in fact a feature, namely dynamic loading
(hence the "dl...", and also RTLD which really means Run Time LoaDer)
which is missing from Minix. This is also known as "shared libraries".


> Or, u think to port them from another OS, or rewrite them is a heavy
> task?

Your toss. I feel many people have already given a try (myself included)
but it certainly is not a light task.

Also keep in mind that Minix is currently missing both page swapping,
demand-loading, and memory mapping.


Antoine

Reply all
Reply to author
Forward
0 new messages