Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPATH broken for OpenStudioApplication 1.7.0-rc2 on Ubuntu #673

Closed
jmarrec opened this issue Jan 22, 2024 · 1 comment · Fixed by #676
Closed

RPATH broken for OpenStudioApplication 1.7.0-rc2 on Ubuntu #673

jmarrec opened this issue Jan 22, 2024 · 1 comment · Fixed by #676
Labels
Triage Issue needs to be assessed and labeled, further information on reported might be needed

Comments

@jmarrec
Copy link
Collaborator

jmarrec commented Jan 22, 2024

Issue overview

bin/OpenStudioApp can't find lib/libopenstudiolib.so.

Current Behavior

RPATH is broken

OpenStudioApp: error while loading shared libraries: libopenstudiolib.so: cannot open shared object file: No such file or directory

Expected Behavior

Should work

Possible Solution

sudo patchelf --set-rpath "\$ORIGIN:\$ORIGIN/../lib" OpenStudioApp

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version): Ubuntu
  • Version of OpenStudioApplication (if using an intermediate build, include SHA): 1.7.0-rc2

Context

Reported during RC2 testing #669

@jmarrec jmarrec added the Triage Issue needs to be assessed and labeled, further information on reported might be needed label Jan 22, 2024
@jmarrec
Copy link
Collaborator Author

jmarrec commented Jan 22, 2024

Problem number 2 on Ubuntu 22.04:

$ OPENSTUDIO_APPLICATION_DEBUG=1 ./OpenStudioApp
[OpenStudioApp.main] <-2> main received argc=1 arguments
[OpenStudioApp.main] <-2> Argument 0=./OpenStudioApp
Warning: Could not find the Qt platform plugin "wayland" in "" ((null):0, (null))
Warning: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. ((null):0, (null))
Info: Could not load the Qt platform plugin "xcb" in "" even though it was found. ((null):0, (null))
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.
 ((null):0, (null))
Aborted (core dumped)

sudo apt install libxcb-cursor0

I still get Warning: Could not find the Qt platform plugin "wayland" in "" ((null):0, (null)) but it launches anyways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage Issue needs to be assessed and labeled, further information on reported might be needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant