Unsolved oscilloscope in qt
-
@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
-
-
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.