当前位置: 动力学知识库 > 问答 > 编程问答 >

c++ - run OpenGL program with double-click in Linux

问题描述:

I have compiled an C++ program with g++ on Linux. The program works with OpenGL, so I don't need any console output. I just need it to run with a double-click from the user, but when trying to do this, I get:

Could not display "/home/jeanc/myprogram/myprogram.bin".

The file is of an unknown type

When I run file myprogram.bin, I get:

myprogram.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

I also tried giving it execution permission, but I did not work.

Any advice?

网友答案:

What happens when you double-click on a file is entirely the domain of the file manager you're using. I'd check its settings to see if it's been told that .bin files should be opened with another program rather than executed.

分享给朋友:
您可能感兴趣的文章:
随机阅读: