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

Run error #18

Closed
pickfire opened this issue Sep 30, 2015 · 15 comments
Closed

Run error #18

pickfire opened this issue Sep 30, 2015 · 15 comments

Comments

@pickfire
Copy link

Hi, I had instaled velox. When I run swc-launch velox:

Running on /dev/tty3
velox: error while loading shared libraries: libswc.so.0: cannot open shared object file: No such file or directory
Server exited with status 127
Restoring VT to original state
@michaelforney
Copy link
Owner

Install swc into a location that your dynamic linker is configured to look for, set the RPATH/RUNPATH for your velox binary, or set LD_LIBRARY_PATH when running velox to the path that contains libswc.so.0.

@pickfire
Copy link
Author

pickfire commented Oct 1, 2015

I had set RUNPATH to /usr/local/bin/ and LD_LIBRARY_PATH to /usr/local/lib/, but whe I run swc-launch velox:

Running on /dev/tty3
velox: error while loading shared libraries: libswc.so.0: cannot open shared object file: No such file or directory
Server exited with status 127
Restoring VT to original state

But velox now does not have error:

[swc:libswc/swc.c:119] ERROR: Could not connect to swc-launch

@pickfire
Copy link
Author

I think this is related to swaywm/sway#143

@michaelforney
Copy link
Owner

Read the error message. velox can't find libswc.so.0. Fix your system configuration so that it can.

@pickfire
Copy link
Author

I have no idea what should I do now.
2015-10-13-141905_529x340_scrot

@michaelforney
Copy link
Owner

Can you run file /usr/local/lib/libswc.so.0.0?

Did you export LD_LIBRARY_PATH?

If you can't figure it out, maybe do more reading about errors of that type, and play around with strace so you can understand what's going on. This is not the place for general linux support.

@pickfire
Copy link
Author

2015-10-13-144122_564x340_scrot

If you can't figure it out, maybe do more reading about errors of that type, and play around with strace so you can understand what's going on.

Of course. http://ix.io/loi

@michaelforney
Copy link
Owner

Maybe try swc-launch -- env LD_LIBRARY_PATH=/usr/local/lib velox.

If not, for your strace command, use strace -f so that the child process is also monitored.

@pickfire
Copy link
Author

Thanks. It works now, but there is another error related to wld:

Running on /dev/tty3
[swc:libswc/drm.c:258] ERROR: Could not find DRM device
[swc:libswc/swc.c:124] ERROR: Could not initialize DRM
Server exited with status 1
Restoring VT to original state

2015-10-14-120837_1600x900_scrot

I think I have set the wrong drm driver which is libdrm that I had installed, I am not sure what I need to set that.

@michaelforney
Copy link
Owner

Sounds like your system does not have a DRM device.

Since you are on a raspberry pi, are you using a kernel with the VC4 DRM driver?

@pickfire
Copy link
Author

Since you are on a raspberry pi, are you using a kernel with the VC4 DRM driver?

Maybe, I am not sure about that but I do have libdrm installed.

@michaelforney
Copy link
Owner

libdrm is just a userspace helper library for talking to kernel DRM. If you don't have the right DRM driver enabled in your kernel, there is no way that any DRM-based software can work.

@pickfire
Copy link
Author

[I] ivan@alarmpi ~> sudo find / -name drm -print
/usr/lib/modules/4.1.10-2-ARCH/build/include/drm
/usr/lib/modules/4.1.10-2-ARCH/build/include/uapi/drm
/usr/lib/modules/4.1.10-2-ARCH/build/drivers/gpu/drm
/usr/lib/musl/include/drm

I guess I have drm installed, but I am not sure what is the tire name called what driver should I use?

@michaelforney
Copy link
Owner

As stated before... VC4 DRM driver.

It's not in the mainline kernel source, so you'll likely have to build your own kernel by following the instructions on that page.

@pickfire
Copy link
Author

I had asked in the irc channel of archlinux-arm, they said that it is incomplete and it isn't included so far.
Thanks for your help.

Good luck and have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants