How to get output Screen
-
Now im trying both linux and windows, but both environment i am getting same issue, can you suggest for windows.
-
@Arasu If it is the same issue then if you solve it for one platform then same will be reflected for other platforms too. I would suggest you to solve it for your primary OS i.e Linux.
-
Also shall i know the valgrind?
-
i am working two diff system, one is window other one is linux, which is better understand?
-
@Arasu According to this there is no official port for Windows. Check Qt_creator_windows_debugging for windows. Sorry but I'm not much into Windows.
-
@Arasu Depends upon your experience with the respective OS :)
-
Sure! i will take the better one. If i have any queries i will text you.
-
Hello Friend!
Now i am working windows platform, got this error
..\ecg12i_backup\PatientList.cpp: In function 'void on_Patient_Info_List_Screen_show(PATIENT_LIST*)':
..\ecg12i_backup\PatientList.cpp:93:47: error: 'alphasort' was not declared in this scope
n = scandir(PATIENTINFODIRLOC, &namelist, 0, alphasort); //It scans for files in Directory PATIENTINFODIRLOC and put it in namelist
^
..\ecg12i_backup\PatientList.cpp:93:56: error: 'scandir' cannot be used as a function
n = scandir(PATIENTINFODIRLOC, &namelist, 0, alphasort); //It scans for files in Directory PATIENTINFODIRLOC and put it in namelist
^
..\ecg12i_backup\PatientList.cpp:102:40: error: 'rindex' cannot be used as a function
ptr = rindex(namelist[n]->d_name, '.'); -
@Arasu these are c specific issue.
scandir
is a function indirent.h
. Check if it is there for Windows and include it. -
How can i check this issue? Kindly advice me
-
@Arasu
dirent.h
usually comes with C Posix Library. Which compiler kit are you using ?
If msvc then you wont getdirent.h
. Find out a way for how to includedirent.h
on Windows. -
Hi,
seems your projects includes some Linux/UNIX specific code.
I suggest to understand if you can refactor it in order to be ported also on Windows (for example using Qt classes) -
Thanks!
Now i am only using QT creator, none other compiler.
-
@Arasu I think you must start from Qt basics. Qt Creator is not a compiler but an IDE.
Please first check whether the code can be easily compiled on Windows. What are the required dependencies ? How much effort it would require for compiling ? etc..
If not easy then better to compile it on Linux as the first hitch (scandir
) you came across can easliy be solved on Linux. -
Hi,
Qt Creator is only a IDE, to build/run a project it uses the Kit configured for it.
-
I am really sorry, i don't know these kinds of knowledge about QT Creator. Which is the compiler for both windows and linux. Let me know this for my knowledge
-
Hi,
the standard compiler for Linux is
gcc
and there is a porting of it for WindowsMinGW
.
But this doesn't mean you MUST use it (you're free to choose different compiler for each platform).
In example in my company release the same product for Windows, Linux and OSX and we use different compiler- Windows (Visual Studio)
- Linux (gcc)
- OS X (clang)
-
Thanks lot!
I will try to compile using these things.
-
Hello Friends!
C:>cd C:\Users\puavs\Desktop\Dont Delete\ecg12i_backup
C:\Users\puavs\Desktop\Dont Delete\ecg12i_backup>path=c:\windows\system32;C:\Min
GW\binC:\Users\puavs\Desktop\Dont Delete\ecg12i_backup>gcc main.cpp -o main.cpp
Main.cpp:2:24: fatal error: QApplication: No such file or directory
#include <QApplication>
^
compilation terminated. -
Now i am using minGW 4.6 compiler, Shall i know the commands to compile my .pro file also Qmake ?