I'm trying to generate an executable from Linux for Windows using pyinstaller.
pyinstaller --onefile --windowed montecarlo.py
I run this command and get a single executable that works on Linux just fine, but if I try on Windows, it's just a simple file. Why?
I was trying to do this same thing today and ran across this answer. It pointed to the FAQ, which says cross-compiling is not supported. It recommends using Wine.
Related
Is there a way to update/edit pycharm interpreters without the gui? IE editing some configuration file or something?
I am running pycharm community version 2018.2 in unix environment
The pycharm interpreter uses a defined python installation on the machine, either python or anaconda or something. I believe you can update the python via running it from it's installation location and piping or whatever you need from there.
I have exhaustively tried to get the program to compile properly on Windows, but it has been a futile struggle. However, Linux seems to handle it just fine. Using Ubuntu on WSL and running make, I get an executable which I can run in bash with ./. I would like to use this and call it in R, though I am not sure if this is possible. I can do this using a Windows executable by doing system(), however, this does not seem to translate to a Linux executable. Is there a proper way to call a Linux executable inside an R script?
To run a Linux binary in WSL from the Windows environment, use the wsl commandline utility. In R, that would look like
system2("wsl", "your_binary --arg1 --arg2 ...")
I wrote a simple code to test CUDA with Qt on Linux Ubuntu.
While running app within Qt IDE I get the following error:
However while running app from command line I don't get any erorr and all computation done by CUDA are correct.
Also while running CUDA samples from command line, everything is okay.
Also all paths in Qt .pro file are set correctly
So the question is why Qt IDE prompts me with above error?
Ok, problem fixed.
Turns out that LD_LIBRARY_PATH does not do its job.
What I did instead was:
add this
/usr/local/cuda-7.0/lib64
to
/etc/ld/so/conf
file
Run
sudo ldconfig
I hope it will help somone
So I am trying to install a program on my windows machine that required me to install Cygwin to install it. So I am working from a README file and assueme I have compiled the code previously correctly (its one line sh build.sh) and when actually trying to use the program I get the following error:
BabakP#Babak /cygdrive/c/Users/BabakP/Desktop/test
$ ./Runlock input.tst output.tst 1
./Ostrich: Exec format error. Binary file not executable.
I guess I am trying to figure out why I am getting this error so any suggestions on how to troubleshoot it would be great!
./Ostrich is a Mac executable. It can't be executed under Cygwin. (A MacOS emulator that runs under Windows or Cygwin is theoretically possible, but I don't know of any such thing.)
Without knowing the details of the software you're trying to install, it's hard to say how or whether you can fix it.
You may be able to rebuild Ostrich from source (if you have the source, and if it's not MacOS-specfic).
On my PC I'm using this bat script to compile my JavaScript project:
https://github.com/ChristianDen/fx.js/blob/master/build/compile.bat
And it works great!
Now, I want to run that on Mac using Terminal.
So far, I've renamed the script with an .sh extensions and made sure Java is installed.
I don't have a lot of Mac experience, but it won't run.
Have you any experience with this?