error with libjpeg

Hi with the last jhbuild script I've these error:

----------------------------------------------------------------------
Libraries have been installed in:
/Users/Alexander/gtk/inst/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
./libtool --mode=install /Users/Alexander/bin/install-check cjpeg /Users/Alexander/gtk/inst/bin/cjpeg
/Users/Alexander/bin/install-check .libs/cjpeg /Users/Alexander/gtk/inst/bin/cjpeg
./libtool --mode=install /Users/Alexander/bin/install-check djpeg /Users/Alexander/gtk/inst/bin/djpeg
/Users/Alexander/bin/install-check .libs/djpeg /Users/Alexander/gtk/inst/bin/djpeg
./libtool --mode=install /Users/Alexander/bin/install-check jpegtran /Users/Alexander/gtk/inst/bin/jpegtran
/Users/Alexander/bin/install-check .libs/jpegtran /Users/Alexander/gtk/inst/bin/jpegtran
./libtool --mode=install /Users/Alexander/bin/install-check rdjpgcom /Users/Alexander/gtk/inst/bin/rdjpgcom
/Users/Alexander/bin/install-check rdjpgcom /Users/Alexander/gtk/inst/bin/rdjpgcom
./libtool --mode=install /Users/Alexander/bin/install-check wrjpgcom /Users/Alexander/gtk/inst/bin/wrjpgcom
/Users/Alexander/bin/install-check wrjpgcom /Users/Alexander/gtk/inst/bin/wrjpgcom
/Users/Alexander/bin/install-check -m 644 ./cjpeg.1 /Users/Alexander/gtk/inst/man/man1/cjpeg.1
install: /Users/Alexander/gtk/inst/man/man1/cjpeg.1: No such file or directory
make: *** [install] Error 71
*** error during stage install of libjpeg: ########## Error running make install *** [5/13]

[1] rerun stage install
[2] ignore error and continue to done
[3] give up on module
[4] start shell
choice:

This is triggered by a

This is triggered by a change in jhbuild, i will have to update my moduleset, will try to do that within the next couple of days. Thanks for reporting.

You are welcome :), can you

You are welcome :), can you post here when it will be fixed please? :)

You could try now, it should

You could try now, it should be working (if not, you can try cleaning the jhbuild cache by removing ~/.jhbuild/cache).

