Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An issue to install st_viewer #36

Open
sqsun opened this issue Sep 21, 2018 · 1 comment
Open

An issue to install st_viewer #36

sqsun opened this issue Sep 21, 2018 · 1 comment

Comments

@sqsun
Copy link

sqsun commented Sep 21, 2018

I got the error message when I did "make -j4" step:

~/libpath/st_viewer/src/analysis/AnalysisClustering.cpp:266:32: error: ‘QtCharts::QAbstractAxis* QtCharts::QChart::axisY(QtCharts::QAbstractSeries*) const’ is deprecated [-Werror=deprecated-declarations]
m_ui->plot->chart()->axisY()->setRange(min_y - 1, max_y + 1);
^
In file included from ~/Qt/5.12.0/gcc_64/include/QtCharts/QChart:1:0,
from ~/Qt/5.12.0/gcc_64/include/QtCharts/qchartview.h:35,
from ~/Qt/5.12.0/gcc_64/include/QtCharts/QChartView:1,
from ~/libpath/st_viewer/src/analysis/AnalysisClustering.cpp:3:
~/Qt/5.12.0/gcc_64/include/QtCharts/qchart.h:110:38: note: declared here
Q_DECL_DEPRECATED QAbstractAxis axisY(QAbstractSeries series = nullptr) const;
^~~~~
~/libpath/st_viewer/src/analysis/AnalysisClustering.cpp:267:32: error: ‘QtCharts::QAbstractAxis
QtCharts::QChart::axisY(QtCharts::QAbstractSeries
) const’ is deprecated [-Werror=deprecated-declarations]
m_ui->plot->chart()->axisY()->setTitleText(tr("TSNE/PCA 2"));
^
In file included from ~/Qt/5.12.0/gcc_64/include/QtCharts/QChart:1:0,
from ~/Qt/5.12.0/gcc_64/include/QtCharts/qchartview.h:35,
from ~/Qt/5.12.0/gcc_64/include/QtCharts/QChartView:1,
from ~/libpath/st_viewer/src/analysis/AnalysisClustering.cpp:3:
~/Qt/5.12.0/gcc_64/include/QtCharts/qchart.h:110:38: note: declared here
Q_DECL_DEPRECATED QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const;
^~~~~
cc1plus: all warnings being treated as errors
src/analysis/CMakeFiles/analysis.dir/build.make:134: recipe for target 'src/analysis/CMakeFiles/analysis.dir/AnalysisClustering.cpp.o' failed
make[2]: *** [src/analysis/CMakeFiles/analysis.dir/AnalysisClustering.cpp.o] Error 1
CMakeFiles/Makefile2:1081: recipe for target 'src/analysis/CMakeFiles/analysis.dir/all' failed
make[1]: *** [src/analysis/CMakeFiles/analysis.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

@aerickso
Copy link

aerickso commented May 7, 2019

I ran into this issue today while installing STViewer on a fresh install of Ubuntu 18.04 and QT Version 5.12.0.

After reading the installation documentation, I removed QT, and installed version 5.9.2 (matching the documentation). I also ensured that I clicked the arrow in the QT Installation Tool and selected QT Charts.

I hope this helps solve this specific problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants