How to add wireshark to Linux image for i.MX8.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add wireshark to Linux image for i.MX8.

Jump to solution
5,409 Views
tan-k
Contributor III

Hi,

We are testing i.MX8 with below environment.

[Environment]
Evaluation Kit : 8MMINILPD4-EVK (Connect HDMI cable, USB keyboard and USB mouse.)
Linux for i.MX : Linux 5.4.70_2.3.0

We would like to add "wireshark" in our OS image.
However, we encountered the error of do_configure when we build wireshark.
------------------------------------------------------------------------------
$ bitbake wireshark
...
-- Looking for pcap_open
-- Looking for pcap_open - not found
-- Found SYSTEMD: /home/user/imx-yocto-bsp/build-xwayland/tmp/work/aarch64-poky-linux/wireshark/1_3.0.8-r0/recipe-sysroot/lib/libsystemd.so (found version "243")
CMake Error at /home/user/imx-yocto-bsp/build-xwayland/tmp/work/aarch64-poky-linux/wireshark/1_3.0.8-r0/recipe-sysroot/usr/lib/cmake/Qt5Multimedia/Qt5MultimediaConfig.cmake:31 (message):
The imported target "Qt5::Multimedia" references the file

"/home/user/imx-yocto-bsp/build-xwayland/tmp/work/aarch64-poky-linux/wireshark/1_3.0.8-r0/recipe-sysroot/usr/lib/plugins/videoimx6vivantevideonode"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"/home/user/imx-yocto-bsp/build-xwayland/tmp/work/aarch64-poky-linux/wireshark/1_3.0.8-r0/recipe-sysroot/usr/lib/cmake/Qt5Multimedia/Qt5Multimedia_QSGVivanteVideoNodeFactory.cmake"

but not all the files it references.

Call Stack (most recent call first):
/home/user/imx-yocto-bsp/build-xwayland/tmp/work/aarch64-poky-linux/wireshark/1_3.0.8-r0/recipe-sysroot/usr/lib/cmake/Qt5Multimedia/Qt5MultimediaConfig.cmake:244 (_qt5_Multimedia_check_file_exists)
/home/user/imx-yocto-bsp/build-xwayland/tmp/work/aarch64-poky-linux/wireshark/1_3.0.8-r0/recipe-sysroot/usr/lib/cmake/Qt5Multimedia/Qt5Multimedia_QSGVivanteVideoNodeFactory.cmake:5 (_populate_Multimedia_plugin_properties)
/home/user/imx-yocto-bsp/build-xwayland/tmp/work/aarch64-poky-linux/wireshark/1_3.0.8-r0/recipe-sysroot/usr/lib/cmake/Qt5Multimedia/Qt5MultimediaConfig.cmake:253 (include)
CMakeLists.txt:1073 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/user/imx-yocto-bsp/build-xwayland/tmp/work/aarch64-poky-linux/wireshark/1_3.0.8-r0/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/imx-yocto-bsp/build-xwayland/tmp/work/aarch64-poky-linux/wireshark/1_3.0.8-r0/build/CMakeFiles/CMakeError.log".
WARNING: exit code 1 from a shell command.
------------------------------------------------------------------------------

 

The following log is in log.do_configure of qtmultimedia.
------------------------------------------------------------------------------
Checking for Vivante GPU... yes
------------------------------------------------------------------------------
This setting may cause this error?
Do we need to change configuration setting?
If so, what items do we change?

Could you please let us know how to build wireshark?

Any help would be appreciated.

Thank you.

Best regards,

0 Kudos
Reply
1 Solution
5,316 Views
tan-k
Contributor III

We can build Wireshark successfully with new version.
Our solution is only to get wireshark_3.2.7.bb from Linux 5.10.35_2.0.0​ and replace old version with new version.

View solution in original post

0 Kudos
Reply
8 Replies
5,317 Views
tan-k
Contributor III

We can build Wireshark successfully with new version.
Our solution is only to get wireshark_3.2.7.bb from Linux 5.10.35_2.0.0​ and replace old version with new version.

0 Kudos
Reply
5,265 Views
tan-k
Contributor III

To build wireshark for Qt application of GUI, we make directory "videoimx6vivantevideonode" and copy files manually.
Finally, we could build wireshark with attached recipe file.
We add "do_configure_prepend_class-target()".
We also can execute wireshark on weston.

0 Kudos
Reply
5,403 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

I build it successfully,did you build imx-image-full?

 

Best Regards

Zhiming

0 Kudos
Reply
5,399 Views
tan-k
Contributor III

Hi Zhiming,

Thank you for your reply.

You mean you add IMAGE_INSTALL_append = "wireshark" to local.conf, then build imx-image-full successfully?
In our environment, the error occurred when building wireshark.
Can you build only wireshark with "bitbake wireshark" successfully?
We cannot build in our environment.

Best regards,

0 Kudos
Reply
5,393 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

I didn't add  IMAGE_INSTALL_append = "wireshark" to local.conf

Just bitbake wireshark after i made image

0 Kudos
Reply
5,389 Views
tan-k
Contributor III

Thank you for your information.

We will do clean and try to build again.
Could you please let us know the setting "DISTRO"?
We set "DISTRO=fsl-imx-xwayland", and build.

Best regards,

0 Kudos
Reply
5,387 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Yes, it is DISTRO=fsl-imx-xwayland

0 Kudos
Reply
5,379 Views
tan-k
Contributor III

We cleaned and built again.
But we cannot build successfully.
We used "Linux 5.4.70_2.3.0" and set "MACHINE=imx8mmevk", "DISTRO= fsl-imx-xwayland".
Could you please let us know your version and settings?
Our error log is attached.
Do we need to change any settings or configure?

Best regards,

0 Kudos
Reply