Closed pradeepsimba closed 2 years ago
Your question is not related to qnvsm
, but I can give you some advice. Firstly, check if all these commands (powershell.exe "(Get-WmiObject -Namespace root\wmi -Class WmiMonitorBrightness).CurrentBrightness"
, grep 'cpu[0-9]' /proc/stat | awk '{print $2,$4,$5}'
etc) work for you. Try to execute them in your PowerShell/Bash and compare the output with the expected (I checked and they work for me - tested on Windows 11 and Fedora 36). Secondly, you must consider that different Qt versions *sometimes* may give you different results, especially if the code is already a bit buggy. So, try to build with Qt that was used in the original binary (on Linux it is probably Qt 5.15). And finally, ask this question directly to the developer - @krogank9. Unfortunately, I cannot give you more help based on the info you provided.
what configuration do you use to compile it locally?
i.e. what qt version, what architecture
I didn't compile it locally, I just tested commands that were used in the links you provided, and for example on Windows, they work without any errors on my machine. Anyway, I am not the original developer of that app, so I cannot give you an answer to what is wrong with that code.
How to build qt shared library ?
the app works perfectly if I build it as an app.
If I create a shared lib with same code the code not gives result.
I changed TEMPLATE = app
to TEMPLATE = lib
and I compile the same code. But , the result comes an error.
code not give result as a qt shared lib
Originally posted by @Jeevasimba in https://github.com/nokeedev/gradle-native/discussions/639#discussioncomment-2860018
My question is not related to wifimouse project.
I download the app wifimouse for windows.
wifimouse app fully build with qt.
Source code of wifimouse server application
I install and run wifimouse app in my computer it works perfectly and all the options are works smoothly.
But, If I run the same code in my computer it not works properly.
For example ; In wifimouse application there is an option for brightness controling
Brightness code
error comes like this. But , it works smoothly in downloaded installer from here
Problem with qt in getting outputs.
My project
I want to get the cpu usage , ram usage ,process list and app list with qt.
In Windows
I am getting ram usage from this code.
But app list , cpu usage and process outputs are not showed.
In linux
In linux the cpu usage output not showed.
In Mac
In mac the app list output not showed.
Why this problem occured ?