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. oscilloscope in qt
Forum Updated to NodeBB v4.3 + New Features

oscilloscope in qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
25 Posts 4 Posters 6.7k Views 1 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.
  • T Offline
    T Offline
    thippu
    wrote on last edited by
    #16

    @VRonin , @SGaist this qmake I have changed plz tell this right or not?
    qmake file:

    # Automatically generated by qmake (2.01a) Sat Dec 13 16:33:29 2014
    ######################################################################
    QT       += core gui widgets serialport multimedia multimediawidgets printsupport datavisualization charts
    
    TEMPLATE = app
    TARGET = qt-oscilloscope
    DEPENDPATH += .
    INCLUDEPATH += .
    INCLUDEPATH += /usr/local/include/digilent/waveforms
    INCLUDEPATH += /usr/include/digilent/waveforms
    INCLUDEPATH +=/home/mmrfic/Desktop/qt-oscilloscope-1.0
    CONFIG += qt
    
    
    LIBS +=-l "digilent.waveforms_3.7.5_i386/usr/lib" -ldwf
    
    LIBS+=-lfftw3
    
    # Input
    HEADERS += Horizontal.hh MainWindow.hh Trigger.hh Tube.hh Vertical.hh
    HEADERS += Color.hh Color.def file.def Cursor.hh Device.hh State.hh
    HEADERS += Wavegen.hh FftWindow.hh Analog_Discovery.hh Dummy_Device.hh
    
    SOURCES += Horizontal.cc main.cc MainWindow.cc Trigger.cc Tube.cc Vertical.cc
    SOURCES += Color.cc Cursor.cc State.cc Wavegen.cc Common.cc
    SOURCES += FftWindow.cc Analog_Discovery.cc Dummy_Device.cc ```
    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #17
      • -l "digilent.waveforms_3.7.5_i386/usr/lib" should be -L"digilent.waveforms_3.7.5_i386/usr/lib"
      • does "digilent.waveforms_3.7.5_i386/usr/lib" contain a file called dwf.lib or dwf.a (sorry I don't remember the estension of gcc libraries)?
      • You probably have to do the same for -lfftw3

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      T 2 Replies Last reply
      0
      • VRoninV VRonin
        • -l "digilent.waveforms_3.7.5_i386/usr/lib" should be -L"digilent.waveforms_3.7.5_i386/usr/lib"
        • does "digilent.waveforms_3.7.5_i386/usr/lib" contain a file called dwf.lib or dwf.a (sorry I don't remember the estension of gcc libraries)?
        • You probably have to do the same for -lfftw3
        T Offline
        T Offline
        thippu
        wrote on last edited by
        #18

        @VRonin said in oscilloscope in qt:

        • -l "digilent.waveforms_3.7.5_i386/usr/lib" should be -L"digilent.waveforms_3.7.5_i386/usr/lib"
          changes made,but again same error
        1 Reply Last reply
        0
        • VRoninV VRonin
          • -l "digilent.waveforms_3.7.5_i386/usr/lib" should be -L"digilent.waveforms_3.7.5_i386/usr/lib"
          • does "digilent.waveforms_3.7.5_i386/usr/lib" contain a file called dwf.lib or dwf.a (sorry I don't remember the estension of gcc libraries)?
          • You probably have to do the same for -lfftw3
          T Offline
          T Offline
          thippu
          wrote on last edited by
          #19

          @VRonin said in oscilloscope in qt:

          • does "digilent.waveforms_3.7.5_i386/usr/libcontain a file calleddwf.libordwf.a` (sorry I don't remember the estension of gcc libraries)?
            yes, It has file dwf.h
            will that okay bro?
          • You probably have to do the same for -lfftw3
            -lfftw3 working fine bro
          VRoninV 1 Reply Last reply
          0
          • T thippu

            @VRonin said in oscilloscope in qt:

            • does "digilent.waveforms_3.7.5_i386/usr/libcontain a file calleddwf.libordwf.a` (sorry I don't remember the estension of gcc libraries)?
              yes, It has file dwf.h
              will that okay bro?
            • You probably have to do the same for -lfftw3
              -lfftw3 working fine bro
            VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #20

            @thippu said in oscilloscope in qt:

            yes, It has file dwf.h

            Nope. it must be a compiled binary, not a header

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            T 1 Reply Last reply
            0
            • VRoninV VRonin

              @thippu said in oscilloscope in qt:

              yes, It has file dwf.h

              Nope. it must be a compiled binary, not a header

              T Offline
              T Offline
              thippu
              wrote on last edited by
              #21

              @VRonin Bro Is libdwf.so are complied binary?

              1 Reply Last reply
              1
              • VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on last edited by VRonin
                #22

                yes so you have to change -ldwf to -llibdwf also

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                aha_1980A 1 Reply Last reply
                0
                • VRoninV VRonin

                  yes so you have to change -ldwf to -llibdwf also

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #23

                  @VRonin

                  yes so you have to change -ldwf to -llibdwf also

                  Nope. If you want to link against library libxyz.so, the linker line is `-lxyz'.

                  Example: the math library libm.so is linked with -lm.

                  Don't ask me who invented this...

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  1
                  • T Offline
                    T Offline
                    thippu
                    wrote on last edited by
                    #24

                    @aha_1980 , @VRonin , @SGaist Guys thank you!
                    Whatever u said I did,I'm sorry to say this,Not executing still.
                    Idk what do,paths are working,lib exists, but not executing why?! :(
                    If you try this on u r machine letme know if it works link:
                    https://sourceforge.net/projects/qtoscilloscope/

                    aha_1980A 1 Reply Last reply
                    0
                    • T thippu

                      @aha_1980 , @VRonin , @SGaist Guys thank you!
                      Whatever u said I did,I'm sorry to say this,Not executing still.
                      Idk what do,paths are working,lib exists, but not executing why?! :(
                      If you try this on u r machine letme know if it works link:
                      https://sourceforge.net/projects/qtoscilloscope/

                      aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by
                      #25

                      @thippu

                      so what is your exact problem? is it a compiler/linker error: then please post the error.

                      otherwise do a ldd <program> to list the dependencies (replace <program> with the final executables name) and post that.

                      Qt has to stay free or it will die.

                      1 Reply Last reply
                      1

                      • Login

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