3,720 questions
Advice
0
votes
1
replies
20
views
Memory management of data embedded into executables
Most compiled languages provide macros for embedding data into executables (#embed in C, include_bytes! in Rust etc.) however, one thing that bothers me about them is that they put the data into ...
2
votes
1
answer
126
views
Android (Linux) libc problems when creating an execuatable shared object
I have two files:
crt.c:
const char service_interp[] __attribute__((section(".interp"))) = "${LD_SO}";
extern void _exit (int __status) __attribute__ ((__noreturn__));
int main();
...
0
votes
1
answer
84
views
How do I import mpi4py.MPI in a frozen executable?
I have a Python module that I would like to be able to run from the console, hence why I'm using pyinstaller. My module uses MPI and runs fine normally. Then I run the following:
pyinstaller my_script....
1
vote
1
answer
72
views
How many segments can be stored in win16 executable format? (very strange and unaccountable format)
Windows 16bit executable file, as we known, contains its own header and many other tables, one of those is a segment table. The header contains two fields (about segment table): segment table offset ...
6
votes
2
answers
177
views
What makes executables compiled with gcc on ARM64 larger than on x86_64?
It has been my observation that compiling the same code using gcc 12.2.0 on both Raspberry Pi OS Bookworm aarch64 and Debian Bookworm x86_64, always results in a much smaller executable on the latter. ...
3
votes
3
answers
223
views
Simple XOR loop in NASM
I am making a PE .exe packer in C and assembly. In C, I do the things like create a new .packed section header, changing Entry Point to that new section, changing sizeofimage, etc. In my C code, I ...
0
votes
0
answers
45
views
How do I use the Terminal with MacOS Executable?
Background:
I have a .command file I use as way to launch my Python GUI with the terminal as it uses input parameters from the GUI to send commands to the terminal to run 3rd party code in different ...
1
vote
1
answer
245
views
Error creating PyInstaller executable with Sentence Transformers model and Anaconda environment dependencies
I'm trying to create an executable from a Python script using PyInstaller in an Anaconda environment. My script uses the Sentence Transformers library and loads a pre-trained model from a local folder ...
0
votes
1
answer
65
views
Error while opening .net based exe : The volume for a file has been externally altered so that the opened file is no longer valid
When i try to open a exe, it shows the following error
The volume for a file has been externally altered so that the opened file is no longer valid
able to open other EXEs in that folder and checked ...
0
votes
0
answers
73
views
Compile ML model into binary
I would like to compile a Python project with an ML model into a single executable binary. This means I want the model and the weights to be in the binary with the rest of the code. The size of the ...
1
vote
1
answer
40
views
Where can I assemble my assembly file aside from TASM that supports .STACK
I am just following the book from my university to run this simple code I found as an example for my coding practice. I am new to assembly language.
The problem is that I only know how to assemble in ...
1
vote
0
answers
290
views
What (executable?) file format uses an “EDOS” magic number of “PEED”?
The original EDK contains the following macro definition (e.g. in Edk/Foundation/Efi/Include/EfiImage.h line 57):
#define EFI_IMAGE_EDOS_SIGNATURE 0x44454550 // PEED
A similar ...
2
votes
1
answer
77
views
(No such file) error - c++ linking library issue from running executable file
I have been trying to develop a simple c++ program to connect to mysql using the mysql connector/c++ library. I have been running into issues after issues. This is the next hurdle. I am new to CMake &...
0
votes
0
answers
45
views
How to generate an import library for an EXE during compilation so that it can be used as a DLL?
Similar questions have been asked over the years and the answers have always been quite literally the opposite of each other (see: here, here, here, and here). However, I have not come across answers ...
4
votes
1
answer
78
views
C++ Makefile object file doesn't exist. It needs to be manually created
I have the following Makefile for building my C++ application :
SRC_DIR := ./src
OBJ_DIR := ./obj
INC_DIR := -I./include
SRC_FILES := $(wildcard $(SRC_DIR)/*.cpp)
OBJ_FILES := $(patsubst $(SRC_DIR)/%....
-1
votes
1
answer
62
views
How to Package a Unity Application with a Python Script into a Single Executable?
I want to develop a Unity application that communicates with a Python script via socket to exchange information. However, I don’t want to run Unity and the Python script separately. Is there a way to ...
0
votes
1
answer
79
views
make python app executable on an any linux (Arch based, Debian based and Redhat based)
I don't know how to make python executable on any linux. On Windows I know how t do it, it's my first time on Linux. I turned my python script into exe with ease (auto-py-to-exe). But I don't want my ...
0
votes
0
answers
120
views
Python script to run Jupyter Notebook in loop and save results to HTML
Currently I have a jupyter notebook data analysis that I run for multiple countries and the only thing I need to do is replace the "country" variable on top with the country I desire to run ...
0
votes
2
answers
126
views
How can I inject user-specific data (like a public key) into a pre-built Go binary without needing Go installed?
I am working on a Go application that encrypts sensitive files using a public key. The goal of my project is to create a customizable encryption tool that allows users to generate an executable ...
0
votes
0
answers
75
views
Python3 Pickling Error in Multithreaded Application upon App Freezing
I have a Python 3.10.11 Application that works fine on development. However, upon freezing the application with PyInstaller (Desktop App) it gives me an error that states that "cannot pickle '...
0
votes
1
answer
171
views
ML-Agents: Environment Executables unable to train - Game is launched instead
I have ml-agents up and running. When I run mlagents-learn from the command line, and play the game from the Unity Editor - everything works fine (the agent trains). But when I build the game and try ...
0
votes
0
answers
41
views
Share a Python App bundled using PYInstaller
I have built a simple application using Python (written in atom) and bundled it using PYinstaller. The application uses some user interfaces using TKinter and scraps some data which his saved in an ...
1
vote
0
answers
32
views
Application Compiler: Not able to run this app to package Code and create an Executable in Matlab
I have a Matlab file , which defines the variables in the Simulink model and then runs it. A Simulink.SimulationInput Object is used to this end.
The code i have used is a simple one.
simIn = Simulink....
0
votes
0
answers
75
views
PDF to image render issue with Mutool.exe (MuPdf by Artifex)
I am trying to convert a sample PDF file to image which contains a special PDF objects, so-called Optional Content Groups (OCGs), where I am getting an invalid conversion in gradient colors like pink ...
1
vote
1
answer
170
views
Is it possible to run programs without any non-executable segment protection in modern Linux Kernels?
I'm dabbling in Cyber Security, particularly the topic of buffer overflows. To this end, I'm considering an example in which a buffer overflow allows an attacker to execute arbitrary code from within ...
0
votes
1
answer
90
views
Pyinstaller error - "'pyinstaller.exe' is not recognized as an internal or external command, operable program or batch file." [duplicate]
I have this tkinter code and I was trying to put it into an executable file, I have tried every method and I don't understand why, none of them work! This error in pyinstaller, how can I fix it?
"...
4
votes
0
answers
114
views
Why an Elf file with a single small segment produces an error?
I'm generating an Elf executable file. I am encountering a problem I don't understand. I've been able to reproduce the problem with a small nasm file:
bits 64
va equ 0x1000
elf_header:
db 0x7F, ...
1
vote
0
answers
95
views
Attach lldb debugger to the compiled program's executable when the main executable is not the compiled program
I am building an MPI C project in Xcode. In order to do run it, I had to:
Specify /path/to/mpiexec in Edit Scheme -> Run -> Info -> Executable, instead of the "default" one, say ...
0
votes
2
answers
172
views
Using Python to execute programs on various processors through multiprocessing
I want to run different executables on different processors at the same time, so I took example from here:
Is there a way to assign different jobs (processes) to specific core in linux using python?
...
0
votes
1
answer
222
views
Conda installed gfortran and gcc cannot compile executables
On Linux 64, after creating an environment, I installed gfortran with conda install conda-forge::gfortran. I see that it installed gfortran 14 and gcc 14. Then I installed openmpi with conda install ...
0
votes
1
answer
507
views
How to generate .bin executable file with MPLAB-X-IDE?
I am generating executable file using MPLAB_X_IDE from Microchip with compiler is XC-16.
It generates executable files .hex and .elf. However, this time I need the binary executable file. Can anybody ...
0
votes
0
answers
93
views
c++ - determine if executable that includes __DATE__, __TIME__ has changed
I am compiling dozens of executables in my Git project and I need a way to determine if a given one has actually changed so I can deploy only the changed ones.
Simple solution is to hash the exe but ...
1
vote
1
answer
76
views
r script fail to executate
I'm trying to create a shortcut that when I click on, the r script run automatically. I used instructions posted in https://www.r-bloggers.com/2015/02/making-r-files-executable-under-windows/ by Peter ...
0
votes
0
answers
34
views
How to close a third-party application if user inactivity
I have a Flutter Windows application in which an executable opens (in my case, Chrome).
After opening it, if the user remains inactive for 20 seconds, the executable should close and return to the ...
0
votes
1
answer
140
views
SFML executable throws errors and doesn't open
I have a game in SFML and built it using cmake. Now I would like to create an executable for the game. To achieve it I have built it in release mode and got the cmake-build-release directory, where I ...
2
votes
1
answer
417
views
Add interpreter to shared object without touching the code
I'm following this post, in which it is clearly shown how to add an interpreter to a shared object.
Now I'm trying to do the same but without add the line
const char interp_path[] __attribute__((...
1
vote
1
answer
47
views
MWE among object file compiled with and without `-fPIC`
I was doing some experiment with object file produced by gcc.
While I know, at least superficially, what is the use of position independent code, I was trying to spot it concretely.
I produced this ...
2
votes
1
answer
89
views
Trying to read resources of an external executable file C++
I'm trying to read resources of an external executable. I'm using Resource Tuner application and it gives me such a result:
std::filesystem::path exeSignalPath{ LR"__(c:\Users\user\AppData\Local\...
0
votes
1
answer
683
views
Compiling python project with external modules to machine code using Cython
I am looking for solution to protect source code of my project to distribute it. All projects for Windows exclusively.
I tried Nuitka and Pyarmor for this purpose. But both solutions are not ...
0
votes
1
answer
65
views
PyInstaller unable to find data file (db.sqlite) during packaging in `.spec` file
I'm working on packaging a Python project using PyInstaller. My project includes a db.sqlite file, which I need to include in the final executable. I’m using a .spec file to package the application, ...
0
votes
1
answer
155
views
PyInstaller causing a crash, PyCharm works a charm
I have someone else's Python code that I am upgrading from 3.7 to 3.12 before changing database calls to API calls. The Python code is compiled using PyInstaller into an executable to be distributed ...
0
votes
1
answer
514
views
How to update my Python executable after modifying the source script?
I have a script in python that I turned into a .exec with PyInstaller using this line:
pyinstaller.exe --onefile <path_to_python_file>
And it worked just fine.
After that I changed my script and ...
0
votes
1
answer
98
views
Correct way to manage python modules after packed into binary executable using pyinstaller
How I met the problem
I'm currently working on a way of patching/updating software remotely, without asking the users to reinstall whenever I publish an newer version
(that is, no need to repack ...
0
votes
0
answers
72
views
Python Executable to Modify Excel Files
I have a python script that generates and saves barcode pngs (using barcode-python) to a folder based on data extracted from an Excel spreadsheet (using pandas). The general issue I'm having is in ...
0
votes
1
answer
40
views
Auto-generated manifest.h does not include ProviderGuid value
I am attempting to compile an instrumentation manifest in order to build a manifest-based Windows Event Log provider. I expect the compiled manifest.h file to include a ProviderGuid symbol, as the ...
-1
votes
2
answers
75
views
VIM autocommand on executable files
I want to run a VIM command only on loading of executable files (specifically, what I want, is to add a button to the menu bar, that will run the script, aka call :!%)
The question, of course is for ...
0
votes
1
answer
54
views
Executable/installable files with electron FE and python BE
I have a problem with my current project.
I have a backend written in python which i complain with pyinstaller to an exe.
The py BE communicate with websockets with the FE written in JS/hmtl/css.
I ...
3
votes
4
answers
251
views
In Haskell on Linux, is there a way of emitting an executable file for an arbitrary IO action?
I'm looking for a function like this:
writeExecutable :: FilePath -> IO () -> IO ()
This would create an executable Linux binary file that, when run, would do the provided IO action as if it ...
-2
votes
2
answers
73
views
Setting Up Properties in a JAR Executable
I have made a program that uses multiple classes that do various tasks. Every class however will need to reference the same file path every run. So, in my jar executable I have a properties file that ...
0
votes
1
answer
86
views
How can I make an executable Bash file?
I have four Python scripts and one Excel table. I have to run the last Python script which opens a dashboard in my browser with Dash. I did this for my company and I want now that other people with no ...