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

mobileinsight-core Ubuntu 22.04 Install Script Fails #126

Open
wesmwoo opened this issue Jan 26, 2023 · 1 comment
Open

mobileinsight-core Ubuntu 22.04 Install Script Fails #126

wesmwoo opened this issue Jan 26, 2023 · 1 comment

Comments

@wesmwoo
Copy link

wesmwoo commented Jan 26, 2023

Hello!

I'm trying to run MI 6.0.0 on a Pixel 3 (Android 9) and MI-Core on Ubuntu 22.04. I've run into a couple issues -- first with the Android application, then with the MI-Core installation, and then finally with the Vagrantbox VM.

MobileInsight APK won't load logs

After capturing log files on the Android device, I am unable to view them -- after selecting the log file I wish to open, the app gets stuck on the "Loading..." overlaid message box.

Because I couldn't view the log files in the application, I tried to install mobileinsight-core to my local machine and view them there:

mobileinsight-core Installation on Ubuntu 22.04 fails on ws_dissector build

When I run the ./install-ubuntu.sh, I run into a problem with the qt5-default not being available on Ubuntu 22.04, so I replaced it with qtbase5-dev qt5-qmake and the apt install proceeds fine.

Then, I run into build issues with the ws_dissector C++ program, where I get a long list of these errors.

...
In file included from ws_dissector.cpp:4:
/home/wesley/usr/mobileinsight-core/wireshark-3.4.0/epan/epan.h:14:1: note: ‘extern "C"’ linkage started here
   14 | extern "C" {
      | ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/glib-typeof.h:39,
                 from /usr/include/glib-2.0/glib/gatomic.h:28,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /home/wesley/usr/mobileinsight-core/wireshark-3.4.0/epan/epan.h:17,
                 from ws_dissector.cpp:4:
/usr/include/c++/11/type_traits:3148:1: error: template with C linkage
 3148 | template <typename _Tp>
      | ^~~~~~~~
...

These errors are thrown on this line:

g++ ws_dissector.cpp packet-aww.cpp -o ws_dissector `pkg-config --libs --cflags glib-2.0` \
    -I"${WIRESHARK_SRC_PATH}" -L"${PREFIX}/lib" -lwireshark -lwsutil -lwiretap 

After some googling, it looked like there was no straightforward fix for this, so I tried to use the Vagrantbox VM:

Vagrantbox VM configuration file out of date

I have also tried to use the Virtualbox VM, but I run into error with the Vagrantfile configuration:

The box you're attempting to add has no available version that
matches the constraints you requested. Please double-check your
settings. Also verify that if you specified version constraints,
that the provider you wish to use is available for these constraints.

Box: bento/ubuntu-16.04
Address: https://vagrantcloud.com/bento/ubuntu-16.04
Constraints: 201708.22.0
Available versions: 201801.02.0, 201802.02.0, 201803.24.0, 201806.08.0, 201906.18.0, 201912.15.0, 202002.04.0, 202005.12.0, 202005.19.0, 202005.21.0, 202007.17.0, 202008.16.0, 202010.14.0, 202010.21.0, 202010.24.0, 202012.21.0, 202012.23.0, 202102.02.0, 202103.19.0, 202104.19.0, 202110.25.0, 202110.26.0, 202112.19.0, 202212.11.0

I've played around with changing 201708.22.0 to 201801.02.0, and get:

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000,_netdev vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: Invalid argument

I tried to fix this issue following this stack overflow thread, but got a whole new host of issues and gave up.

Thank you in advance for any insight! My main issue is with setting up mobileinsight-core on Ubuntu 22.04, so this felt like the right forum to post.

@NeutrinoLiu
Copy link

solve the "error: template with C linkage" with a patch onto wireshark-3.4.0
ws-Moving-glib.h-out-of-extern-C.patch

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