Comments (6)
This is the problem:
QLibraryPrivate::loadPlugin failed on "/home/alex/local/qt/5.9.1/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /home/alex/local/qt/5.9.1/gcc_64/plugins/platforms/libqxcb.so: (/usr/lib/x86_64-linux-gnu/libQt5DBus.so.5: version `Qt_5' not found (required by /home/alex/local/qt/5.9.1/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5))"
Try this before running hotspot:
export LD_LIBRARY_PATH=/home/alex/local/qt/5.9.1/gcc_64/lib/:$LD_LIBRARY_PATH
from hotspot.
Thank you Kevin. Indeed, the library path did work. I don't get why other projects don't need it, though. I tried with another cmake-based one (neovim-qt) and it worked. I think for qmake based binaries the rpath is set to where the Qt libaries are, so you don't need it. GammaRay also has it set. Is that something that could be added to hotspot, or is intentional?
Thank you.
from hotspot.
We could fix that by adding something like this to the root CMakeLists.txt:
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
from hotspot.
Sorry, nope, that would not fix your particular issue.
from hotspot.
Actually, CMake is instructed to actually store the RPATH of the linked libraries in the resulting binary. It does that here for me (CMake version 3.7.2):
% readelf -d /home/kfunk/devel/install/master/bin/hotspot
...
0x000000000000001d (RUNPATH) Library runpath: [/home/kfunk/devel/install/master/lib/x86_64-linux-gnu:/home/kfunk/devel/install/kf5/lib/x86_64-linux-gnu:/home/kfunk/devel/build/qt5.8/qtbase/lib]
...
hotspot's CMakeLists.txt already has this, which should enforce this behavior:
if(NOT DEFINED CMAKE_INSTALL_RPATH_USE_LINK_PATH)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
endif()
Maybe your CMake version is broken...?
from hotspot.
I have little experience with CMake, so I can't tell much about the build files, but I can assure you that RPATH is not working for me. I'm get this in "plain" Ubuntu 16.04 and with KDE Neon (also based in that LTS). I don't think CMake will be broken in such a widely used distribution:
$ objdump -p ./gammaray/bin/gammaray |grep PATH
RPATH /home/alex/local/gammaray/lib:/home/alex/local/qt-5.2/lib
$ objdump -p ./hotspot/bin/hotspot |grep PATH
RUNPATH /home/alex/local/hotspot/lib/x86_64-linux-gnu:/home/alex/local/qt/5.9.1/gcc_64/lib
In your quote, see that RUNPATH is set as well, but not RPATH. :)
Setting LD_LIBRARY_PATH is fine, so not a big deal, maybe. I'll edit the title of the issue.
from hotspot.
Related Issues (20)
- perfparser: add elfutlis version info to `--version` (and its debug symbols in the debuginfo appimage package) HOT 1
- Disassembly view: Disassembly broken after 201 HOT 1
- appimage: also package QT debuginfo (or make it otherwise available)
- Fails to build with kddockwidgets-2.0.0: error: no viable conversion from 'const QVector<KDDockWidgets::Core::DockWidget *>' to 'const QVector<KDDockWidgets::DockWidgetBase *>' HOT 1
- [com.kdab.kddockwidgets] [error] Couldn't find dock widget frequency
- Too fast clicking at stop, cause segfault
- Disassembly displays old source (caching issue?) and search is broken HOT 8
- chrash in hotspot in handling perfparser output HOT 7
- copyright year needs an adjustment HOT 4
- hotspot in Arch linux AUR not work for a long time, thanks. HOT 3
- Not active at start profile button and working directory resetting each time
- Disassembly View (Source Code): add setting for tab-width
- Source Code view only C* "highlights" multiline comments on the first line HOT 1
- Attribute inline cost to caller HOT 3
- KURLRequester not using correct folder when opening file picker on Gnome
- source view with strange "Util" context menu HOT 1
- GCC 13.2.0: src/models/highlightedtext.cpp:94:5: error: constructors cannot be declared 'virtual', src/models/highlightedtext.cpp:94:76: error: 'HighlightingImplementation::HighlightingImplementation(KSyntaxHighlighting::Repository*)' cannot be defaulted
- hotspot chrashing on disassembly HOT 1
- Latest AppImage download without GitHub account HOT 2
- Disassembly view does not show include files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hotspot.