Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get output Screen
Forum Updated to NodeBB v4.3 + New Features

How to get output Screen

Scheduled Pinned Locked Moved General and Desktop
44 Posts 4 Posters 13.9k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ArasuA Offline
    ArasuA Offline
    Arasu
    wrote on last edited by
    #22

    i am working two diff system, one is window other one is linux, which is better understand?

    p3c0P 1 Reply Last reply
    0
    • ArasuA Arasu

      Also shall i know the valgrind?

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #23

      @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.

      157

      1 Reply Last reply
      1
      • ArasuA Arasu

        i am working two diff system, one is window other one is linux, which is better understand?

        p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #24

        @Arasu Depends upon your experience with the respective OS :)

        157

        1 Reply Last reply
        1
        • ArasuA Offline
          ArasuA Offline
          Arasu
          wrote on last edited by
          #25

          Sure! i will take the better one. If i have any queries i will text you.

          1 Reply Last reply
          0
          • ArasuA Offline
            ArasuA Offline
            Arasu
            wrote on last edited by
            #26

            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, '.');

            p3c0P 1 Reply Last reply
            0
            • ArasuA Arasu

              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, '.');

              p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by
              #27

              @Arasu these are c specific issue. scandir is a function in dirent.h. Check if it is there for Windows and include it.

              157

              1 Reply Last reply
              1
              • ArasuA Offline
                ArasuA Offline
                Arasu
                wrote on last edited by
                #28

                How can i check this issue? Kindly advice me

                p3c0P 1 Reply Last reply
                0
                • ArasuA Arasu

                  How can i check this issue? Kindly advice me

                  p3c0P Offline
                  p3c0P Offline
                  p3c0
                  Moderators
                  wrote on last edited by
                  #29

                  @Arasu dirent.h usually comes with C Posix Library. Which compiler kit are you using ?
                  If msvc then you wont get dirent.h. Find out a way for how to include dirent.h on Windows.

                  157

                  1 Reply Last reply
                  1
                  • M Offline
                    M Offline
                    mcosta
                    wrote on last edited by
                    #30

                    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)

                    Once your problem is solved don't forget to:

                    • Mark the thread as SOLVED using the Topic Tool menu
                    • Vote up the answer(s) that helped you to solve the issue

                    You can embed images using (http://imgur.com/) or (http://postimage.org/)

                    1 Reply Last reply
                    0
                    • ArasuA Offline
                      ArasuA Offline
                      Arasu
                      wrote on last edited by
                      #31

                      Thanks!

                      Now i am only using QT creator, none other compiler.

                      p3c0P 1 Reply Last reply
                      0
                      • ArasuA Arasu

                        Thanks!

                        Now i am only using QT creator, none other compiler.

                        p3c0P Offline
                        p3c0P Offline
                        p3c0
                        Moderators
                        wrote on last edited by
                        #32

                        @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.

                        157

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mcosta
                          wrote on last edited by
                          #33

                          Hi,

                          Qt Creator is only a IDE, to build/run a project it uses the Kit configured for it.

                          Once your problem is solved don't forget to:

                          • Mark the thread as SOLVED using the Topic Tool menu
                          • Vote up the answer(s) that helped you to solve the issue

                          You can embed images using (http://imgur.com/) or (http://postimage.org/)

                          1 Reply Last reply
                          0
                          • ArasuA Offline
                            ArasuA Offline
                            Arasu
                            wrote on last edited by
                            #34

                            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

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              mcosta
                              wrote on last edited by mcosta
                              #35

                              Hi,

                              the standard compiler for Linux is gcc and there is a porting of it for Windows MinGW.
                              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)

                              Once your problem is solved don't forget to:

                              • Mark the thread as SOLVED using the Topic Tool menu
                              • Vote up the answer(s) that helped you to solve the issue

                              You can embed images using (http://imgur.com/) or (http://postimage.org/)

                              1 Reply Last reply
                              0
                              • ArasuA Offline
                                ArasuA Offline
                                Arasu
                                wrote on last edited by
                                #36

                                Thanks lot!

                                I will try to compile using these things.

                                1 Reply Last reply
                                0
                                • ArasuA Offline
                                  ArasuA Offline
                                  Arasu
                                  wrote on last edited by
                                  #37

                                  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\bin

                                  C:\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.

                                  1 Reply Last reply
                                  0
                                  • ArasuA Offline
                                    ArasuA Offline
                                    Arasu
                                    wrote on last edited by
                                    #38

                                    Now i am using minGW 4.6 compiler, Shall i know the commands to compile my .pro file also Qmake ?

                                    1 Reply Last reply
                                    0
                                    • ArasuA Offline
                                      ArasuA Offline
                                      Arasu
                                      wrote on last edited by
                                      #39

                                      Error while building project 2.2 (target: Desktop)
                                      When executing build step 'qmake'
                                      Error while building project 2.2 (target: Desktop)
                                      When executing build step 'qmake'

                                      How to solve this?

                                      1 Reply Last reply
                                      0
                                      • ArasuA Offline
                                        ArasuA Offline
                                        Arasu
                                        wrote on last edited by
                                        #40

                                        /home/dyansys/Desktop/PANS_100-build-desktop-Qt_4_8_1_in_PATH__System__Release/../PANS_100/ecg_processing.cpp:9: error: usb.h: No such file or directory

                                        Shall i know how to resolve this error

                                        1 Reply Last reply
                                        0
                                        • dheerendraD Offline
                                          dheerendraD Offline
                                          dheerendra
                                          Qt Champions 2022
                                          wrote on last edited by
                                          #41

                                          Arasu

                                          Whether your original problem is resolved ? You had some crash issue. Also this you are facing new error now. Please post the new question rather than asking in the same question.

                                          I can help you with both questions. Did you write simple program on linux platform with Qt creator ? Did it run ?

                                          -Dheerendra

                                          Dheerendra
                                          @Community Service
                                          Certified Qt Specialist
                                          http://www.pthinks.com

                                          1 Reply Last reply
                                          3

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved