You are not logged in.

#1 2012-03-12 18:55:20

broi
Member
From: Bosnia & Herzegovina
Registered: 2011-12-10
Posts: 127

[SOLVED] QT Creator won't Run any of examples

Hi I just installed QT SDK, and at startup it recommends me to see some of "Demos and Examples" and I did so, I tried 4-5 examples and EVERY have some errors. Most of them look like this:

/usr/bin/ld: warning: libpng12.so.0, needed by /home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_read_info@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_gAMA@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_tRNS@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_PLTE@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_filler@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_text@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_packing@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_write_rows@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_invert_mono@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_error_fn@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_write_chunk@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_image_width@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_IHDR@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_sig_bytes@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_read_update_info@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_write_fn@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_write_end@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_create_read_struct@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_read_image@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_gray_to_rgb@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_IHDR@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_channels@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_strip_16@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_expand@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_pHYs@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_create_write_struct@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_gAMA@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_write_info@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_text@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_PLTE@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_oFFs@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_destroy_write_struct@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_io_ptr@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_image_height@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_y_pixels_per_meter@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_compression_level@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_x_pixels_per_meter@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_gamma@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_destroy_read_struct@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_read_end@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_packswap@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_sBIT@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_error@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_write_image@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_read_fn@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_tRNS@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_create_info_struct@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_set_bgr@PNG12_0'
/home/broi/QtSDK/Simulator/Qt/gcc/lib/libQtGui.so: undefined reference to `png_get_valid@PNG12_0'
collect2: ld returned 1 exit status
make: *** [annotatedurl] Error 1
make: Leaving directory `/home/broi/QtSDK/Examples/QtMobility/annotatedurl-build-simulator-Simulator_Qt_for_GCC__Qt_SDK__Release'
19:56:28: The process "/usr/bin/make" exited with code 2.
Error while building project annotatedurl (target: Qt Simulator)
When executing build step 'Make'

Last edited by broi (2012-03-16 18:21:30)

Offline

#2 2012-03-16 00:51:30

matse
Member
Registered: 2011-04-27
Posts: 299

Re: [SOLVED] QT Creator won't Run any of examples

Your code obviously links to libpng12, which isn't in the default repo. It's in the AUR, so try installing it from there.

Offline

#3 2012-03-16 10:02:29

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: [SOLVED] QT Creator won't Run any of examples

/me suggests just using qt from repos + a sane editor instead. Or atleast build qtcreator from source (you can find it in aur)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2012-03-16 14:00:46

broi
Member
From: Bosnia & Herzegovina
Registered: 2011-12-10
Posts: 127

Re: [SOLVED] QT Creator won't Run any of examples

I just installed libpng12 from AUR and it works, thank you! smile

Offline

#5 2012-03-16 14:03:07

broi
Member
From: Bosnia & Herzegovina
Registered: 2011-12-10
Posts: 127

Re: [SOLVED] QT Creator won't Run any of examples

Mr.Elendig wrote:

/me suggests just using qt from repos + a sane editor instead. Or atleast build qtcreator from source (you can find it in aur)

U saying I can programme qt apps without QT Creator, just with sane (or some other) editor?

Offline

Board footer

Powered by FluxBB