BatchDrake / SuWidgets

Sigutils-related widgets
GNU General Public License v3.0
11 stars 10 forks source link

Build Error #32

Open nerdlikeme opened 3 months ago

nerdlikeme commented 3 months ago

I am getting this error while building SuWidgets which is a requirement before installation of SigDigger. I am using QT 5.12 and building on Raspberry OS. Kindly guide as building QT 5.12 itself took me 2 days on RPI and now this.

Make -f Makefile.Release make[1]: Entering directory '/home/pi/SuWidgets' /usr/lib/qt5/bin/uic ColorChooserButton.ui -o ui_ColorChooserButton.h /usr/lib/qt5/bin/uic FrequencySpinBox.ui -o ui_FrequencySpinBox.h /usr/lib/qt5/bin/uic TimeSpinBox.ui -o ui_TimeSpinBox.h /usr/lib/qt5/bin/uic MultiToolBox.ui -o ui_MultiToolBox.h g++ -c -pipe -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -D_SU_SINGLE_PRECISION -DHAVE_VOLK -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtOpenGL -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtCore -Irelease -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -o release/ctkRangeSlider.o ctkRangeSlider.cpp g++ -c -pipe -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -D_SU_SINGLE_PRECISION -DHAVE_VOLK -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtOpenGL -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtCore -Irelease -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -o release/LCD.o LCD.cpp g++ -c -pipe -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -D_SU_SINGLE_PRECISION -DHAVE_VOLK -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtOpenGL -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtCore -Irelease -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -o release/Histogram.o Histogram.cpp g++ -c -pipe -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -D_SU_SINGLE_PRECISION -DHAVE_VOLK -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtOpenGL -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtCore -Irelease -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -o release/Constellation.o Constellation.cpp In file included from Constellation.h:28, from Constellation.cpp:21: Constellation.cpp: In member function ‘void Constellation::drawAxes()’: Constellation.cpp:101:32: error: ‘I’ was not declared in this scope; did you mean ‘PI’? 101 | SUCOMPLEX delta = SU_C_EXP(I * angle); | ^ make[1]: [Makefile.Release:546: release/Constellation.o] Error 1 make[1]: Leaving directory '/home/pi/SuWidgets' make: [Makefile:42: release] Error 2

BatchDrake commented 3 months ago

Hi.

Please make sure you are building from develop and not master. The same applies to Suscan and SigDigger.

Cheers,

El jue., 14 mar. 2024 17:41, nerdlikeme @.***> escribió:

I am getting this error while building SuWidgets which is a requirement before installation of SigDigger. I am using QT 5.12 and building on Raspberry OS. Kindly guide as building QT 5.12 itself took me 2 days on RPI and now this.

Make -f Makefile.Release make[1]: Entering directory '/home/pi/SuWidgets' /usr/lib/qt5/bin/uic ColorChooserButton.ui -o ui_ColorChooserButton.h /usr/lib/qt5/bin/uic FrequencySpinBox.ui -o ui_FrequencySpinBox.h /usr/lib/qt5/bin/uic TimeSpinBox.ui -o ui_TimeSpinBox.h /usr/lib/qt5/bin/uic MultiToolBox.ui -o ui_MultiToolBox.h g++ -c -pipe -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -D_SU_SINGLE_PRECISION -DHAVE_VOLK -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtOpenGL -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtCore -Irelease -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -o release/ctkRangeSlider.o ctkRangeSlider.cpp g++ -c -pipe -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -D_SU_SINGLE_PRECISION -DHAVE_VOLK -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtOpenGL -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtCore -Irelease -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -o release/LCD.o LCD.cpp g++ -c -pipe -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -D_SU_SINGLE_PRECISION -DHAVE_VOLK -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtOpenGL -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtCore -Irelease -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -o release/Histogram.o Histogram.cpp g++ -c -pipe -O2 -std=gnu++1y -Wall -Wextra -D_REENTRANT -fPIC -D_SU_SINGLE_PRECISION -DHAVE_VOLK -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtOpenGL -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtCore -Irelease -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -o release/Constellation.o Constellation.cpp In file included from Constellation.h:28, from Constellation.cpp:21: Constellation.cpp: In member function ‘void Constellation::drawAxes()’: Constellation.cpp:101:32: error: ‘I’ was not declared in this scope; did you mean ‘PI’? 101 | SUCOMPLEX delta = SU_C_EXP(I * angle); | ^ make[1]: [Makefile.Release:546: release/Constellation.o] Error 1 make[1]: Leaving directory '/home/pi/SuWidgets' make: [Makefile:42: release] Error 2

— Reply to this email directly, view it on GitHub https://github.com/BatchDrake/SuWidgets/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEVETZDQDZFN2BMCUS2JXLYYHHKJAVCNFSM6AAAAABEWOYNGGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4DMOBRGA2TGNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

nerdlikeme commented 3 months ago

I am using this link https://github.com/BatchDrake/SuWidgets, where is the develop version

BatchDrake commented 3 months ago

Exactly in that link, but you have to clone from develop and not master, using -b develop

Nonetheless, I recommend you download my automated build script ( https://actinid.org/blsd), give it execution permissions and run it from terminal as-is. It will build SigDigger inside a folder in the working directory.

Cheers,

El jue., 14 mar. 2024 17:51, nerdlikeme @.***> escribió:

I am using this link https://github.com/BatchDrake/SuWidgets, where is the develop version

— Reply to this email directly, view it on GitHub https://github.com/BatchDrake/SuWidgets/issues/32#issuecomment-1997902162, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEVETY63MSVZRWMRCSMBDLYYHIRJAVCNFSM6AAAAABEWOYNGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJXHEYDEMJWGI . You are receiving this because you commented.Message ID: @.***>

nerdlikeme commented 3 months ago

Was successfully able to build SuWidgets and SigDigger through blsd script. But when I run SigDigger with my PI user, my RSPDX SDR is recognised but when I try to capture something I get this error "Failed to open RX stream on SDR Device". When I run the same through as root the device is recognised and capture is successfully done but no audio can be heard and when I stop the capture the app exits without any prompt and "Segmentation fault" error message can be seen on the screen.