Web lists-archives.com

Re: [Mingw-users] MSYS on Windows - Setting Directories?

Thanks Eli.  You were right about libjpeg.  I upgraded to 9b and all was solved.

I still have a question though.   Let's say that I build zlib at c:/zlib:
./congigure --prefix=c:/my_directory
make install

Then I switch off my computer and come back later.  I restart MSYS and go to build libpng (which depends on zlib).
How does MSYS know that my zlib headers and library files are in    c:/my_directory ?

I'm going to guess.

By doing this:
./configure --prefix=c:/my_directory              when building libpng, am I also telling MSYS where to find the zlib headers and library files?
make install       this part also stores headers and library files into c:/my_directory 

From: Eli Zaretskii <eliz@xxxxxxx>
Sent: Friday, 4 March 2016 8:44 PM
To: Domonic Tom
Cc: mingw-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Mingw-users] MSYS on Windows - Setting Directories?

> From: Domonic Tom <AbDomTom@xxxxxxxxxxx>
> Date: Fri, 4 Mar 2016 10:40:00 +0000
> The example I have provided below is an example of this. problem. So I did as you indicated and made the
> prefix as so: --prefix=c:/mingw
> and once the make install was complete this was the error. I just did the make install to isolate the problem I'm
> having.

It didn't complete, it errored out half-way, and that's why some files
were not installed.

> I don't know what other information you need but I've also provided a directory dump of all the contents of
> C:/libjpeg-6b down below.
> user@USER-PC ~
> $ cd C:\jpeg-6b
> user@USER-PC /c/jpeg-6b
> $ make install
> /bin/install -c cjpeg c:/mingw/bin/cjpeg
> /bin/install -c djpeg c:/mingw/bin/djpeg
> /bin/install -c jpegtran c:/mingw/bin/jpegtran
> /bin/install -c rdjpgcom c:/mingw/bin/rdjpgcom
> /bin/install -c wrjpgcom c:/mingw/bin/wrjpgcom
> /bin/install -c -m 644 ./cjpeg.1 c:/mingw/man/man1/cjpeg.1
> /bin/install: cannot create regular file `c:/mingw/man/man1/cjpeg.1': No such file or directory
> make: *** [install] Error 1

Jpeg-6b is an awfully old version of libjpeg.  I see that the Makefile
in that version indeed didn't bother creating these directories before
installing files in them.  So you will need to create these
directories manually (some of them might already exist):


However, my advice would be to build and install a newer version of
libjpeg.  As I said, version 9a doesn't have these problems.  The
latest version seems to be 9b, released this January.

> Keep in mind that this error go's way if I place a 'bin' directory in my c:/mingw directory. This process only
> installs binary files in a bin directory but not headers or library files.

I don't understand what it means to place 'bin' in your c:/mingw.  The
commands you show, that did succeed, already copied the programs into
c:/mingw/bin, so I think I don't follow you.
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe