|
|
Home » Community » Newbie corner » Static Binary
Static Binary [message #37367] |
Fri, 28 September 2012 00:01 |
jheblack
Messages: 12 Registered: September 2012
|
Promising Member |
|
|
What Non-BSD licensed libraries are compiled into an U++ static binary?
|
|
|
|
|
|
|
|
Re: Static Binary [message #37377 is a reply to message #37376] |
Fri, 28 September 2012 23:43 |
jheblack
Messages: 12 Registered: September 2012
|
Promising Member |
|
|
Hello nlneilson
Thanks for that part about DE-compilation though my fascination is not that but 'tampering' of the Static Binary's textual data. There are too many tales about changing strings in binaries so that is why.
@KOLDO, Thank you! Do your "naked" executables take up more than 10 Mega-bytes??? 'Qt' had my hopes up until I personally "Did The Math" to determine that in order to deploy 'Qt' as a deliverable, it would not be less than 10 Mega-bytes... Too bad for 'Qt'... I switched to Boost/Standard C++/ICU instead for all but the GUI; after wasting time on the GUI OR WHATEVER.
10 Mega-bytes is my 'absolute', hard file size top-- by the way for the "naked" executable -- combined and all DLLs that must be deployed. Why? It is a business decision.
[Updated on: Fri, 28 September 2012 23:55] Report message to a moderator
|
|
|
Re: Static Binary [message #37378 is a reply to message #37377] |
Sat, 29 September 2012 00:57 |
|
jheblack wrote on Fri, 28 September 2012 23:43 | 10 Mega-bytes is my 'absolute', hard file size top-- by the way for the "naked" executable -- combined and all DLLs that must be deployed. Why? It is a business decision.
|
TheIDE, which is quite complex application, takes up 5.1 MB on windows. No additional libraries are necessary
Honza
|
|
|
|
Re: Static Binary [message #37382 is a reply to message #37367] |
Sat, 29 September 2012 08:00 |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
What physical platform are you on?
In another post you mentioned Lubuntu OS.
If your unit had access for a micro SD card the size of your app would be almost irrelevant.
I was concerned about size before wasting time getting a primary app below 5MB and now 10MB with no concern. Then a few U++ apps at ~1-2MB.
On a micro SD card of 32GB and 9GB of data the app sizes are not much of a concern. Even the smart phones with 4G the time to transfer an app of 10-20MB is not a problem.
What is the main constraint that keeps you at 10MB?
edit: Regardless of what your app is intended to be used on don't you have access to something else to do your programming on?
What is the size of the jre/JVM needed?
I tinkered with Excelsior JET which is very good at keeping the total size down for an app but it is expensive. There are others:
http://en.wikipedia.org/wiki/List_of_Java_virtual_machines
Java in some respects is easier to program with than C++ but using U++ (once you get familiar with it) that is a different story.
As I mentioned in a previous post it is a matter of choice.
[Updated on: Sat, 29 September 2012 09:14] Report message to a moderator
|
|
|
Re: Static Binary [message #37384 is a reply to message #37379] |
Sat, 29 September 2012 08:18 |
|
jheblack wrote on Sat, 29 September 2012 01:32 | Hello Honza
On windows, TheIDE is 5.1 MB without compression; uncompressed?
| It is what comes out from MSVC compiler, with no further actions applied, so I believe it is uncompressed.
Honzs
|
|
|
|
Re: Static Binary [message #37387 is a reply to message #37367] |
Sat, 29 September 2012 09:47 |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
It seems like you are pretty sharp.
Google's 10MB clarifies the size.
The GUI code is usually included in the U++ .exe
Without an idea of what kind of GUI you intend to use it is hard to even guess.
A micro SD card is about 1/2 x 3/8 x 1/32 inch, quite small.
Many cell phones use them for the camera photos.
Most tablet, slate. etc. have slots for SD cards, some full size but when you buy a micro it usually comes with an adapter.
32GB micro on sale at Fry's for $12.
One exception is many Apple devices where they charge by installed memory, no sd slot more $$$.
[Updated on: Sat, 29 September 2012 10:14] Report message to a moderator
|
|
|
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 263 times)
|
|
|
Goto Forum:
Current Time: Mon Jun 17 09:04:12 CEST 2024
Total time taken to generate the page: 0.01508 seconds
|
|
|