:( same

:( same error:

----------------------------------------------------------------------
Libraries have been installed in:
/Users/Alexander/gtk/inst/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
./libtool --mode=install /Users/Alexander/bin/install-check cjpeg /Users/Alexander/gtk/inst/bin/cjpeg
/Users/Alexander/bin/install-check .libs/cjpeg /Users/Alexander/gtk/inst/bin/cjpeg
./libtool --mode=install /Users/Alexander/bin/install-check djpeg /Users/Alexander/gtk/inst/bin/djpeg
/Users/Alexander/bin/install-check .libs/djpeg /Users/Alexander/gtk/inst/bin/djpeg
./libtool --mode=install /Users/Alexander/bin/install-check jpegtran /Users/Alexander/gtk/inst/bin/jpegtran
/Users/Alexander/bin/install-check .libs/jpegtran /Users/Alexander/gtk/inst/bin/jpegtran
./libtool --mode=install /Users/Alexander/bin/install-check rdjpgcom /Users/Alexander/gtk/inst/bin/rdjpgcom
/Users/Alexander/bin/install-check rdjpgcom /Users/Alexander/gtk/inst/bin/rdjpgcom
./libtool --mode=install /Users/Alexander/bin/install-check wrjpgcom /Users/Alexander/gtk/inst/bin/wrjpgcom
/Users/Alexander/bin/install-check wrjpgcom /Users/Alexander/gtk/inst/bin/wrjpgcom
/Users/Alexander/bin/install-check -m 644 ./cjpeg.1 /Users/Alexander/gtk/inst/man/man1/cjpeg.1
install: /Users/Alexander/gtk/inst/man/man1/cjpeg.1: No such file or directory
make: *** [install] Error 71
*** error during stage install of libjpeg: ########## Error running make install *** [5/13]

[1] rerun stage install
[2] ignore error and continue to done
[3] give up on module
[4] start shell
choice:

pS: I've deleted the .jhbuild folder and I've run the script again

Try removing the old source

Try removing the old source directory of jpeg-6b too if you didn't already. If it still breaks, make sure you are using the recent setup from the build instructions here http://developer.imendio.com/projects/gtk-macosx/build-instructions

I've deleted all

I've deleted all folders(jhbuild,source,bin,gtk, really all) and I'm using the last build instructions:

/Users/Alexander/bin/install-check .libs/libjpeg.lai /Users/Alexander/gtk/inst/lib/libjpeg.la
----------------------------------------------------------------------
Libraries have been installed in:
/Users/Alexander/gtk/inst/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
./libtool --mode=install /Users/Alexander/bin/install-check cjpeg /Users/Alexander/gtk/inst/bin/cjpeg
/Users/Alexander/bin/install-check .libs/cjpeg /Users/Alexander/gtk/inst/bin/cjpeg
./libtool --mode=install /Users/Alexander/bin/install-check djpeg /Users/Alexander/gtk/inst/bin/djpeg
/Users/Alexander/bin/install-check .libs/djpeg /Users/Alexander/gtk/inst/bin/djpeg
./libtool --mode=install /Users/Alexander/bin/install-check jpegtran /Users/Alexander/gtk/inst/bin/jpegtran
/Users/Alexander/bin/install-check .libs/jpegtran /Users/Alexander/gtk/inst/bin/jpegtran
./libtool --mode=install /Users/Alexander/bin/install-check rdjpgcom /Users/Alexander/gtk/inst/bin/rdjpgcom
/Users/Alexander/bin/install-check rdjpgcom /Users/Alexander/gtk/inst/bin/rdjpgcom
./libtool --mode=install /Users/Alexander/bin/install-check wrjpgcom /Users/Alexander/gtk/inst/bin/wrjpgcom
/Users/Alexander/bin/install-check wrjpgcom /Users/Alexander/gtk/inst/bin/wrjpgcom
/Users/Alexander/bin/install-check -m 644 ./cjpeg.1 /Users/Alexander/gtk/inst/man/man1/cjpeg.1
install: /Users/Alexander/gtk/inst/man/man1/cjpeg.1: No such file or directory
make: *** [install] Error 71
*** error during stage install of libjpeg: ########## Error running make install *** [5/13]

[1] rerun stage install
[2] ignore error and continue to done
[3] give up on module
[4] start shell
choice:

Still same error :(

Could you press 4 at the

Could you press 4 at the error prompt and then type:

make -f makefile.gtkosx install

and see if you get the same error?

And also, please try creating the directory /Users/Alexander/gtk/inst/man/man1 if it doesn't already exist and try again (just building libjpeg is fine of course, not the whole stack).

Also, could you try to locate the commandline that jhbuild runs to do make install? I'm not sure if prints that in the log but in case it does it might help to see it.

*** error during stage

*** error during stage install of libjpeg: ########## Error running make install *** [5/13]

[1] rerun stage install
[2] ignore error and continue to done
[3] give up on module
[4] start shell
choice: 4
exit shell to continue with build
bash-3.2# make -f makefile.gtkosx install
make install-lib
/Users/demo/bin/install-check -m 644 jconfig.h /Users/demo/gtk/inst/include/jconfig.h
/Users/demo/bin/install-check -m 644 ./jpeglib.h /Users/demo/gtk/inst/include/jpeglib.h
/Users/demo/bin/install-check -m 644 ./jmorecfg.h /Users/demo/gtk/inst/include/jmorecfg.h
/Users/demo/bin/install-check -m 644 ./jerror.h /Users/demo/gtk/inst/include/jerror.h
./libtool --mode=install /Users/demo/bin/install-check libjpeg.la /Users/demo/gtk/inst/lib/libjpeg.la
/Users/demo/bin/install-check .libs/libjpeg.62.0.0.dylib /Users/demo/gtk/inst/lib/libjpeg.62.0.0.dylib
(cd /Users/demo/gtk/inst/lib & })
(cd /Users/demo/gtk/inst/lib & })
/Users/demo/bin/install-check .libs/libjpeg.lai /Users/demo/gtk/inst/lib/libjpeg.la
----------------------------------------------------------------------
Libraries have been installed in:
/Users/demo/gtk/inst/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
bash-3.2#

Ok, so it seems it worked

Ok, so it seems it worked then? That indicates that you somehow are not getting the latest version of the build setup. Could you doublecheck again please that you are using the shell script that checks out jhbuild etc from the link above?

I.e. did you do this as part of the setup:

sh gtk-osx-build-setup.sh

I can paste all log in

I can paste all log in pastebin if you want, I've updated the .sh file yesterday

Please do, that might help.

Please do, that might help.

I've added some "echo": ha

I've added some "echo":

ha finitooooo= gtk-osx-build-setup.sh finished
inizio bootstrap = starts bootstrap
finisco bootstrap = end of bootstrap
inizio il meta = starts meta-gtk-osx-bootstrap
finisco il meta = end of meta-gtk-osx-bootstrap

http://pastebin.org/47544

Write me if you need other things :)

The sequence of commands

The sequence of commands is:

curl -L \
ftp://anonymous:needsemail%40forsomereason.com@ftp.uu.net\
/graphics/jpeg/jpegsrc.v6b.tar.gz -o /Users/john/gtk/source\
/pkgs/jpegsrc.v6b.tar.gz

patch -p1 < "/Users/john/.jhbuild/cache/libjpeg-libtool-\
build.patch"

./configure --prefix /Users/john/gtk/inst --libdir \
'${exec_prefix}/lib' --enable-shared --disable-static \
--disable-static --enable-shared --disable-gtk-doc \
--disable-docs --disable-scrollkeeper --disable-xlib

make -f makefile.gtkosx

make install

So there are two problems: Running configure is a waste of time and make install isn't specifying the makefile.gtkosx file.

And yes, I made sure that I used a fresh installation and blew out the cached moudulesets.

patch at