-
Notifications
You must be signed in to change notification settings - Fork 18
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
Could not find a package configuration file provided by "Qt5Widgets". #94
Comments
Are you sure |
@vmayoral, It seems QT is not set by default in rootfs, so can you confirm that in the KR260 firmware, did you enabled QT explicitly ? If not, then there might not be any QT libs. Can you guide on how to create a new firmware with QT enabled in sysroot? |
QT's not part-of (or generally needed) an embedded ROS rootfs. It implies a significant amount of deps. and adds unnecessary weight, unless you need it, as it seems the case above. This can of course be added by re-creating the firmware artifacts again. Happy to work together with you and the team @jasvinderkhurana to recreate the firmware artifacts and include what's needed. Let's take this offline to a separate channel. Very excited and discuss this in a next collaboration. |
Hi @vmayoral, @jasvinderkhurana, I would appreciate it if you could point me to "how to create a new firmware with QT enabled in sysroot". |
@satoru-i , Can you please confirm whether you are using Ubuntu flow or Petalinux/Yocto flow ? I will check this. |
Hi @jasvinderkhurana, |
@satoru-i, Thanks for confirming.. I also find this strange because I can see the Qt5Widgets cmake at .../krs_ws/acceleration/firmware/kr260/sysroots/aarch64-xilinx-linux/usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake , but the environment is not picking up. I am looking at this and will update you as soon as I get any solution. |
@satoru-i, QT is acting differently here, though all the dependencies are available in sysroot it is somehow not able to find it. I have found one workaround to fix the cmake find problem, add dependencies(Qt5Core, Qt5Gui, Qt5Widgets) before Qt5 in CMakelists.txt of turtlesim see below:
Even after fixing Qt5Widgets error, it gives another issue:
|
Hi @jasvinderkhurana, thank you for looking into it. So I did "sudo ln -s ~/krs_ws/install/../acceleration/firmware/kr260/sysroots/aarch64-xilinx-linux/lib/ld-linux-aarch64.so.1 /lib/ld-linux-aarch64.so.1", but I got another error.
This looks like the same issue as the workaround for installing KRS. |
@satoru-i , that's right, the workaround you did is correct! And regarding your latest error, I also faced the same issue and I observed that "/home/satorui/krs_ws/acceleration/firmware/kr260/sysroots/aarch64-xilinx-linux/usr/lib/qt5/bin/moc" is an Arm binary and it is trying to be executed on x86 machine which is causing the trouble. The cmake is trying to create a .cpp file from QT. So, as a workaround I compiled the package for x86 first and this creates a moc_turtle_frame.cpp file in build folder. Take that file compile it with turtlesime source code. This is succeeding for me. I have attached the file here and see the changes done in CMakelists.txt of turtlesim below: Let me know if this is working for you as well. |
Hi @jasvinderkhurana, Thanks for letting me know the workaround. I also built it and was able to run it on the KR260. |
I tried cross-compiling turtlesim for KR260 to get used to using the KRS.
https://github.com/ros/ros_tutorials/tree/humble-devel/turtlesim
However, when I try to build with the following command, I get an error.
Qt5Widgets exists in sysroot, but how can I build an app that uses Qt5Widgets?
The text was updated successfully, but these errors were encountered: