简体   繁体   English

在Linux中双击运行OpenGL程序

[英]run OpenGL program with double-click in Linux

I have compiled an C++ program with g++ on Linux. 我已经在Linux上使用g ++编译了一个C ++程序。 The program works with OpenGL, so I don't need any console output. 该程序可用于OpenGL,因此不需要任何控制台输出。 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: 当我运行file myprogram.bin ,我得到:

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. 我将检查其设置,以查看是否已告知.bin文件应使用其他程序打开而不是执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM