Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build qt shared library ? #126

Open
pradeepsimba opened this issue Jun 1, 2022 · 0 comments
Open

How to build qt shared library ? #126

pradeepsimba opened this issue Jun 1, 2022 · 0 comments

Comments

@pradeepsimba
Copy link

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

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 compile the same code as a shared lib 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 as a TEMPLATE = app.

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.

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

Why this problem occured ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant