executable

Create standalone executable from Java code for Windows, OSX and Linux all at once

廉价感情. 提交于 2019-12-08 12:57:48
问题 i'm coding a project in Java and building it with gradle. I need to keep it simple and compile it into standalone binaries for Windows, Mac and Linux. Is there anything which can build all of this binaries or must i use a separate lib (like Launch4j for Windows executables) for every single binary? I'd like to call a single "build-all-binarys"-like task in gradle and get a .exe, .app and .bin file out of it. It would be nice to have the possibility to bundle a JRE into the binary as well. 回答1

Error importing NumPy when executing an executable created with Py2exe

余生颓废 提交于 2019-12-08 10:44:11
问题 I realized my first executable with Py2exe on Windows. The script uses libraries: import os import pandas as pd import numpy as np from pandas import ExcelWriter import datetime as dt My setup file is: from cx_Freeze import setup, Executable import os import sys os.environ['TCL_LIBRARY'] = r'C:\Program Files\Continuum\Anaconda3\tcl\tcl8.6' os.environ['TK_LIBRARY'] = r'C:\Program Files\Continuum\Anaconda3\tcl\tk8.6' base = None if sys.platform == "win32": base = "Win32GUI" setup(name = "my

cx_Freeze: Executable with pytesseract fails on other PC

北战南征 提交于 2019-12-08 10:35:59
问题 I've made an executable file from my Python - OCR program ( import pytesseract ) using cx_Freeze. The resulting .exe works fine on my own machine. To test the program I made a zip-folder and shared it with some friends and colleagues on a share point. Now there is the following problem with the executable. It seems like pytesseract isn't included in the executable / zip-folder. Here is the ErrorLog: The file is not a PNG-file: 20181108 Kontaktanzeigen-Er_sucht_sie.jpg The file is not a PNG

Run another executable in my Qt app

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 08:42:51
问题 I wrote two Qt applications. One is the main and the other is a side way. I am running Linux. I read about QProcess so I wrote this code: QApplication a(argc, argv); MainWindow w; w.show(); QProcess P(&w); QString programPath; programPath= "/Documents/Qt/test1-build-desktop-Qt_4_8_1_in_PATH__System__Release/test1"; P.start(programPath); return a.exec(); However, nothing happens and just my main app ( w ) runs. What is my fault? Please help me. 回答1: the issue is that P.start(programPath); is a

Making an executable from ruby files using Ocra, LoadError?

无人久伴 提交于 2019-12-08 08:32:57
问题 I'm trying to make an executable from a couple ruby files on Windows, so I installed Ocra. I thought I understood the process of how Ocra works, but can't seem to get the executable working correctly. The problem I am having arises with "requiring" other ruby files. The ruby program by itself compiles correctly and functions how I want it to, and Ocra seems to create a working executable, however, when I attempt to run the executable, I get the following error: */custom_require.rb:36:in

Creating executable with Py2exe and matplotlib errors

时光毁灭记忆、已成空白 提交于 2019-12-08 06:23:58
问题 I have been searching this forum and many others and cannot seem to get a good method of creating an executable. I have tried several different methods (py2exe, pyinstaller and cx_freeze) and all seem to give me some kind of error. When i tried pyinstaller, I received the error that "no _imaging C module is installed". Everything I search says that it has to do with PIL, but my code is not using PIL. When I tried py2exe, I keep receiving the following error: File "Scout_Tool.py", line 18, in

Pyinstaller onefile doesn't find data files

自闭症网瘾萝莉.ら 提交于 2019-12-08 06:07:18
问题 I too am trying for the first time to build a simple --onefile exe which includes data files, but Pyinstaller doesn't seem to find them when building the .exe. A --onedir build seems to work fine. I'm using the --debug switch at this point as well. I am able to run the onefile executable and can see that it appears to start working. The program finds the (sys._MEIPASS) temp directory ok (prints the needed directory name as directed) but reports a "no such file or directory" error when it

Objective C - How to check if Executable can be launched (eg. terminal)

此生再无相见时 提交于 2019-12-08 04:49:58
问题 I am currently building an Executable handling application in Objective C and I just wanna know a simple code that can determine if an executable file can be launched (without launching it) or if it is just a loadable one. Thanks. 回答1: Once you've taken care of permission bits and whether the file is a Mach-O, there are three things you need to consider: File type CPU compatibility Fat binaries File type Whether your Mach-O is an executable, dylib, kext, etc., can be determined from a field

Execute EXE as JPG

落爺英雄遲暮 提交于 2019-12-08 04:26:47
问题 I've made a simple program in Visual Basic, then gave it JPG extension and set it up to be run from shortcut with command line cmd.exe /c my_program.jpg , according to this and this guides. Everything is fine so far, but I'd like to run my program from an image without command prompt opening. I know that such thing is possible, because I can run programs from PDF, RTF or Word documents because most of PDF files have JS API features, and Microsoft Office documents have VBA and macro support.

How to generate the backtrace by looking at the stack values?

这一生的挚爱 提交于 2019-12-08 03:54:50
问题 This question was migrated from Unix & Linux Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . Quiz : How to generate the backtrace by looking at the stack values? 0xf3e2de34 f3e2de70 c0135351 401ef021 00000000 p.bsQS...p...... 0xf3e2de44 f3e2de81 00000021 f3e2c000 f7950924 ..bs......bs...w 0xf3e2de54 00000000 401ef000 00000246 00000246 .....p..F...F... 0xf3e2de64 00000001 00000001 f7950000 f3e2df18 ...........w..bs 0xf3e2de74 c02898b5 322d7875 23203235