# Png.h cvs compile error

**URL:** <https://www.ruby-forum.com/t/png-h-cvs-compile-error/79682>\
**Category:** Ruby-Gnome 2\
**Created:** [December 18, 2006, 5:22am UTC](https://www.ruby-forum.com/t/png-h-cvs-compile-error/79682 "2006-12-18T05:22:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![williej](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@williej](https://www.ruby-forum.com/u/williej)\
**Post date:** [December 18, 2006, 5:22am UTC](https://www.ruby-forum.com/t/png-h-cvs-compile-error/79682/1 "2006-12-18T05:22:09Z")

</div>

I don’t know if you want me reporting a cvs compile error, so if this  
project does not want that please say so.

Anyway, I am having a problem compiling from cvs. I have a ubuntu feisty  
box and libart failed the configure saying png.h is not found. Are there  
any ideas. I have looked and there is png.h in  
/usr/include/libpng12/png.h and there is a symlink to that in  
/usr/include/png.h and /usr/include/libpng/png.h. Do you need any more  
info?

Also, what is the criteria for the next release? It is annoying to have  
to keep recompiling from cvs. I would like to have base to write my  
programs off of that ubuntu can package. So what needs to be done?

Thanks

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![williej](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@williej](https://www.ruby-forum.com/u/williej)\
**Post date:** [December 18, 2006, 5:32am UTC](https://www.ruby-forum.com/t/png-h-cvs-compile-error/79682/2 "2006-12-18T05:32:10Z")

</div>

Hi,

2006/12/18, William J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Anyway, I am having a problem compiling from cvs. I have a ubuntu feisty  
> box and libart failed the configure saying png.h is not found. Are there  
> any ideas. I have looked and there is png.h in  
> /usr/include/libpng12/png.h and there is a symlink to that in  
> /usr/include/png.h and /usr/include/libpng/png.h. Do you need any more info?

Does the attached patch solve the problem?

Thanks,

---

<div class="post-metadata">

**Author:** ![williej](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@williej](https://www.ruby-forum.com/u/williej)\
**Post date:** [December 18, 2006, 4:19pm UTC](https://www.ruby-forum.com/t/png-h-cvs-compile-error/79682/3 "2006-12-18T16:19:29Z")

</div>

Kouhei S. wrote:

> > more info?  
> > ===================================================================  
> > +PKGConfig.have\_package(‘libpng12’) or have\_header(“png.h”) or exit 1  
> > have\_header(“jpeglib.h”) or exit 1
> 
> have\_library(“png”, “png\_create\_write\_struct”)

That fixed the png problem, now there is the same problem with  
jpeglib.h. There is no pkgconfig file so the same fix won’t work. The  
file is installed and located in /usr/include/.

Thanks

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![williej](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@williej](https://www.ruby-forum.com/u/williej)\
**Post date:** [December 20, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/png-h-cvs-compile-error/79682/4 "2006-12-20T17:05:19Z")

</div>

Hi,

2006/12/19, William J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> That fixed the png problem, now there is the same problem with  
> jpeglib.h. There is no pkgconfig file so the same fix won’t work. The  
> file is installed and located in /usr/include/.

What you need may be ‘–with-opt-dir=’ option:  
% ruby extconf.rb --with-opt-dir=/usr

## Thanks,

kou

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)
