-
Notifications
You must be signed in to change notification settings - Fork 1
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
libAzQtComponents.so symbol lookup error #1
Comments
It looks like the QT system libraries are getting loaded over the O3DE provided ones--I am not entirely sure why but it seems to only be cropping up on Manjaro. In other words, the ldd command should show:
You might be able to force the provided libs to load first with: |
I found this post from QT which might explain the confusion around it and why behavior is different between distros If this is the case, then this is something that might need to be fixed upstream And based on the apparent load order, LD_LIBRARY_PATH might not be high priority enough to work before the system libs are loaded... |
LD_LIBRARY_PATH didn't seem to resolve this and unless i'm doing this wrong neither did LD_PRELOAD LD_preload-o3de bashscript.txt to check my work ldd_LD_PRELOAD_libAzQtComponents.so.txt the output of the above |
LD_PRELOAD might need to be on the same line as the final command. If that doesn't work though, I don't think this is something that can be fixed in the AUR package |
yah, defiantly needs a fix from upstream. I've tried a few different iterations of the same thing and none of it works |
One other thing i might ask of you just to verify whats happening, if you run
|
|
submitted issue to O3DE here for future reference: o3de/o3de#14171 |
Hey! I'm a Manjaro user and community contributor to O3DE. Unsurprisingly, I ran into this error when trying to install from the package in the AUR. Since I'd much rather work on Manjaro than either Ubuntu or Windows, I decided to dig into the issue and see if I could figure out the source of the issue. After reading through the trail left here and in the O3DE Discord, and looking through the O3DE code and finding nothing non-standard about the scripts I have access to, I hopped over to the Manjaro forums to ask about the runpath thing you found. Here's what I found out:
Given these three things, that means the issue most likely does, in fact, lie somewhere within the AUR package script, since if it was an issue with the O3DE build, itself, at the very least, the .deb download test wouldn't work, and likely neither would the source build. So, I started digging through the scripts and checking with my install logs, and comparing it with the .deb scripts. In doing so, I noticed that in the o3de.install file, you have this bit: if [ ! "$(logname 2>&1 >/dev/null)" ]; then
_user=$(logname)
_group=$(id -g -n ${_user})
else
_user=root
_group=root
fi In my log, I'm getting warnings from pip not to run as root, which means this is resolving to I'm no package maintainer, so I don't really know what the proper fix for this ought to be, but this does seem to be the root cause. |
Thanks for digging into all this! I was never able to exactly reproduce the issue but it seems then that the runpath stuff was all a red herring after all. I can see where there could be some holes in the current approach with Without being able to trust we can get a non-root user name to chown with, my idea for a more robust solution is to create a system user account take over the directory. I think I have seen this before in an AUR package, but not sure if its the most ideal. If we were to do that as a last resort we might do something like:
|
It's just stock Pamac (version 11.7.1-1, in case it matters). I started with Gnome Minimal image from the site, then attempted to install O3DE using the Pamac GUI. Looking at my |
Another update on this -- something I noticed early on is that vanilla Arch users mentioned it worked fine. Likewise, installing from basically any method other than Pamac worked. This caught aarhus's attention. Indeed, by doing it "the Arch way" described in his response, it works as expected, meaning it's in the way Pamac handles the script user stuff. |
So after looking more into the system user option, I have scrapped that as it could just introduce more permission issues when the python script or potentially other parts of the engine generate new files. For example, hitting permission issues when trying to create a new o3de project. I spent some time then messing with pamac to see if there's another way to determine the correct user to chown and runas and was able to get it working in the latest update. It might not account for all possible installation methods but is certainly a step more robust than before. |
fails to open with:
o3de: symbol lookup error: /opt/O3DE/22.10.0/bin/Linux/profile/Default/libAzQtComponents.so: undefined symbol: _ZN16QStyleSheetStyle16staticMetaObjectE, version Qt_5_PRIVATE_API
Operating System: Manjaro Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.15-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 3800X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
ldd_libAzQtComponents.so.txt
The text was updated successfully, but these errors were encountered: