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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
5,417 次查看
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 项奖励
回复
1 解答
5,324 次查看
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 项奖励
回复
8 回复数
5,325 次查看
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 项奖励
回复
5,273 次查看
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 项奖励
回复
5,411 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

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

 

Best Regards

Zhiming

0 项奖励
回复
5,407 次查看
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 项奖励
回复
5,401 次查看
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 项奖励
回复
5,397 次查看
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 项奖励
回复
5,395 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Yes, it is DISTRO=fsl-imx-xwayland

0 项奖励
回复
5,387 次查看
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 项奖励
回复