Unsolved oscilloscope in qt
-
If anyone has project oscilloscope in qt
plz reply
Iet me know I want that project -
Hi,
Take a look here
-
@SGaist Thank you bro for the reply,
if I download the project from this website:https://sourceforge.net/projects/qtoscilloscope/
When I do compile in Qt it says dwf.h (header file ) not found
help me in this thing bro -
Read the "INSTALL" file of that project: https://sourceforge.net/p/qtoscilloscope/code/HEAD/tree/trunk/INSTALL
-
@VRonin Thank you !! bro
I checked it I have to install those files
thanks again -
@SGaist @VRonin I read this https://sourceforge.net/p/qtoscilloscope/code/HEAD/tree/trunk/INSTALL , they did n't tell where files : libfftw3 Fourier transformation library
libdwf Digilent Waveform SDK for example version 3 +
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,66,849&Prod=WAVEFORMS
http://www.digilentinc.com/Products/Detail.cfm?Prod=ADEPT2
to be placed?
and plz tell me where to be placed and
qmake is successful but when build it says : /usr/bin/ld: cannot find -ldwf
/usr/bin/ld: cannot find -lfftw3
plz help me what do -
Depends on your OS, for Debian install the package named
libfftw3-dev
-
@SGaist but What about this error Bro:
error: cannot find -ldwf -
http://doc.qt.io/qt-5/third-party-libraries.html
http://doc.qt.io/qtcreator/creator-project-qmake-libraries.htmlBasically you need to add tha path to
dwf
to yourPATH
enviromental variable -
@SGaist , @VRonin bro I tried to add lib to Qt project still errors
plz help this is the last error :
o/p:
/usr/bin/ld: skipping incompatible /home/mmrfic/Downloads/digilent.waveforms_3.7.5_i386/usr/lib//libdwf.so when searching for -ldwf
Makefile:316: recipe for target 'qt-oscilloscope' failed
/usr/bin/ld: cannot find -ldwf
collect2: error: ld returned 1 exit status
make: *** [qt-oscilloscope] Error 1
14:36:13: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project qt-oscilloscope (kit: Desktop Qt 5.9.0 GCC 64bit)
When executing step "Make" -
@VRonin said in oscilloscope in qt:
Basically you need to add tha path to dwf to your PATH enviromental variable
-
@VRonin Does environment variable have to be -ldwf? or just dwf?
-
@thippu Ok, let's take a different approach. See in http://doc.qt.io/qt-5/third-party-libraries.html the part where it says
LIBS += -L"3rdparty/CatWhisperer/lib" -lCatWhisperer
?
Your program will probably just have something likeLIBS += ldwf
so you need to ass the-L
part in front of it -
@VRonin Do I have to open terminal and use
export
command to set system enviornment variable in ubuntu? -
@thippu like that or in side Qt itself?
-
@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 ```
-
-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
ordwf.a
(sorry I don't remember the estension of gcc libraries)? - You probably have to do the same for
-lfftw3
-
@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
-
@VRonin said in oscilloscope in qt:
- does "digilent.waveforms_3.7.5_i386/usr/lib
contain a file called
dwf.libor
dwf.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
- does "digilent.waveforms_3.7.5_i386/usr/lib
-
@thippu said in oscilloscope in qt:
yes, It has file dwf.h
Nope. it must be a compiled binary, not a header