(C++) HelloWorldQtCreatorLubuntu
February 24, 2017 · View on GitHub
(C++) HelloWorldQtCreatorLubuntu
Hello World using Qt Creator under Lubuntu is Hello World program using the Qt Creator IDE under Lubuntu.
Technical facts
Operating system(s) or programming environment(s)
Lubuntu 15.04 (vivid)
Qt Creator 3.1.1
- G++ 4.9.2
Libraries used:
Qt project file: ./CppHelloWorldQtCreatorLubuntu/CppHelloWorldQtCreatorLubuntu.pro
QT += core QT -= gui CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp
./CppHelloWorldQtCreatorLubuntu/main.cpp
#include <iostream> int main() { std::cout << "Hello World\n"; }
./CppHelloWorldQtCreatorLubuntu/CppHelloWorldQtCreatorLubuntu.sh
#!/bin/bash mymake="make" myqmake="qmake" mytarget="CppHelloWorldQtCreatorLubuntu" myprofile=$mytarget.pro if [ ! -e $myprofile ] then echo "Qt Creator project '$myprofile' not found" exit fi $myqmake $myprofile if [ ! -e Makefile ] then echo $mytarget": FAIL" exit fi $mymake if [ -e $mytarget ] then echo $mytarget": SUCCESS" else echo $mytarget": FAIL" fi #Cleaning up rm *.o rm Makefile rm $mytarget