How to build minimum size QtCore without gui?
-
hello.
I have a console qt application that uses websockets to send messages in json format. And I want to run it on single board computer. So I decide to create small size image for my board.
When i build QtCore on my host I have a lib with size about 150Mb, it is too much!
So can you explain me how to build small lib without any gui and other parts? I need only base functionality and websockets. -
Are you building QtCore as a static library? If yes, then the lib size does not matter much. Linker with full optimization enabled will get from the library only what is actually used. Your main concern should be the size of the final binary, not the lib.
-
hello.
I have a console qt application that uses websockets to send messages in json format. And I want to run it on single board computer. So I decide to create small size image for my board.
When i build QtCore on my host I have a lib with size about 150Mb, it is too much!
So can you explain me how to build small lib without any gui and other parts? I need only base functionality and websockets.@Pavel-Romankov said in How to build minimum size QtCore without gui?:
When i build QtCore on my host I have a lib with size about 150Mb
Sounds like you built in debug mode.
Build in release mode.