I installed SciDAVis v2.1.4 from macports as it includes prerequisites automatically. Then downloaded the .tar file and try to make the installable package per install.md. But a message comes out when performing "make" with 5 errors shown as:
src/ApplicationWindow.cpp:5179:31: error: ordered comparison between pointer and zero
('const void *' and 'int')
if (labels.contains(newName)>0){
~~~~~~~~~~~~~~~~~~~~~~~~^~ src/ApplicationWindow.cpp:7855:57: error: ordered comparison between pointer and zero ('const void ' and 'int')
if (onPlot.count() > 0 && plots.contains(w->name()) <= 0 )
~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ src/ApplicationWindow.cpp:7861:96: error: ordered comparison between pointer and zero ('const void ' and 'int')
...&& plots.contains(w->name())<=0)
~~~~~~~~~~~~~~~~~~~~~~~~~^ ~ src/ApplicationWindow.cpp:7880:30: error: ordered comparison between pointer and zero ('const void ' and 'int')
if (tables.contains(tl[0])<=0)
~~~~~~~~~~~~~~~~~~~~~~^ ~ src/ApplicationWindow.cpp:10109:54: error: ordered comparison between pointer and zero ('const void ' and 'int')
else if (fList[1].contains("(Z)",Qt::CaseSensitive) > 0)
Looking up QStringList::contains, it should return a bool, so I'd say the line should read:
if(labels.contains(newName)) {
However the existing line should still be valid C++ - the boolean value gets coverted to an int (0=false, 1=true) - and then compared against 0. The compiler message is just weird.
On Wed, Aug 12, 2020 at 04:11:31AM -0000, CHUNG-YU YU wrote:
Dear all,
I installed SciDAVis v2.1.4 from macports as it includes prerequisites
automatically. Then downloaded the .tar file and try to make the installable
package per install.md. But a message comes out when performing "make" with 5
errors shown as:
src/ApplicationWindow.cpp:5179:31: error: ordered comparison between pointer
and zero
Thanks! As a beginner of the world open-source, I'm still struggling in the Mac installation since my teammate is using Origin on winbook. The message seems weird as the items installed are with right version (BTW my macOS is 10.14 Mojave). Then would you kindly advise a way the fix the bugs? Are the codes posted in one of the files SciDAVis v2.1.4?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just checked. It looks like SciDAVis 2.x has not been ported yet to
Mac. Sorry, too little time, too many unpaid tasks to do.
If you would like to tackle this task then you should upgrade Qt to
Qt5, and use the Qwt5-qt5 package available from Github. You'll need
to build the latter from source. You'll probably also need to build
QwtPlot3d from source code too. Finally, PyQt will need to be updated
to the Qt5 version.
You should also use the latest version, which is 2.3.0, or the master
head at Github, as there's a number of minor bugs that have been fixed
since 2.1.4.
If you want the easy route, you could try running the Windows build of
SciDAVis under wine - I believe it works, though I haven't tried
it. But if you want python programmability, you'll need a Linux system
- python support on Windows is still WIP.
Cheers
On Wed, Aug 12, 2020 at 12:40:58PM -0000, CHUNG-YU YU wrote:
Dear Dr Russell,
Thanks! As a beginner of the world open-source, I'm still struggling in the Mac
installation since my teammate is using Origin on winbook. The message seems
weird as the items installed are with right version (BTW my macOS is 10.14
Mojave). Then would you kindly advise a way the fix the bugs? Are the codes
posted in one of the files SciDAVis v2.1.4?
Dear all,
I installed SciDAVis v2.1.4 from macports as it includes prerequisites automatically. Then downloaded the .tar file and try to make the installable package per install.md. But a message comes out when performing "make" with 5 errors shown as:
src/ApplicationWindow.cpp:5179:31: error: ordered comparison between pointer and zero
('const void *' and 'int')
if (labels.contains(newName)>0){
~~~~~~~~~~~~~~~~~~~~~~~~^~
src/ApplicationWindow.cpp:7855:57: error: ordered comparison between pointer and zero
('const void ' and 'int')
if (onPlot.count() > 0 && plots.contains(w->name()) <= 0 )
~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
src/ApplicationWindow.cpp:7861:96: error: ordered comparison between pointer and zero
('const void ' and 'int')
...&& plots.contains(w->name())<=0)
~~~~~~~~~~~~~~~~~~~~~~~~~^ ~
src/ApplicationWindow.cpp:7880:30: error: ordered comparison between pointer and zero
('const void ' and 'int')
if (tables.contains(tl[0])<=0)
~~~~~~~~~~~~~~~~~~~~~~^ ~
src/ApplicationWindow.cpp:10109:54: error: ordered comparison between pointer and zero
('const void ' and 'int')
else if (fList[1].contains("(Z)",Qt::CaseSensitive) > 0)
Checked the installed ports it seems fine, eg. py27-sip @4.19.23_0 (active); python27 @2.7.18_1 (active); python38 @3.8.5_0 (active); qt4-mac @4.8.7_10 (active); qwt52 @5.2.3_1+qt4 (active); qwtplot3d @0.2.7_5+qt4 (active); scidavis @2.1.4_0 (active)
Any idea that I missout?
Thank you!
Last edit: CHUNG-YU YU 2020-08-12
The code at the line reads:
Looking up QStringList::contains, it should return a bool, so I'd say the line should read:
However the existing line should still be valid C++ - the boolean value gets coverted to an int (0=false, 1=true) - and then compared against 0. The compiler message is just weird.
On Wed, Aug 12, 2020 at 04:11:31AM -0000, CHUNG-YU YU wrote:
--
Dr Russell Standish Phone 0425 253119 (mobile)
Principal, High Performance Coders hpcoder@hpcoders.com.au
http://www.hpcoders.com.au
Dear Dr Russell,
Thanks! As a beginner of the world open-source, I'm still struggling in the Mac installation since my teammate is using Origin on winbook. The message seems weird as the items installed are with right version (BTW my macOS is 10.14 Mojave). Then would you kindly advise a way the fix the bugs? Are the codes posted in one of the files SciDAVis v2.1.4?
Just checked. It looks like SciDAVis 2.x has not been ported yet to
Mac. Sorry, too little time, too many unpaid tasks to do.
If you would like to tackle this task then you should upgrade Qt to
Qt5, and use the Qwt5-qt5 package available from Github. You'll need
to build the latter from source. You'll probably also need to build
QwtPlot3d from source code too. Finally, PyQt will need to be updated
to the Qt5 version.
You should also use the latest version, which is 2.3.0, or the master
head at Github, as there's a number of minor bugs that have been fixed
since 2.1.4.
If you want the easy route, you could try running the Windows build of
SciDAVis under wine - I believe it works, though I haven't tried
it. But if you want python programmability, you'll need a Linux system
- python support on Windows is still WIP.
Cheers
On Wed, Aug 12, 2020 at 12:40:58PM -0000, CHUNG-YU YU wrote:
--
Dr Russell Standish Phone 0425 253119 (mobile)
Principal, High Performance Coders hpcoder@hpcoders.com.au
http://www.hpcoders.com.au