Installation and getting started with first app
-
lemme know if my understandings are correct…
- develop the application on one OS using QT (windows or Linux).
- Get the .exe file in Release mode on native OS (say Windows).
- Run the same code on the other desired OS (say Linux which can be the other OS of my Dual OS system and has the same SDK) and get the .exe in release mode.
- make an installable setup (write a script which can pick up the required ‘files and .exe’ by recognizing the OS during installation) which is installed and executed according to the customer specifications.
- make the customer satisfied :-)
…..i am right Gerolf ??
-
million thanks Gerolf..please be with me while learning the coding..
-
Hello Gerolf,
got a problem again..
have downloaded the Qt SDK 1.1 Beta for Linux. Tried installing it and ended up with this error..
./Qt_SDK_Lin64_offline_v1_1_beta_en.run: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./Qt_SDK_Lin64_offline_v1_1_beta_en.run) :-((
could you please help me in sorting this ?!
-
thanks for the response man..i am totally new to Linux..could you please lemme know how to fetch those info you asked ??
-
I have installed CentOS 5.5 yesterday and tried to install Qt..could you please gimme those commands to check if that lib is existing and its verson ??
-
I agree..but it happened while i tried to install Qt on Linux...help is appreciated more
-
-
thanks amn..I will go through that link now..
btw I have this compiler error when I compiled my demo app on windows using QTreeView which I am planning to display the SystemStorage info
In file included from ..\IDT_Demo_UI\main.cpp:2:
..\IDT_Demo_UI/idt_mainwindow.h:23: error: ISO C++ forbids declaration of 'QSystemStorageInfo' with no type
..\IDT_Demo_UI/idt_mainwindow.h:23: error: expected ';' before '*' token -
Gerolf...I have included
#include <QSystemStorageInfo>and this is the complete compilation report
@
Running build steps for project IDT_Demo_UI...
Configuration unchanged, skipping qmake step.Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe" -w
mingw32-make: Entering directory `E:/Bose/Qt playground/IDT_Demo_UI-build-desktop'
C:/QtSDK/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `E:/Bose/Qt playground/IDT_Demo_UI-build-desktop'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\include\QtGui" -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\include" -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\include\ActiveQt" -I"debug" -I"." -I"..\IDT_Demo_UI" -I"." -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\mkspecs\win32-g++" -o debug\main.o ..\IDT_Demo_UI\main.cpp
In file included from ..\IDT_Demo_UI\main.cpp:2:
..\IDT_Demo_UI/idt_mainwindow.h:4:30: error: QSystemStorageInfo: No such file or directory
In file included from ..\IDT_Demo_UI\main.cpp:2:
..\IDT_Demo_UI/idt_mainwindow.h:23: error: ISO C++ forbids declaration of 'QSystemStorageInfo' with no type
..\IDT_Demo_UI/idt_mainwindow.h:23: error: expected ';' before '*' token
mingw32-make[1]: Leaving directory `E:/Bose/Qt playground/IDT_Demo_UI-build-desktop'
mingw32-make: Leaving directory `E:/Bose/Qt playground/IDT_Demo_UI-build-desktop'
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make: *** [debug] Error 2
The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project IDT_Demo_UI (target: Desktop)
@When executing build step 'Make'
and this is .h file
@
#ifndef IDT_MAINWINDOW_H
#define IDT_MAINWINDOW_H#include <QSystemStorageInfo>
#include <QtGui>
#include <QMainWindow>namespace Ui {
class IDT_MainWindow;
}class IDT_MainWindow : public QMainWindow
{
Q_OBJECTpublic:
explicit IDT_MainWindow(QWidget *parent = 0);
~IDT_MainWindow();private:
Ui::IDT_MainWindow *ui;QSystemStorageInfo *sti;
};
#endif // IDT_MAINWINDOW_H
@
-
I am realy sorry vinb...I didn't get you !! how to rap with a tag ??