Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) HelloWorldQtCreatorSliTaz

 

Hello World using Qt Creator under SliTaz is Hello World program using the Qt Creator IDE under SliTaz.

 

Technical facts

 

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

 

 

 

 

 

Qt project file: ./CppHelloWorldQtCreatorSliTaz/CppHelloWorldQtCreatorSliTaz.pro

 

######################################################################
# Automatically generated by qmake (2.01a) Wed Jul 17 19:26:57 2013
######################################################################

TEMPLATE = app
DEPENDPATH += .
INCLUDEPATH += .

# Input
SOURCES += main.cpp

 

 

 

 

 

./CppHelloWorldQtCreatorSliTaz/main.cpp

 

#include <iostream>

int main()
{
  std::cout << "Hello World\n";
}

 

 

 

 

 

./CppHelloWorldQtCreatorSliTaz/CppHelloWorldQtCreatorSliTaz.sh

 

#!/bin/bash
myfile="qmake"
mytarget="CppHelloWorldQtCreatorSliTaz"
myprofile=$mytarget.pro


if [ -e $myfile ]
then
  echo "Compiler '$myfile' found"
else
  echo "Compiler '$myfile' not found directly"
  #exit
fi

if [ -e $myprofile ]
then
  echo "Qt Creator project '$myprofile' found"
else
  echo "Qt Creator project '$myprofile' not found"
  exit
fi

echo "1/2: Creating Windows makefile"
$myfile $myprofile

if [ -e Makefile ]
then
  echo "Makefile created successfully"
else
  echo "FAIL: $myfile $myprofile"
  exit
fi

echo "2/2: making makefile"

make

if [ -e $mytarget ]
then
  echo "SUCCESS"
else
  echo "FAIL"
fi

#Cleaning up
rm *.o
rm Makefile
rm $mytarget

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml