Skip to content

Instantly share code, notes, and snippets.

@alvaro893
Last active May 10, 2021 10:08
Show Gist options
  • Save alvaro893/f5b8dd026eb98959e8c6c59a45b63cc2 to your computer and use it in GitHub Desktop.
Save alvaro893/f5b8dd026eb98959e8c6c59a45b63cc2 to your computer and use it in GitHub Desktop.
script to compile and run libqmi (works in raspberry pi)
#!/bin/bash
# instructions in INSTALL file on repository https://github.com/freedesktop/libqmi/
git clone https://github.com/freedesktop/libqmi/
cd libqmi
git checkout 1.28.2
# get dependencies libraries (Ubuntu)
sudo apt-get install glib-networking libmbim-glib-dev autoconf-archive python
# compilation
NOCONFIGURE=1 ./autogen.sh
./configure --without-udev
make
sudo make install
# start module (assuming /dev/cdc-wdm0)
sudo qmi-network /dev/cdc-wdm0 start
@alvaro893
Copy link
Author

@rma153 That's pretty old, it seems it doesn´t compile anymore on my desktop. However there is a github repo here https://github.com/freedesktop/libqmi/ and the last version is 1.28.2

It works if you follow the instructions on the repo, anyway I updated the script with what worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment