executable

Reducing GCC target EXE code size?

走远了吗. 提交于 2019-12-05 08:36:46
When I compiled a no-op program: int main(void) { return 0; } with various compilers: GCC (similar result to LLVM as well): Gave a 10-KiB executable (compiled with -s ) Sections: .CRT , .bss , .data , .idata , .rdata , .text , .tls Depends on msvcrt.dll and kernel32.dll MSVC 2010: Gave a 5.5 KiB executable (compiled with /MD /Ox ) Sections: .data , .rdata , .reloc , .text Depends on msvcr100.dll and kernel32.dll Could have been further reduced by merging .rdata with .text Windows Driver Kit 7.1: Gave a 6.5 KiB executable (compiled with /MD /Ox , linked with msvcrt_winxp.obj to allow it to run

Creating Jar file - doesn't work on other computers

只愿长相守 提交于 2019-12-05 07:44:59
I'm trying to package my program into a JAR file so it can be used on multiple computers. My program is composed of start.java , userinterface.java and writer.java . The program, written in Eclipse, works perfectly on my computer. When exported, it will work on my computer but cause the following error on other computers: "Could not find the main class: start. Program will exit". Again, my program runs fine on my computer when I double click on it. I've tried creating the JAR file via command prompt, and my Manifest file is correct. What is happening? This is a very strange bug which I've also

Create a Python executable with chromedriver & Selenium

若如初见. 提交于 2019-12-05 06:22:02
问题 I have created a small web scraping app using Selenium & chromedriver for a project that outputs the content into an excel file. The people I did this app for unfortunately aren't the most tech-savvy. So my question is how can I share this app with these people? I looked into py2exe.org, but it doesn't take the chromedriver into account when creating the executable. Any better ways of doing this, without these people having to add the files manually to their "usr/bin"? 回答1: You can do this

py2exe the following modules appear to be missing

☆樱花仙子☆ 提交于 2019-12-05 05:43:10
As the title says, when I'm trying to use py2exe to create a Windows executable file, I get this error: The following modules appear to be missing ['Carbon', 'Carbon.Files', 'ElementC14N', 'OpenSSL.SSL', '_frozen_importlib', '_imp', '_scproxy', '_sysconfigdata', 'backports.ssl_match_hostname', 'builtins', 'certifi', 'charade.universaldetector', 'configparser', 'datrie', 'genshi.core', 'html', 'html.entities', 'html.parser', 'http', 'http.client', 'http.cookies', 'http.server', 'importlib.machinery', 'importlib.util', 'ipaddr', 'ipaddress', 'java', 'lzma', 'ndg.httpsclient.ssl_peer_verification

How to set executable (application) icon in Linux based Qt

梦想与她 提交于 2019-12-05 05:30:29
问题 I I want to change this default icon to my desired icon. How to do this ? I have searched and found solution for Windows How to set application icon in a Qt-based project? but not for Linux. I have tried to do this using .desktop file by setting Icon = myPath/icon.icon or icon.PNG But it does not work. Any idea of how to do this ? 回答1: This question isn't really Qt related. In Linux, icons are set in the .desktop file in /usr/share/applications/ and not on the executable itself. To have an

How to generate executable of java project in eclipse [duplicate]

喜夏-厌秋 提交于 2019-12-05 05:06:59
This question already has an answer here: How can I convert my Java program to an .exe file? [closed] 13 answers How do I create an .exe for a Java program? [duplicate] 7 answers I am trying to make an executable file of my Java Application but I don't know how to do that. I know how to generate an executable jar file, but I want to make an executable application. I'm using eclipse indigo to make the java application and to generate the jar file. How to make the executable? I recommend launch4j to create executables from JAR files. ankit You can use JSMOOTH to wrap your jar file into .exe file

Making a Ubuntu executable

主宰稳场 提交于 2019-12-05 03:27:30
i have made a program in C using the gcc compiler. Right now it has no GUI components. I am compiling it with makefile and running it in the terminal. I need to deploy it so that the executable is standalone. I want the executable to have an icon and when clicked start the program in the terminal. Can anyone tell me how to do this? The basics (disclaimer: the following was tested with kubuntu, you might need to make some adjustments for your system) Actually there is a standard to do that, not just for Ubuntu but for any number of *nix systems. Consult: http://www.freedesktop.org/wiki/Howto

Shell execution: time vs. /usr/bin/time

拜拜、爱过 提交于 2019-12-05 01:34:40
What is going on when bash/zsh does the following: ~ » /usr/bin/time -l sleep 1 1.00 real 0.00 user 0.00 sys 516096 maximum resident set size 0 average shared memory size 0 average unshared data size 0 average unshared stack size 145 page reclaims 0 page faults 0 swaps 0 block input operations 0 block output operations 0 messages sent 0 messages received 0 signals received 0 voluntary context switches 2 involuntary context switches ------------------------------------------------------------ ~ » time -l sleep 1 zsh: command not found: -l -l sleep 1 0.00s user 0.00s system 52% cpu 0.001 total -

Maven plugin to create executable jar with dependencies not unpacked (jar with jars)

孤街醉人 提交于 2019-12-05 00:35:25
I read a lot of solutions to build executable jar with dependencies (maven shade plugin, maven dependency plugin, maven assembly plugin) and all of this plugins unpack dependency jars and repack them in executable jar. The only plugin that pack dependency jars unpacked in executable jar is one jar plugin but this plugin add its runner code in executable jar. Is there any solution to create jar like this: ├─executable.jar ├──lib/ ├───dependency1.jar ├───dependency2.jar . . . and that solution to work. The most common way is to use assembly plugin which will allow you to configure packaging in a

What, if any, are the implications of compiling objects with gcc -fPIC flag if they get used in executables?

爷,独闯天下 提交于 2019-12-05 00:19:28
I am putting together a makefile for a project i am working on. I have an executable and a shared library in the project. Both use some of the same source files which get compiled separately into object files. To be able to use these objects in the shared library I need to use the -fPIC (position independent code) flag in gcc. Are there any implications of compiling objects with -fPIC that get used in a executable? Compiling position-independent code when not necessary is a performance drag on some platforms (most notably, the register-starved x86 architecture, because PIC takes away a