Skip to content

CMAKE_PREFIX_PATH for Qt5

I want to compile this which requires Qt 5.14 and I have Qt 5.12 installed from my linux repository.I just compiled Qt from source and installed it in /usr/local/Qt-6.0.0/(default location). But CMake prints the following error although I’ve added set(CMAKE_PREFIX_PATH “/usr/local/Qt-6.0.0/include…

QT diconnect from wifi

I need to disconnect from current access point. I wrote this piece of code: How can I disconnect from wifi? Or should I use C/C++ (some API) for that? Answer You can use QProcess and run system commands to connect and disconnect WiFi like below but this is Linux solution: Replace wlp3s0 with your WiFi interfa…

VScode settings.json

My understanding is that most logical way to manage my extensions ( and other stuff, I guess ) in VSCode is to edit its setting.json file. I am using Debian Linux MX Continuum 18.3 and based on what I have read on internet it should be found in ~/.config/Code/User, but there is no such file there. Answer Meth…

Upgrading `pip` removes other python’s pips

On a CentOS 7 system, I have multiple versions of Python installed, each with their own version of pip: When I ask pip3.8 to upgrade itself, it removes the installed pip3.7: Why is it doing this, and how can I prevent it? UPDATES: The lib paths are different for the two installations, as shown here: It is not…

grep a file to read a key:value

I have a file file.txt which has various key:value pairs. While reading a particular value from file, more than one lines are printed. Please help me in correcting my logic below. INPUT_FILE DESIRED_OUTPUT 1234_12345678_987 MY_CODE cat file.txt | grep -w 1234-A0 | cut -f2 -d ‘:’ OUTPUT 1234-A0;567…