This forum has been archived. All content is frozen. Please use KDE Discuss instead.

GIT, Taglib 1.6 and Taglib-extra 1.0 errors

Tags: None
(comma "," separated)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try

Code: Select all
cmake .. -DWITH_ASF=TRUE


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Bananikus
Registered Member
Posts
8
Karma
0
OS
Hmmm, cmake works... Log:
Code: Select all
[kde-devel@ban-desktop taglib]$ cmake .. -DWITH_ASF=TRUE
-- Ensure you cppunit installed version is at least 1.12.0
-- Found Qt-Version 4.5.2                                 
-- Found Rasqal 0.9.16: libs - /usr/lib/librasqal.so; includes - /usr/include/rasqal
-- Found Raptor 1.4.19: libs - /usr/lib/libraptor.so; includes - /usr/include       
-- Found Redland 1.0.9: libs - /usr/lib/librdf.so; includes - /usr/include         
-- Found CLucene library: /usr/lib/libclucene.so                                   
-- Found CLucene include dir: /usr/include                                         
-- Found CLucene library dir: /usr/lib                                             
-- Found CLucene: /usr/lib/libclucene.so                                           
-- Found Java JNI >= 1.4: /usr/lib/jvm/java-6-openjdk/include, /usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/libjvm.so
---------------------------------------------------------------------------------------                                 
-- Soprano Components that will be built:                                                                               
   * Redland storage backend                                                                                           
   * Sesame2 storage backend (java-based)                                                                               
   * Raptor RDF parser                                                                                                 
     (including TriG parser)                                                                                           
   * Raptor RDF serializer                                                                                             
   * The CLucene-based full-text search index library                                                                   
   * D-Bus server/client support                                                                                       

-- Soprano Components that will NOT be built:
   * Virtuoso storage backend               
---------------------------------------------------------------------------------------
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)                                       
-- Soprano is needed to build Akonadi. We will use Soprano from kdesupport.           
-- Found Automoc4: /home/kde-devel/kdesvn/build/kdesupport/automoc/automoc4           
-- MySQL Server found.                                                                 
--                                                                                     
-----------------------------------------------------------------------------         
-- The following external packages were located on your system.                       
-- This installation will have the extra features provided by these packages.         
+ Soprano                                                                             
+ Boost                                                                               
Congratulations! All external packages have been found.                               
-----------------------------------------------------------------------------         

** Expat is disabled. No support for XML via Expat
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found CLucene library: /usr/lib/libclucene.so                         
-- Found CLucene include dir: /usr/include                               
-- Found CLucene library dir: /usr/lib                                   
-- Found CLucene: /usr/lib/libclucene.so                                 
** CLucene is found. Support for CLucene backend is enabled               
** HyperEstraier is disabled. No support for HyperEstraier backend       
** SQLite is disabled. No support for SQLite backend                     
** Exiv2 is found. Support for indexing of EXIF/IPTC metadata is enabled 
-- Found Qt-Version 4.5.2                                                 
** Qt4 is found. Support for Qt4 GUI client is enabled                   
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found dbus-1 release >= 1.0                                           
** DBus-1 is found. Support for DBus interface in Strigi daemon is enabled
** Log4cxx is disabled. No support for advanced logging                   
** FAM is disabled. No support for efficient file change monitoring system
-- Ensure you cppunit installed version is at least 1.12.0               
** CppUnit not found. Support for Strigi unit tests is disabled           
-- dbus support enabled                                                   
Java5 found TRUE                                                         
-- /home/kde-devel/kde/lib - /home/kde-devel/kde                         
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)                         
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)                         
-- Found Threads: TRUE                                                   
-- Found Automoc4: /home/kde-devel/kdesvn/build/kdesupport/automoc/automoc4
-- Found GStreamer Plugins:                                               
    /usr/lib/libgstaudio-0.10.so
    /usr/lib/libgstcdda-0.10.so
    /usr/lib/libgstnetbuffer-0.10.so
    /usr/lib/libgstpbutils-0.10.so
    /usr/lib/libgstriff-0.10.so
    /usr/lib/libgstrtp-0.10.so
    /usr/lib/libgstrtsp-0.10.so
    /usr/lib/libgstsdp-0.10.so
    /usr/lib/libgsttag-0.10.so
    /usr/lib/libgstvideo-0.10.so
-- Found GLIB2: /usr/lib/libglib-2.0.so
-- Found GObject libraries: gobject-2.0;glib-2.0
-- Found GObject includes : /usr/include/glib-2.0
-- Found ALSA: /usr/lib/libasound.so
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ GStreamer
+ GStreamer video plugin
+ GStreamer audio plugin
+ GLib2
+ LibXml2
+ OpenGL
+ XCB
Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Found Automoc4: /home/kde-devel/kdesvn/build/kdesupport/automoc/automoc4
--  /usr/include/PolicyKit ===========
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kde-devel/kdesvn/build/kdesupport

Unfortunately taglib still haven't asf support.
It seems to me, that kdesvn-build overwrite my cmake config.


Bananikus, proud to be a member of KDE forums since 2008-Dec.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Well, you need to compile taglib with the support enabled, then erase your previous CMakeCache, else it will still search for the old taglib packages. But all this is already described in the previous posts in tis thread, please search back...


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
Bananikus
Registered Member
Posts
8
Karma
0
OS
I deleted old cmakefiles...
I use KDE from kdesvn-build and must compile taglib with asf in kdesvn-build, but I can't.

All of solutions in this topic doesn't work....


Bananikus, proud to be a member of KDE forums since 2008-Dec.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try this

Code: Select all
cmake /path/to/kdesupport/build -DWITH_ASF=ON -DWITH_MP4=ON


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
finex
KDE Developer
Posts
46
Karma
0
OS
bcooksley wrote:Try this

Code: Select all
cmake /path/to/kdesupport/build -DWITH_ASF=ON -DWITH_MP4=ON


Hi, I've tried to recompile kdesupport with this parameters, but amarok still tell me that asf support is not enabled.

On my kde directory I've those files:
./include/taglib-extras/mp4tag.h
./include/taglib/mp4tag.h
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
finex wrote:
bcooksley wrote:Try this

Code: Select all
cmake /path/to/kdesupport/build -DWITH_ASF=ON -DWITH_MP4=ON


Hi, I've tried to recompile kdesupport with this parameters, but amarok still tell me that asf support is not enabled.

On my kde directory I've those files:
./include/taglib-extras/mp4tag.h
./include/taglib/mp4tag.h


Make sure that you don't have multiple versions of Taglib installed.


--
Mark Kretschmann - Amarok Developer
finex
KDE Developer
Posts
46
Karma
0
OS
markey wrote:Make sure that you don't have multiple versions of Taglib installed.


Alreay checked :((
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you set $CMAKE_PREFIX_PATH to include the KDESupport installation directory?

Example - I install KDE to /opt/trunk-kde/kde and Qt to /opt/trunk-kde/qt

Code: Select all
CMAKE_PREFIX_PATH=/opt/trunk-kde/kde:/opt/trunk-kde/qt


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
finex
KDE Developer
Posts
46
Karma
0
OS
bcooksley wrote:Have you set $CMAKE_PREFIX_PATH to include the KDESupport installation directory?


Of course, I've a similar path, so both $CMAKE_INSTALL_PREFIX and $CMAKE_PREFIX_PATH are set to my custom path. Maybe i'm doing something wrong with cmake. This is the command i execute:

Code: Select all
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=Debug -DWITH_LibLastFm=OFF -DWITH_MP3Tunes=OFF -DWITH_Mtp=ON -DWITH_Ipod=OFF -DWITH_Strigi=OFF -DCMAKE_PREFIX_PATH=`kde4-config --prefix`


I've added the last -DCMAKE_PREFIX_PATH=`kde4-config --prefix` after your suggestion, before it simply was an enviroment variable, but nothing changed. This is the output of cmake:

Code: Select all
-- Taglib found: -L/mnt/archive/KDE4/kde/lib -ltag
-- Performing Test TAGLIB_ASF_FOUND
-- Performing Test TAGLIB_ASF_FOUND - Failed
CMake Error at CMakeLists.txt:27 (message):
  TagLib does not have ASF support compiled in.
MoDaX
Registered Member
Posts
241
Karma
0
OS
Check CMakeFiles/CMakeError.log file in the amarok build directory for more detailed info why it fails.
finex
KDE Developer
Posts
46
Karma
0
OS
This is the error log:
Code: Select all
/usr/bin/c++      -DTAGLIB_ASF_FOUND  -fPIC CMakeFiles/cmTryCompileExec.dir/src.cxx.o  -o cmTryCompileExec -rdynamic -L/mnt/archive/KDE4/kde/lib -ltag
CMakeFiles/cmTryCompileExec.dir/src.cxx.o: In function `main':
src.cxx:(.text+0x11): undefined reference to `TagLib::ASF::Tag::Tag()'
src.cxx:(.text+0x22): undefined reference to `TagLib::ASF::Tag::~Tag()'
collect2: ld returned 1 exit status
make[1]: Leaving directory `/var/abs/local/yaourtbuild/amarok-minimal-git/src/amarok/amarok-build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec] Error 1
make: *** [cmTryCompileExec/fast] Error 2

Source file was:
#include <asftag.h>
int main() { TagLib::ASF::Tag tag; return 0;}


Probably the compiler doesn't find the right includes on /opt/kde/include/taglib. The file asftag.h exists on /opt/kde/include/taglib.
MoDaX
Registered Member
Posts
241
Karma
0
OS
finex wrote:This is the error log:
Code: Select all
/usr/bin/c++      -DTAGLIB_ASF_FOUND  -fPIC CMakeFiles/cmTryCompileExec.dir/src.cxx.o  -o cmTryCompileExec -rdynamic -L/mnt/archive/KDE4/kde/lib -ltag
CMakeFiles/cmTryCompileExec.dir/src.cxx.o: In function `main':
src.cxx:(.text+0x11): undefined reference to `TagLib::ASF::Tag::Tag()'
src.cxx:(.text+0x22): undefined reference to `TagLib::ASF::Tag::~Tag()'
collect2: ld returned 1 exit status
make[1]: Leaving directory `/var/abs/local/yaourtbuild/amarok-minimal-git/src/amarok/amarok-build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec] Error 1
make: *** [cmTryCompileExec/fast] Error 2

Source file was:
#include <asftag.h>
int main() { TagLib::ASF::Tag tag; return 0;}


Probably the compiler doesn't find the right includes on /opt/kde/include/taglib. The file asftag.h exists on /opt/kde/include/taglib.


No, that's linker. you probably still have /usr/lib/libtag.so or something.
finex
KDE Developer
Posts
46
Karma
0
OS
I've completely removed all the old taglib and re-installed from trunk... still nothing different (and there is no taglib libraries and headers on /usr/*).

Anyway, I'll try again to compile amarok among 1 or 2 weeks... thanks all.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan