-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Frugalware-Art.org Artwork for Frugalware Linux 
 Arch-Stuff.org Artwork and Stuff for Arch Linux 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
Xfce-Look.org - Eyecandy for your Xfce-Desktop
Xfce-Look.orgXfce-Look.org

 May 2 2024  
 Not logged in  
Xfce-Look.org
 Home    Add Artwork   Forum   Groups   Knowledge   Events   Jobs   Users   Register   Login-

-
- New questions .- Answered question .- Not answered question .- My questions .- Post your question here . 
Go back to the overview page to see other entries
Back to overview

1
votes
click to vote up

Compiling taglib with QT on Ubuntu


Programming - Oct 7 2015
not answered
Question:Sorry for the newbie factor..
I can't get taglib working in my QT environment.
I have installed the 1.9.1 library with "sudo apt-get install libtag1-dev".

When i compile my program i get a error..

../MP3_Tagger/mainwindow.cpp:158: error: undefined reference to `TagLib::FileRef::FileRef(char const*, bool, TagLib::AudioProperties::ReadStyle)'

../MP3_Tagger/mainwindow.cpp:158: error: undefined reference to `TagLib::FileRef::~FileRef()'

../MP3_Tagger/mainwindow.cpp:158: error: undefined reference to `TagLib::FileRef::~FileRef()'

:-1: error: collect2: error: ld returned 1 exit status


My .pro file contains the INCLUDE PATH to the Library and a LIBS pad with -ltag.
The header of my mainwindow.h & mainwindow.cpp file contains different includes for taglib..
This is the code i try to compile in my mainwindow.cpp file..

QByteArray file = QFile::encodeName(FileName);
const char * encodedName = file.constData();
//TagLib::FileRef fileref = TagLib::FileRef f(encodedName, true, TagLib::AudioProperties::Average);
TagLib::FileName fn(FileName.toStdString().c_str());
TagLib::FileRef nfr(fn);
//TagLib::FileRef (fn, true, TagLib::AudioProperties::Average);


You can see that i try different things... but always the same result.
I even try to add the liberary in a differende way (manualy installation) but any difference.
In the install manual of taglib, i see a explanation for Mac OS X and Windows but notting for Ubuntu or Linux.

Can sombody help me out or give me some direction?
I am googling now for several day's and can't get it right.





Add answer
Back to overview
Add comment

Do you have a question?
Post your question here






-

Copyright 2004-2016 Xfce-Look.org Team  Legal Notice
All rights reserved. Xfce-Look.org is not liable for any content or goods on this site.
You can find our FAQ here.
All contributors are responsible for the lawfulness of their uploads.
Please send us a notice if you spot an ABUSE of the website.
Information about advertising in Xfce-Look.org.
Developers can use our public webservice interface. More information here: public api
For further information or comments on this site, please send us a message
Xfce is a trademark of the Xfce Project
Content RSS   
Events RSS