Home » Community » Newbie corner » Static Binary
Re: Static Binary [message #37388 is a reply to message #37385] |
Sat, 29 September 2012 10:36   |
|
jheblack wrote on Sat, 29 September 2012 08:47 | Back to U++, can a newbie such as myself figure out how to include only the GUI related classes OR does everything get dumped into a U++ executable? (NOTE: I still have doubts.) I am assuming that only the used GUI classes get put into a U++ executable but because I am stupid, I have to ask here.
| The GUI classes (and lot of others too) are implemented as templates, so only those actually used are present in the resulting binary. Aside from that, U++ is modular so only those packages that you use are compiled. E.g.: if you don't need CodeEditor widget in your app, you just don't add the package and you save both compile time and result size.
jheblack wrote on Sat, 29 September 2012 08:47 | People are telling me that U++ doesn't have any dependencies I think. That is absurd, but like I said I'm stupid. I ran ldd on Linux once on a U++ executable and saw many, many foreign dependencies outside of U++ that frightened me greatly.
|
Every software has dependencies U++ has fortunately very little. On windows, it depends AFAIK only on DLLs that come with windows installation, so you don't have to distribute them. On Linux, we use a few external libraries, but all of them are standard things present on 99% of computers anyway (e.g. libpng), so it is not a big deal as well. Number of the dependencies can be reduced by using flags, most notably NOGTK flag prevents against using anything GTK related, greatly reducing the number of shared libraries used. See attached file for comparison between normal, NOGTK and command line application. There is really nothing scary in the list of libs needed to run NOGTK variant of TheIDE 
Honza
-
Attachment: ldd.txt
(Size: 5.04KB, Downloaded 306 times)
|
|
|
 |
|
Static Binary
By: jheblack on Fri, 28 September 2012 00:01
|
 |
|
Re: Static Binary
By: koldo on Fri, 28 September 2012 08:21
|
 |
|
Re: Static Binary
By: jheblack on Fri, 28 September 2012 09:19
|
 |
|
Re: Static Binary
By: jheblack on Fri, 28 September 2012 09:31
|
 |
|
Re: Static Binary
By: koldo on Fri, 28 September 2012 22:06
|
 |
|
Re: Static Binary
By: nlneilson on Fri, 28 September 2012 22:48
|
 |
|
Re: Static Binary
By: jheblack on Fri, 28 September 2012 23:43
|
 |
|
Re: Static Binary
By: dolik.rce on Sat, 29 September 2012 00:57
|
 |
|
Re: Static Binary
By: jheblack on Sat, 29 September 2012 01:32
|
 |
|
Re: Static Binary
By: dolik.rce on Sat, 29 September 2012 08:18
|
 |
|
Re: Static Binary
By: nlneilson on Sat, 29 September 2012 08:00
|
 |
|
Re: Static Binary
By: jheblack on Sat, 29 September 2012 08:47
|
 |
|
Re: Static Binary
By: dolik.rce on Sat, 29 September 2012 10:36
|
 |
|
Re: Static Binary
By: nlneilson on Sat, 29 September 2012 09:47
|
Goto Forum:
Current Time: Fri Jul 18 19:41:17 CEST 2025
Total time taken to generate the page: 0.00787 seconds
|