Web lists-archives.com

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




If a package has no libraries and no include files it wants to
install, this is normal.  So the above doesn't tell much without an
example of a specific package that did that.

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.

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

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.  

As you can see below, there is definitely a library file and a header file. 

user@USER-PC /c/jpeg-6b
$



Directory of C:\jpeg-6b

04/03/2016  09:25 PM    <DIR>          .
04/03/2016  09:25 PM    <DIR>          ..
20/01/1996  11:52 AM             1,565 ansi2knr.1
22/01/1996  08:53 PM            23,008 ansi2knr.c
18/12/1997  01:50 AM             5,381 cderror.h
08/09/1997  07:51 AM             4,863 cdjpeg.c
15/09/1997  08:32 AM             6,307 cdjpeg.h
04/03/2016  09:25 PM             1,214 cdjpeg.o
28/03/1998  10:35 AM             9,501 change.log
21/03/1998  12:29 PM            10,418 cjpeg.1
21/03/1998  12:21 PM            20,458 cjpeg.c
04/03/2016  09:25 PM           224,687 cjpeg.exe
04/03/2016  09:25 PM            11,412 cjpeg.o
03/08/1994  06:26 AM            12,568 ckconfig.c
07/01/1996  09:37 AM             5,482 coderules.doc
26/03/1998  02:25 AM            25,163 config.guess
04/03/2016  09:25 PM             6,088 config.log
04/03/2016  09:25 PM             8,499 config.status
26/03/1998  02:25 AM            20,756 config.sub
22/03/1998  06:08 AM            62,320 configure
23/08/1997  01:28 PM             7,669 djpeg.1
12/10/1997  09:29 AM            19,955 djpeg.c
04/03/2016  09:25 PM           238,960 djpeg.exe
04/03/2016  09:25 PM            12,372 djpeg.o
07/01/1996  10:23 AM            17,524 example.c
16/03/1998  05:57 AM             8,578 filelist.doc
02/03/1998  12:26 PM             5,834 install-sh
23/03/1998  12:42 PM            52,991 install.doc
25/01/1998  08:21 AM             9,401 jcapimin.c
04/03/2016  09:25 PM             2,806 jcapimin.o
07/01/1996  10:24 AM             6,042 jcapistd.c
04/03/2016  09:25 PM             1,583 jcapistd.o
16/11/1997  01:25 PM            16,849 jccoefct.c
04/03/2016  09:25 PM             3,729 jccoefct.o
07/01/1996  10:24 AM            15,307 jccolor.c
04/03/2016  09:25 PM             3,425 jccolor.o
14/01/1996  06:15 AM            12,856 jcdctmgr.c
04/03/2016  09:25 PM             3,883 jcdctmgr.o
21/10/1997  11:20 AM            29,131 jchuff.c
21/10/1997  10:12 AM             1,622 jchuff.h
04/03/2016  09:25 PM             7,513 jchuff.o
08/09/1997  07:50 AM             2,421 jcinit.c
04/03/2016  09:25 PM             1,449 jcinit.o
07/01/1996  10:24 AM             9,461 jcmainct.c
04/03/2016  09:25 PM             1,424 jcmainct.o
22/02/1998  08:54 AM            17,909 jcmarker.c
04/03/2016  09:25 PM             4,817 jcmarker.o
11/08/1997  10:40 AM            20,479 jcmaster.c
04/03/2016  09:25 PM             4,971 jcmaster.o
09/10/1997  11:01 AM             3,216 jcomapi.c
04/03/2016  09:25 PM             1,208 jcomapi.o
12/03/1995  09:36 AM             1,464 jconfig.bcc
07/12/1994  03:43 AM             1,223 jconfig.cfg
10/06/1994  07:40 AM             1,181 jconfig.dj
24/05/1994  06:51 AM             5,527 jconfig.doc
03/03/2016  10:48 PM             1,258 jconfig.h
22/02/1998  11:04 AM             1,242 jconfig.mac
24/05/1994  07:12 AM             1,240 jconfig.manx
24/05/1994  07:12 AM             1,720 jconfig.mc6
24/05/1994  07:12 AM             1,213 jconfig.sas
25/07/1995  10:37 AM             1,350 jconfig.st
19/10/1997  06:41 AM             1,378 jconfig.vc
02/09/1994  01:15 AM             1,016 jconfig.vms
21/06/1995  04:27 AM             1,177 jconfig.wat
22/02/1998  06:59 AM            21,885 jcparam.c
04/03/2016  09:25 PM             6,898 jcparam.o
21/10/1997  11:21 AM            25,948 jcphuff.c
04/03/2016  09:25 PM             8,803 jcphuff.o
07/01/1996  10:25 AM            12,427 jcprepct.c
04/03/2016  09:25 PM             3,132 jcprepct.o
07/01/1996  10:25 AM            19,378 jcsample.c
04/03/2016  09:25 PM             4,441 jcsample.o
22/02/1998  07:03 AM            14,365 jctrans.c
04/03/2016  09:25 PM             3,563 jctrans.o
25/01/1998  08:22 AM            13,032 jdapimin.c
04/03/2016  09:25 PM             3,488 jdapimin.o
07/01/1996  10:26 AM             9,623 jdapistd.c
04/03/2016  09:25 PM             2,387 jdapistd.o
07/01/1996  10:26 AM             5,270 jdatadst.c
04/03/2016  09:25 PM             1,475 jdatadst.o
07/01/1996  10:26 AM             7,816 jdatasrc.c
04/03/2016  09:25 PM             1,814 jdatasrc.o
28/10/1997  02:12 PM            25,891 jdcoefct.c
04/03/2016  09:25 PM             6,170 jdcoefct.o
04/08/1997  10:39 AM            13,358 jdcolor.c
04/03/2016  09:25 PM             3,463 jdcolor.o
07/01/1996  10:39 AM             7,217 jdct.h
14/01/1996  06:38 AM             8,562 jddctmgr.c
04/03/2016  09:25 PM             3,603 jddctmgr.o
21/10/1997  11:51 AM            21,517 jdhuff.c
21/10/1997  11:37 AM             8,339 jdhuff.h
04/03/2016  09:25 PM             5,095 jdhuff.o
08/11/1997  03:26 AM            13,881 jdinput.c
04/03/2016  09:25 PM             2,926 jdinput.o
07/01/1996  10:27 AM            20,878 jdmainct.c
04/03/2016  09:25 PM             3,022 jdmainct.o
22/02/1998  07:24 AM            42,478 jdmarker.c
04/03/2016  09:25 PM            10,776 jdmarker.o
08/11/1997  03:25 AM            20,267 jdmaster.c
04/03/2016  09:25 PM             4,610 jdmaster.o
07/01/1996  10:27 AM            14,316 jdmerge.c
04/03/2016  09:25 PM             3,147 jdmerge.o
18/07/1994  06:10 AM               775 jdosabcc.obj
18/07/1994  06:10 AM               657 jdosamsc.obj
28/03/1998  11:21 AM               724 jdosaobj.doc
21/10/1997  11:42 AM            21,227 jdphuff.c
04/03/2016  09:25 PM             6,078 jdphuff.o
07/01/1996  10:27 AM            10,013 jdpostct.c
04/03/2016  09:25 PM             2,145 jdpostct.o
07/01/1996  10:27 AM            16,859 jdsample.c
04/03/2016  09:25 PM             3,711 jdsample.o
04/08/1997  08:47 AM             5,233 jdtrans.c
04/03/2016  09:25 PM             1,345 jdtrans.o
22/02/1998  12:03 PM             8,053 jerror.c
19/10/1997  05:59 AM            14,227 jerror.h
04/03/2016  09:25 PM             9,233 jerror.o
07/01/1996  10:28 AM             5,654 jfdctflt.c
04/03/2016  09:25 PM             1,727 jfdctflt.o
07/01/1996  10:28 AM             7,802 jfdctfst.c
04/03/2016  09:25 PM             1,235 jfdctfst.o
07/01/1996  10:28 AM            11,349 jfdctint.c
04/03/2016  09:25 PM             1,423 jfdctint.o
15/01/1998  02:12 PM             8,693 jidctflt.c
04/03/2016  09:25 PM             2,331 jidctflt.o
15/01/1998  02:10 PM            13,538 jidctfst.c
04/03/2016  09:25 PM             1,975 jidctfst.o
15/01/1998  02:00 PM            15,204 jidctint.c
04/03/2016  09:25 PM             2,231 jidctint.o
15/01/1998  02:15 PM            13,926 jidctred.c
04/03/2016  09:25 PM             2,465 jidctred.o
02/04/1994  07:29 AM             3,341 jinclude.h
07/01/1996  10:29 AM             4,777 jmemansi.c
04/08/1997  11:22 AM            19,615 jmemdos.c
14/03/1992  01:12 PM             8,693 jmemdosa.asm
04/08/1997  11:26 AM             9,796 jmemmac.c
15/04/1997  11:56 AM            42,106 jmemmgr.c
04/03/2016  09:25 PM             6,906 jmemmgr.o
15/09/1997  08:35 AM             8,590 jmemname.c
07/01/1996  10:31 AM             2,881 jmemnobs.c
04/03/2016  09:25 PM             1,492 jmemnobs.o
04/08/1997  10:58 AM             8,428 jmemsys.h
10/08/1997  10:58 AM            12,821 jmorecfg.h
20/04/1997  10:44 AM            16,104 jpegint.h
22/02/1998  06:48 AM            47,301 jpeglib.h
04/08/1997  07:01 AM             7,700 jpegtran.1
24/07/1997  01:37 PM            16,731 jpegtran.c
04/03/2016  09:25 PM           232,281 jpegtran.exe
04/03/2016  09:25 PM             9,641 jpegtran.o
07/01/1996  10:31 AM            32,150 jquant1.c
04/03/2016  09:25 PM             5,793 jquant1.o
07/01/1996  10:31 AM            49,739 jquant2.c
04/03/2016  09:25 PM             7,546 jquant2.o
14/01/1996  06:51 AM             5,419 jutils.c
04/03/2016  09:25 PM             1,734 jutils.o
28/03/1998  10:34 AM               374 jversion.h
04/03/2016  09:25 PM           180,758 libjpeg.a
22/02/1998  08:08 AM           162,344 libjpeg.doc
26/03/1998  02:25 AM            44,609 ltconfig
26/03/1998  02:25 AM            73,432 ltmain.sh
22/03/1998  06:09 AM             1,808 makcjpeg.st
22/03/1998  06:09 AM             1,808 makdjpeg.st
22/03/1998  06:09 AM            22,159 makeapps.ds
04/03/2016  09:25 PM            15,592 Makefile
22/03/1998  06:08 AM            12,011 makefile.ansi
22/03/1998  06:08 AM            14,685 makefile.bcc
22/03/1998  06:08 AM            16,069 makefile.cfg
22/03/1998  06:08 AM            12,151 makefile.dj
22/03/1998  06:09 AM            11,937 makefile.manx
22/03/1998  06:08 AM            14,167 makefile.mc6
22/03/1998  06:09 AM            13,471 makefile.mms
22/03/1998  06:09 AM            12,838 makefile.sas
22/03/1998  06:08 AM            12,399 makefile.unix
22/03/1998  06:08 AM            12,387 makefile.vc
22/03/1998  06:09 AM             4,565 makefile.vms
22/03/1998  06:08 AM            12,654 makefile.wat
22/03/1998  06:08 AM            22,496 makelib.ds
22/03/1998  06:09 AM            10,587 makeproj.mac
22/03/1998  06:09 AM             4,399 makljpeg.st
22/03/1998  06:09 AM             1,385 maktjpeg.st
22/03/1998  06:09 AM               214 makvms.opt
07/01/1996  10:31 AM            14,231 rdbmp.c
04/03/2016  09:25 PM             4,204 rdbmp.o
20/11/1996  03:38 AM             7,102 rdcolmap.c
04/03/2016  09:25 PM             2,301 rdcolmap.o
23/08/1997  12:19 PM             1,310 rdgif.c
04/03/2016  09:25 PM             1,025 rdgif.o
12/10/1997  09:46 AM             1,615 rdjpgcom.1
12/10/1997  09:41 AM            14,375 rdjpgcom.c
04/03/2016  09:25 PM           138,109 rdjpgcom.exe
04/03/2016  09:25 PM             7,267 rdjpgcom.o
18/12/1997  01:39 AM            14,482 rdppm.c
04/03/2016  09:25 PM             3,915 rdppm.o
07/01/1996  10:32 AM            12,060 rdrle.c
04/03/2016  09:25 PM               418 rdrle.o
14/01/1996  06:42 AM            10,007 rdswitch.c
04/03/2016  09:25 PM             4,779 rdswitch.o
08/01/1996  04:42 AM            15,467 rdtarga.c
04/03/2016  09:25 PM             4,313 rdtarga.o
28/03/1998  10:34 AM            20,330 README
28/03/1998  11:20 AM               646 readme.dos
04/03/2016  12:00 AM             6,804 specs
22/11/1995  04:00 AM            52,844 structure.doc
23/08/1997  10:44 AM            35,050 testimg.bmp
30/07/1995  04:57 AM             5,756 testimg.jpg
30/07/1995  04:57 AM           101,484 testimg.ppm
30/07/1995  04:57 AM             5,645 testimgp.jpg
30/07/1995  04:57 AM             5,770 testorig.jpg
30/07/1995  04:57 AM             5,655 testprog.jpg
10/08/1997  11:15 AM            33,558 transupp.c
24/07/1997  01:39 PM             5,896 transupp.h
04/03/2016  09:25 PM             8,489 transupp.o
21/03/1998  12:34 PM            27,733 usage.doc
16/11/1995  03:30 AM             9,970 wizard.doc
07/01/1996  10:32 AM            14,355 wrbmp.c
04/03/2016  09:25 PM             3,879 wrbmp.o
25/09/1997  01:56 AM            13,287 wrgif.c
04/03/2016  09:25 PM             3,574 wrgif.o
16/06/1995  11:14 AM             2,730 wrjpgcom.1
23/10/1997  03:47 PM            17,146 wrjpgcom.c
04/03/2016  09:25 PM           137,828 wrjpgcom.exe
04/03/2016  09:25 PM             7,538 wrjpgcom.o
07/01/1996  10:32 AM             8,599 wrppm.c
04/03/2016  09:25 PM             2,400 wrppm.o
07/01/1996  10:32 AM             9,547 wrrle.c
04/03/2016  09:25 PM               418 wrrle.o
07/01/1996  10:32 AM             7,777 wrtarga.c
04/03/2016  09:25 PM             2,565 wrtarga.o
             225 File(s)      3,688,295 bytes
               2 Dir(s)  190,449,700,864 bytes free

C:\jpeg-6b>
































________________________________________
From: Eli Zaretskii <eliz@xxxxxxx>
Sent: Friday, 4 March 2016 7:37 PM
To: MinGW Users List
Subject: Re: [Mingw-users] MSYS on Windows - Setting Directories?

> From: Domonic Tom <AbDomTom@xxxxxxxxxxx>
> Date: Fri, 4 Mar 2016 09:57:43 +0000
>
> I thought that if I do the following in the following order, my headers and lib files will be automatically placed in directories MSYS can find when I am using
> these libraries as dependencies.   But from the below it seems to me, because I'm on Windows, that I always have to spacify where to put these files with --prefix
> even though there are other ways of doing this with  INCLUDE_PATH and LIBRARY_PATH using the export command.  I'm not sure what the difference is.

You need to always use --prefix when running the 'configure' script,
yes.  And the directory you specify in --prefix=DIRECTORY should be
the same one under which you have the compiler.  Then it will all work
seamlessly.

> When I do specify a directory using --prefix, and then 'make install' MSYS puts all the binaries in that directory (c:/test/bin) and leaves c:/test/include and c:/test/lib empty.

If a package has no libraries and no include files it wants to
install, this is normal.  So the above doesn't tell much without an
example of a specific package that did that.

> Some relevant directories.
>
> c:/mingw       //my compiler is in here.
> c:/msys         // msys istalled here.
> c:/libjpeg-6b   // lipjpeg.
>
> see my commands below.
>
> user@USER-PC /c/jpeg-6b
> $ ./configure

This is wrong!  You should say this instead:

$ ./configure --prefix=c:/mingw

> $ make install                                                   ----------------------------------------------------------------------------------------make install here.... SEE ERROR
> /bin/install -c cjpeg /usr/local/bin/cjpeg
> /bin/install: cannot create regular file `/usr/local/bin/cjpeg.exe': No such file or directory
> make: *** [install] Error 1

You don't have /usr/local.  But this problem will resolve itself if
you use the --prefix option to 'configure' as mentioned above.

------------------------------------------------------------------------------
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!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
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:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe
------------------------------------------------------------------------------
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!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
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:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe