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

compiling from GIT ... qtscript issue

Tags: None
(comma "," separated)
sanskritter
Registered Member
Posts
30
Karma
0
Hi all
I'm getting this error:
Code: Select all
[ 92%] Built target amarok_service_gpodder_automoc
Scanning dependencies of target amarok_service_gpodder
[ 92%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/amarok_service_gpodder_automoc.o
[ 93%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderService.o
[ 93%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderServiceConfig.o
[ 93%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderServiceModel.o
[ 93%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderServiceView.o
[ 93%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderProvider.o
[ 93%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderPodcastMeta.o
[ 93%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderTreeItem.o
[ 93%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderPodcastTreeItem.o
[ 93%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderTagTreeItem.o
[ 94%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderPodcastRequestHandler.o
[ 94%] Building CXX object src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/GpodderSortFilterProxyModel.o
make[2]: *** No rule to make target `/usr/lib/libQtCore.so', needed by `lib/amarok_service_gpodder.so'.  Stop.
make[1]: *** [src/services/gpodder/CMakeFiles/amarok_service_gpodder.dir/all] Error 2
make: *** [all] Error 2


I managed to find this patch:
Code: Select all
http://code.google.com/p/qtscriptgenerator/issues/detail?id=39

Is that the solution? If so, can someone tell me how to apply it ... I couldnt find qtscriptconcurrent.h in /src
Alternatively, I dont mind making it without gpodder support ...
any advice gratefully accepted!
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Well, you should start telling us your system configuration, especially the KDE and Qt versions, the distribution, and what instructions you follow for compiling.
I assume you use the latest git checkout and have read the README file, of course.


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 ...
sanskritter
Registered Member
Posts
30
Karma
0
thanks for the reply
Debian
linux 3.1.0-1-686-pae
kde 4.8.4
libQT 4:4.8.4
libqtscript4-core 0.2,0-1
gui
etc
yes I have read the readme, I've been compiling from git monthly for a good while now with no issues, the last upgrade changed a few things it seems.
the configure script exits normally:
Code: Select all
-- /usr/src/amarok/cmake/modules
-- Taglib found: -L/usr/lib/i386-linux-gnu -ltag
-- Taglib-Extras found: -L/usr/lib -ltag-extras
-- Found Qt-Version 4.8.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found KDE 4.8 include dir: /usr/include
-- Found KDE 4.8 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Checking if the QtScript Qt Bindings are installed.
-- includes /usr/include/qt4/QtCore;/usr/include/qt4/QtScript;/usr/include;/usr/include/KDE;/usr/include/KDE;/usr/include;/usr/include/qt4/phonon;/usr/include/qt4/QtXmlPatterns;/usr/include/qt4/QtXml;/usr/include/qt4/QtWebKit;/usr/include/qt4/QtUiTools;/usr/include/qt4/QtTest;/usr/include/qt4/QtSvg;/usr/include/qt4/QtSql;/usr/include/qt4/QtScriptTools;/usr/include/qt4/QtScript;/usr/include/qt4/QtOpenGL;/usr/include/qt4/QtNetwork;/usr/include/qt4/QtHelp;/usr/include/qt4/QtDesigner;/usr/include/qt4/QtDesigner;/usr/include/qt4/QtDeclarative;/usr/include/qt4/QtDBus;/usr/include/qt4/Qt3Support;/usr/include/qt4/QtGui;/usr/include/qt4/QtCore;/usr/include/qt4/Qt;/usr/share/qt4/mkspecs/default;/usr/include/qt4;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include libraries Qt4::QtScript;Qt4::QtCore;Qt4::QtGui;-L/usr/lib;-lkdecore;-lkdeui
-- QtBindings found
-- Found MySQL: /usr/include/mysql, -L/usr/lib/i386-linux-gnu -lmysqlclient -lpthread -lm -lrt -ldl
-- Found MySQL Embedded: /usr/include/mysql, -L/usr/lib/i386-linux-gnu -lmysqld_pic -lpthread -lm -lrt -lwrap -lcrypt -ldl -laio -L/usr/lib/mysql -lpthread
-- Found liblastfm: /usr/include/lastfm, /usr/lib/liblastfm.so
--      libavcodec: /usr/include, /usr/lib/i386-linux-gnu/libavcodec.so
--      libavformat: /usr/include, /usr/lib/i386-linux-gnu/libavformat.so
--      libavutil: /usr/include, /usr/lib/i386-linux-gnu/libavutil.so
-- Found libofa: /usr/include/ofa1, /usr/lib/libofa.so
--      Include directory: /usr/include/gdk-pixbuf-2.0
-- Found MTP: /usr/lib/i386-linux-gnu/libmtp.so
-- Libgcrypt found: /lib/i386-linux-gnu/libgcrypt.so
-- Found MTP: /usr/lib/i386-linux-gnu/libmtp.so
CMake Warning at src/core-impl/collections/db/CMakeLists.txt:1 (message):
  Workaround: Adding define for MAKE_AMAROK_DATABASECOLLECTION_LIB, this is
  needed for Windows, but has to be removed as soon as DatabaseCollection
  gets its own lib


-- Found X11: /usr/lib/i386-linux-gnu/libX11.so

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * kdelibs - The toolkit Amarok uses to build
   * qtscript-qt - QtScript Qt Bindings
   * mysqld - Embedded MySQL Libraries
   * mysql - MySQL Server Libraries
   * zlib - zlib
   * qca2 - Qt Cryptographic Architecture
   * OpenGL - Support for hardware acceleration (enables the Spectrum Analyzer)
   * QJson - Qt JSON Parser used for the Playdar Collection
   * liblastfm - Enable Last.Fm service, including scrobbling, song submissions, and suggested song dynamic playlists
   * ffmpeg - Libraries and tools for handling multimedia data
   * libofa - Enable MusicDNS service
   * libmygpo-qt - Enable gpodder.net service
   * libgpod - Support Apple iPod/iPad/iPhone audio devices
   * GDK-PixBuf - Support for artwork on iPod audio devices via GDK-PixBuf
   * libmtp - Enable Support for portable media devices that use the media transfer protocol
   * curl - cURL provides the necessary network libraries required by mp3tunes.
   * libxml2 - LibXML2 is an XML parser required by mp3tunes.
   * openssl or libgcrypt - OpenSSL or GNU Libgcrypt provides cryptographic functions required by mp3tunes.
   * loudmouth - Loudmouth is the communication backend needed by mp3tunes for syncing.
   * Qt4 Glib support - Qt4 must be compiled with glib support for mp3tunes
   * gobject - Required by libgpod and mp3tunes.
   * glib2 - Required by libgpod and mp3tunes
   * taglib - Support for Audio metadata.

-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Configuring done

and then as outlined above it stops making at 94% with:
No rule to make target `/usr/lib/libQtCore.so'

I managed to find the patch I mentioned by dieter, I have a sneaky suspicion it describes my problem, but I dont know where to apply it!
so, there it is .... thanks for looking, I'll post a solution myself should I find one, just in case I'm not alone!
thanks
User avatar
Sentynel
KDE Developer
Posts
285
Karma
1
OS
Why do you think this is related to qtscript?


sanskritter
Registered Member
Posts
30
Karma
0
just guessing to be honest
because cmake throws the qtcore error ... don't know
would like to know though!
something crucial must have got uninstalled I suppose.
all ideas gratefully considered, and my own ineptitude is still very much in the equation of course.
User avatar
Sentynel
KDE Developer
Posts
285
Karma
1
OS
libQtCore is Qt itself, it's nothing to do with qtscript.

Have you removed your CMakeCache.txt or cleaned the build folder since getting this error? Is Debian multiarch (i.e., does /usr/lib/libQtCore.so* actually exist, or is it under /usr/lib/{i386-linux-gnu,x86_64-linux-gnu} (depending on your architecture)?


User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If you have recently been installing updates, especially Qt updates, you may need to reboot your system to allow for the symlink to the latest library version to be rebuilt.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
sanskritter
Registered Member
Posts
30
Karma
0
well ... the fix was easy enough in the end.
ln -s /usr/lib/i386-linux-gnu/libQtCore.so.4.8.2 /usr/lib/libQtCore.so

and
ln -s /usr/lib/i386-linux-gnu/libQtNetwork.so.4.8.2 /usr/lib/libQtNetwork.so


it seems the symlinks were not created by the system on the last upgrade, all good now.
Hopefully this may help other debian users. Thanks for your input guys.
;)
User avatar
Sentynel
KDE Developer
Posts
285
Karma
1
OS
Those shouldn't be symlinked; the linker should correctly look in the arch-specific directory. If the symlinks are needed, something is broken. Did you clean your build folder and rebuild like I suggested?


sanskritter
Registered Member
Posts
30
Karma
0
indeed i did, in fact i used a pristine copy for each build attempt.
I also upgraded to linux 3.2.0-3-686-pae just to see.
then I re-downloaded the sources from Git.
the errors were always identical to those described above, until I symlinked the qt files.
This situation is a wee bit over my head to be honest ...
but at least it compiles now ,...


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], lockheed, Sogou [Bot]