I'm trying to use the NetworkManager library as a c++ library in order to add wifi support in a Linux app. I am using Ubuntu 14.04 LTS.
I've tried nmcli through command line, but calling it with the app is not stable enough and prefer to use a pure c++ library.
I downloaded NetworkManager version 1.4.2 "stable". After executing autogen.sh, and make & make install, the process ends successfully.
When I restart the machine, though, I can't access Internet. Neither with wired cable or with Wifi dongle.
Is this normal? What should I do if I want to use the library in my app?
Another problem detected is that in Settings/Network there is the following message "The system network services are not compatible with this verison".
I can't even use nmcli through command line anymore. This errors appears "nmcli: error while loading shared libraries: libnm.so.0: cannot open shared object file: No such file or directory"
Edit: nmcli is solved using this post https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux. It was needed to add the library path "/usr/local/lib.
Now I can scan for Wifi with nmcli in command line, but if I try to connect, this message appears: "Error: Connection activation failed:(53) The Wi-Fi network could not be found"
Any help would be much appreciated.