简体   繁体   English

在Ubuntu中使用gcc编译qt代码

[英]compile qt code using gcc in ubuntu

I am new with Linux. 我是Linux新手。 I want to compile my code which written in qt creator using gcc in terminal. 我想在终端中使用gcc编译用qt creator创建的代码。 I don't know how should I do this task. 我不知道该怎么做。 the output will be called in Matlab. 该输出将在Matlab中调用。 please give me information in this area. 请给我这方面的信息。 I search through the internet but i didn't find useful information to solve my problem. 我通过互联网搜索,但是找不到有用的信息来解决我的问题。

Thanks 谢谢

In QT Creator select "New project" -> Non-QT project -> plain C or C++ application, you can then edit your source in QT Creator, go to a Terminal & compile it using gcc or make your own makefile. 在QT Creator中,选择“新建项目”->非QT项目->普通C或C ++应用程序,然后可以在QT Creator中编辑源代码,进入终端并使用gcc进行编译,或者创建自己的makefile。 From the Matlab instructions "The exclamation point character (!) sometimes called bang, is a shell escape. The character indicates that the rest of the input line is a command to the operating system. Use it to invoke utilities or call other executable programs without quitting MATLAB®". 在Matlab指令中,“感叹号字符(!)有时称为bang,是shell换码符。该字符表示输入行的其余部分是操作系统的命令。使用它来调用实用程序或调用其他可执行程序而无需退出MATLAB®”。

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

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