News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compilation problems about libpng12

Started by TSalm, December 16, 2006, 02:03:51 PM

Previous topic - Next topic

TSalm

Hi,

Sorry for this stupid question, but I don't find the solution.  :?

I'm trying to compile C::B, but "make" returns me :


/bin/sh ../../libtool --tag=CXX --mode=link g++  -O2 -ffast-math  -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC   -o codeblocks  app.o appglobals.o compilersettingsdlg.o crashhandler.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o main.o prefix.o printdlg.o scriptconsole.o splashscreen.o startherepage.o -LwxAUI -lwxaui -L../sdk -lcodeblocks -pthread   -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6  -lpthread -ldl
g++ -O2 -ffast-math -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -o .libs/codeblocks app.o appglobals.o compilersettingsdlg.o crashhandler.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o main.o prefix.o printdlg.o scriptconsole.o splashscreen.o startherepage.o -pthread  -L/home/tsalm/SOURCE/CodeBlocks/trunk/src/src/wxAUI /home/tsalm/SOURCE/CodeBlocks/trunk/src/src/wxAUI/.libs/libwxaui.a -L/home/tsalm/SOURCE/CodeBlocks/trunk/src/sdk /home/tsalm/SOURCE/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6 -lpthread -ldl
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_get_IHDR@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_destroy_write_struct@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_write_end@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_set_tRNS_to_alpha@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_set_write_fn@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_destroy_read_struct@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_create_read_struct@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_set_palette_to_rgb@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_set_shift@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_set_read_fn@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_set_bKGD@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_set_filler@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_read_image@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_set_interlace_handling@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_get_io_ptr@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_error@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_read_end@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_read_info@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_read_update_info@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_create_write_struct@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_set_IHDR@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_get_valid@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_set_packing@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_create_info_struct@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_convert_from_time_t@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_set_sBIT@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_set_gray_to_rgb@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_set_expand@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_write_info@PNG12_0'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_write_rows@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_write_image@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_set_read_user_transform_fn@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_set_gray_1_2_4_to_8@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_set_tIME@PNG12_0'
/usr/bin/../lib/libcairo.so.2: undefined reference to `png_set_write_user_transform_fn@PNG12_0'/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libwx_gtk2u_core-2.6.so: undefined reference to `png_set_strip_16@PNG12_0'
collect2: ld returned 1 exit status


Thanks
Florent
OS: Linux Slackware
Compiler: gcc 3.4.6
wxW: 2.6.4

mandrav

Try installing the png development package...
Be patient!
This bug will be fixed soon...

TSalm

Yes, I installed:
- libpng12-0 
- libpng12-dev
and
- libpng3
- libpng3-dev

All are version 1.2.8rel-5ubuntu0.1 (I'm using an Ubuntu)

The problem seems to provided from the library... I'll see with the devel team of this library.

Thanks.
OS: Linux Slackware
Compiler: gcc 3.4.6
wxW: 2.6.4

TSalm

ok, for information, I've just find where is the problem,
I used an install of mono in my user's dir, and it use his owns libraries which hide the rights ones.
OS: Linux Slackware
Compiler: gcc 3.4.6
wxW: 2.6.4

mandrav

Quote from: TSalm on December 16, 2006, 09:36:16 PM
ok, for information, I've just find where is the problem,
I used an install of mono in my user's dir, and it use his owns libraries which hide the rights ones.

Thanks for posting this. I 'm sure it will help others in the future :).
Be patient!
This bug will be fixed soon...