Vulcanius
07-31-2009, 03:34 AM
When using the ClanLib 2.0 svn repo, "make install" fails as a result of trying to install image.h twice.
/bin/install -c -m 644 Display/2D/texture_group.h Display/2D/draw.h Display/2D/image.h Display/2D/gradient.h Display/2D/rounded_rect.h Display/2D/sprite.h Display/2D/sprite_description.h Display/2D/subtexture.h Display/2D/color.h Display/2D/image.h Display/2D/span_layout.h '/opt/ClanLib-TEST/include/ClanLib-2.0/ClanLib/Display/2D'
/bin/install: will not overwrite just-created `/opt/ClanLib-TEST/include/ClanLib-2.0/ClanLib/Display/2D/image.h' with `Display/2D/image.h'
make[3]: *** [install-nobase_ClanLibincludeHEADERS] Error 1
make[3]: Leaving directory `/home/cody/gamedevelopment/ClanLib-2.0-copy/Sources/API'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/cody/gamedevelopment/ClanLib-2.0-copy/Sources/API'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/cody/gamedevelopment/ClanLib-2.0-copy/Sources'
make: *** [install-recursive] Error 1
[cody@tritium-arch-2 ClanLib-2.0-copy]$
This is due to a duplicate entry of image.h in Sources/API/Makefile.am. A patch to fix this is attached.
/bin/install -c -m 644 Display/2D/texture_group.h Display/2D/draw.h Display/2D/image.h Display/2D/gradient.h Display/2D/rounded_rect.h Display/2D/sprite.h Display/2D/sprite_description.h Display/2D/subtexture.h Display/2D/color.h Display/2D/image.h Display/2D/span_layout.h '/opt/ClanLib-TEST/include/ClanLib-2.0/ClanLib/Display/2D'
/bin/install: will not overwrite just-created `/opt/ClanLib-TEST/include/ClanLib-2.0/ClanLib/Display/2D/image.h' with `Display/2D/image.h'
make[3]: *** [install-nobase_ClanLibincludeHEADERS] Error 1
make[3]: Leaving directory `/home/cody/gamedevelopment/ClanLib-2.0-copy/Sources/API'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/cody/gamedevelopment/ClanLib-2.0-copy/Sources/API'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/cody/gamedevelopment/ClanLib-2.0-copy/Sources'
make: *** [install-recursive] Error 1
[cody@tritium-arch-2 ClanLib-2.0-copy]$
This is due to a duplicate entry of image.h in Sources/API/Makefile.am. A patch to fix this is attached.