Unsolved oscilloscope in qt
-
@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
-
-
yes
so you have to change-ldwf
to-llibdwf
also -
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...
-
@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/ -
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.