Opened 9 years ago
Closed 9 years ago
#49837 closed defect (fixed)
cmake: cmake-gui can not find Qt 5 libraries at runtime
Reported by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | haspatch | Cc: | cssdev, mojca (Mojca Miklavec), mike-savory |
Port: | cmake |
Description
Qt 5 libraries are built with rpath.
cmake-gui does not seem to be built with the correct rpath.
For reference, there is an upstream discussion on rpath and OS X.
Attached is a proposed solution.
Attachments (1)
Change History (8)
comment:1 Changed 9 years ago by michaelld (Michael Dickens)
comment:2 Changed 9 years ago by mojca (Mojca Miklavec)
Is this the same problem as with Wireshark then (comment:41:ticket:40782)?
comment:3 Changed 9 years ago by mojca (Mojca Miklavec)
Wouldn't it be better to actually patch Qt5 rather than all the zillion of its dependent ports?
(From what I can see they accepted a patch and will make it available in 5.5, so why not just cherry-pick that patch?)
comment:6 Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
As noted earlier, the rpath patch has been merged upstream.
Cherry-picked in r143113.
After reinstallation, cmake worked for me without the proposed patch.
I am altering the proposed solution to just a revbump.
Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Attachment: | Portfile.diff added |
---|
comment:7 Changed 9 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r143119 by updated cmake to newer versions.
I don't have Qt5 installed, so I can't test this solution. But, it looks OK to me. If it works for others then I'm good to commit it. I've got a change in place ready to commit once I hear back.