Skip to content

How to build qt shared library ? #126

@pradeepsimba

Description

@pradeepsimba

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions