congard / nvidia-system-monitor-qt

Task Manager for Linux for Nvidia graphics cards
MIT License
161 stars 23 forks source link

Installer worked coding not giving result. help me !!! #22

Closed pradeepsimba closed 2 years ago

pradeepsimba commented 2 years ago

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

enter image description here

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

windows os

I am getting ram usage from this code.

But app list , cpu usage and process outputs are not showed.

In linux

enter image description here

In linux the cpu usage output not showed.

In Mac

enter image description here

In mac the app list output not showed.

Why this problem occured ?

congard commented 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.

pradeepsimba commented 2 years ago

what configuration do you use to compile it locally?

i.e. what qt version, what architecture

congard commented 2 years ago

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.

pradeepsimba commented 2 years ago

How to build qt shared library ?

My project

the app works perfectly if I build it as an app.

TEMPLATE = 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