Forums

OverviewV-Play Installationundefined reference to libpng12 on ubuntu 13.04 64bit › Reply To: undefined reference to libpng12 on ubuntu 13.04 64bit

OverviewV-Play Installationundefined reference to libpng12 on ubuntu 13.04 64bit › Reply To: undefined reference to libpng12 on ubuntu 13.04 64bit
#5478

Martin

Hi Alex,

I’ve now tried the suggested modification of the project file which results in

:-1: error: /home/eigel/libs/V-PlaySDK/Desktop/Qt/4.8.1/gcc/../../../V-PlaySDK/daily/lib/lib64/libVPlay_debug.a(CCImage.o): undefined reference to symbol 'png_malloc@@PNG12_0'
:-1: error: note: 'png_malloc@@PNG12_0' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libpng12.so so try adding it to the linker command line
/usr/lib/x86_64-linux-gnu/libpng12.so:-1: error: could not read symbols: Invalid operation

full log

g++-4.6 -Wl,--rpath=/home/eigel/libs/V-PlaySDK/Desktop/Qt/4.8.1/gcc/../../../V-PlaySDK/daily/lib/lib64/third_party -o MultiSceneMultiLevel main.o qmlapplicationviewer.o moc_qmlapplicationviewer.o    -L/home/eigel/libs/V-PlaySDK/Desktop/Qt/4.8.1/gcc/lib -lpng12 -lz -lfontconfig /home/eigel/libs/V-PlaySDK/Desktop/Qt/4.8.1/gcc/../../../V-PlaySDK/daily/lib/lib64/libVPlay_debug.a /home/eigel/libs/V-PlaySDK/Desktop/Qt/4.8.1/gcc/../../../V-PlaySDK/daily/lib/lib64/third_party/libcocosdenshion.so -L/home/eigel/libs/V-PlaySDK/Desktop/Qt/4.8.1/gcc/../../../V-PlaySDK/daily/lib/lib64/third_party -lglfw -lGL -lcurl -lfreetype -ljpeg -lxml2 -lQtDeclarative -L/home/eigel/libs/V-PlaySDK/Desktop/Qt/4.8.1/gcc/lib -lQtScript -lQtSvg -L/usr/X11R6/lib64 -lQtSql -lQtXmlPatterns -lQtGui -lQtNetwork -lQtCore -lpthread 
/usr/bin/ld: /home/eigel/libs/V-PlaySDK/Desktop/Qt/4.8.1/gcc/../../../V-PlaySDK/daily/lib/lib64/libVPlay_debug.a(CCImage.o): undefined reference to symbol 'png_malloc@@PNG12_0'
/usr/bin/ld: note: 'png_malloc@@PNG12_0' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libpng12.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libpng12.so: could not read symbols: Invalid operation

Any ideas what goes wrong? libpng12-dev is installed.

I’m using qtcreator 2.8.0.

Best, Martin

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support