You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm attempting to compile this project on a M1 Macbook pro, Macos 12.3.1. I'm getting a bunch of errors relating to the compiler not being able to find the QT Charts library.
Any suggestions to allow the compiler to find the right libs?
Here is my cmake command: cmake -DQt5_DIR=/opt/homebrew/Cellar/qt@5/5.15.5_1/lib/cmake/Qt5 -DCMAKE_CXX_STANDARD=17 ..
And here is my output, with make being run:
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.79.0/BoostConfig.cmake (found version "1.79.0")
-- Found Protobuf: /opt/homebrew/lib/libprotobuf.dylib (found version "3.21.4")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/grbman/Documents/SDR/gnss-sdr-monitor/build
grbman@grbman-MacBook-Pro-2 build % make
[ 4%] Automatic MOC and UIC for target gnss-sdr-monitor
[ 4%] Built target gnss-sdr-monitor_autogen
[ 9%] Running cpp protocol buffer compiler on /Users/grbman/Documents/SDR/gnss-sdr-monitor/src/protobuf/monitor_pvt.proto
[ 13%] Automatic RCC for resources.qrc
[ 18%] Running cpp protocol buffer compiler on /Users/grbman/Documents/SDR/gnss-sdr-monitor/src/protobuf/gnss_synchro.proto
[ 22%] Building CXX object src/CMakeFiles/gnss-sdr-monitor.dir/gnss-sdr-monitor_autogen/mocs_compilation.cpp.o
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/mocs_compilation.cpp:2:
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:10:
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/../../../../src/altitude_widget.h:38:
In file included from /opt/homebrew/Cellar/qt@5/5.15.5_1/lib/QtCharts.framework/Headers/QChartView:1:
/opt/homebrew/Cellar/qt@5/5.15.5_1/lib/QtCharts.framework/Headers/qchartview.h:43:1: error: unknown type name 'QT_CHARTS_BEGIN_NAMESPACE'
QT_CHARTS_BEGIN_NAMESPACE
^
/opt/homebrew/Cellar/qt@5/5.15.5_1/lib/QtCharts.framework/Headers/qchartview.h:89:1: error: unknown type name 'QT_CHARTS_END_NAMESPACE'
QT_CHARTS_END_NAMESPACE
^
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/mocs_compilation.cpp:2:
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:10:
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/../../../../src/altitude_widget.h:39:
In file included from /opt/homebrew/Cellar/qt@5/5.15.5_1/lib/QtCharts.framework/Headers/QLineSeries:1:
/opt/homebrew/Cellar/qt@5/5.15.5_1/lib/QtCharts.framework/Headers/qlineseries.h:37:1: error: unknown type name 'QT_CHARTS_BEGIN_NAMESPACE'
QT_CHARTS_BEGIN_NAMESPACE
^
/opt/homebrew/Cellar/qt@5/5.15.5_1/lib/QtCharts.framework/Headers/qlineseries.h:59:1: error: unknown type name 'QT_CHARTS_END_NAMESPACE'
QT_CHARTS_END_NAMESPACE
^
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/mocs_compilation.cpp:2:
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:10:
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/../../../../src/altitude_widget.h:58:5: error: use of undeclared identifier 'QtCharts'; did you mean 'QChart'?
QtCharts::QChartView *m_chartView = nullptr;
^~~~~~~~
QChart
/opt/homebrew/include/QtCharts/qchart.h:50:23: note: 'QChart' declared here
class Q_CHARTS_EXPORT QChart : public QGraphicsWidget
^
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/mocs_compilation.cpp:2:
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:10:
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/../../../../src/altitude_widget.h:58:5: error: no type named 'QChartView' in 'QChart'; did you mean simply 'QChartView'?
QtCharts::QChartView *m_chartView = nullptr;
^~~~~~~~~~~~~~~~~~~~
QChartView
/opt/homebrew/Cellar/qt@5/5.15.5_1/lib/QtCharts.framework/Headers/qchartview.h:47:23: note: 'QChartView' declared here
class Q_CHARTS_EXPORT QChartView : public QGraphicsView
^
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/mocs_compilation.cpp:2:
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:10:
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/../../../../src/altitude_widget.h:59:5: error: use of undeclared identifier 'QtCharts'; did you mean 'QChart'?
QtCharts::QLineSeries *m_series = nullptr;
^~~~~~~~
QChart
/opt/homebrew/include/QtCharts/qchart.h:50:23: note: 'QChart' declared here
class Q_CHARTS_EXPORT QChart : public QGraphicsWidget
^
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/mocs_compilation.cpp:2:
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:10:
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/../../../../src/altitude_widget.h:59:5: error: no type named 'QLineSeries' in 'QChart'; did you mean simply 'QLineSeries'?
QtCharts::QLineSeries *m_series = nullptr;
^~~~~~~~~~~~~~~~~~~~~
QLineSeries
/opt/homebrew/Cellar/qt@5/5.15.5_1/lib/QtCharts.framework/Headers/qlineseries.h:41:23: note: 'QLineSeries' declared here
class Q_CHARTS_EXPORT QLineSeries : public QXYSeries
^
In file included from /Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/mocs_compilation.cpp:2:
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:16:2: error: "This file was generated using the moc from 5.15.5. It"
#error "This file was generated using the moc from 5.15.5. It"
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:17:2: error: "cannot be used with the include files from this version of Qt."
#error "cannot be used with the include files from this version of Qt."
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:18:2: error: "(The moc has changed too much.)"
#error "(The moc has changed too much.)"
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:35:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(0, 0, 14), // "AltitudeWidget"
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:36:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(1, 15, 7), // "addData"
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:37:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(2, 23, 0), // ""
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:38:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(3, 24, 3), // "tow"
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:39:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(4, 28, 8), // "altitude"
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:40:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(5, 37, 6), // "redraw"
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:41:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(6, 44, 5), // "clear"
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:42:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(7, 50, 13), // "setBufferSize"
^
/Users/grbman/Documents/SDR/gnss-sdr-monitor/build/src/gnss-sdr-monitor_autogen/EWIEGA46WW/moc_altitude_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/CMakeFiles/gnss-sdr-monitor.dir/gnss-sdr-monitor_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/gnss-sdr-monitor.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
Hi,
I'm attempting to compile this project on a M1 Macbook pro, Macos 12.3.1. I'm getting a bunch of errors relating to the compiler not being able to find the QT Charts library.
Any suggestions to allow the compiler to find the right libs?
Here is my cmake command:
cmake -DQt5_DIR=/opt/homebrew/Cellar/qt@5/5.15.5_1/lib/cmake/Qt5 -DCMAKE_CXX_STANDARD=17 ..
And here is my output, with make being run:
The text was updated successfully, but these errors were encountered: