Opened 8 years ago

Closed 8 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)

Portfile.diff (383 bytes) - added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) 8 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 8 years ago by michaelld (Michael Dickens)

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.

comment:2 Changed 8 years ago by mojca (Mojca Miklavec)

Is this the same problem as with Wireshark then (comment:41:ticket:40782)?

comment:3 Changed 8 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?)

Last edited 8 years ago by mojca (Mojca Miklavec) (previous) (diff)

comment:4 Changed 8 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:5 Changed 8 years ago by mike-savory

Cc: msavory@… added

Cc Me!

comment:6 Changed 8 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 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attachment: Portfile.diff added

comment:7 Changed 8 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Fixed in r143119 by updated cmake to newer versions.

Note: See TracTickets for help on using tickets.