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
While trying to build this plugin the build stops with this error:
`Building Dead Reckoning Plugin.....
Checking for Pre-Existing Dead Reckoning Plugin Folder.....
Checking to see if you have the latest updates...
From git://github.com/Rasbats/DR_pi d110497..4b3dc7e master -> origin/master
[new tag] v1.0 -> v1.0
Updating d110497..4b3dc7e
Fast-forward
src/DRgui_impl.cpp | 88 +++++----
src/DRgui_impl.h | 12 +-
src/NavFunc.cpp | 517 +++++++++++++++++++++++++++++++++++++++++++++--------
src/NavFunc.h | 31 +++-
4 files changed, 519 insertions(+), 129 deletions(-)
Checking for DR_pi build directory.....
Removing CMakeCache.txt from build directory for a fresh build.....
Configuring Dead Reckoning Plugin with Cmake.....
-- *** Staging to build DR_pi ***
-- Found wxWidgets: TRUE
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/arm-linux-gnueabihf/libX11.so
-- Found OpenGL: /usr/lib/arm-linux-gnueabihf/libGL.so
-- Found OpenGL...
-- Lib: /usr/lib/arm-linux-gnueabihf/libGLU.so/usr/lib/arm-linux-gnueabihf/libGL.so/usr/lib/arm-linux-gnueabihf/libSM.so/usr/lib/arm-linux-gnueabihf/libICE.so/usr/lib/arm-linux-gnueabihf/libX11.so/usr/lib/arm-linux-gnueabihf/libXext.so
-- Include: /usr/include
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.3")
-- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabihf/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabihf/libbz2.so - found
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.8")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/build
Configuring with cmake of Dead Reckoning Plugin was Successful...
Scanning dependencies of target DR-i18n
[ 3%] DR_pi-i18n: Done.
[ 74%] Built target DR-i18n
Scanning dependencies of target DR_pi
[ 77%] Building CXX object CMakeFiles/DR_pi.dir/src/DR_pi.cpp.o
[ 80%] Building CXX object CMakeFiles/DR_pi.dir/src/DRgui_impl.cpp.o
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp: In member function ‘bool Dlg::OpenXML()’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:112:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
else if(response = wxID_CANCEL){
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:94:6: warning: unused variable ‘my_count’ [-Wunused-variable]
int my_count = 0;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp: In member function ‘void Dlg::Calculate(wxCommandEvent&, bool, int)’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:294:7: warning: unused variable ‘routepoints’ [-Wunused-variable]
int routepoints = n+1; //3
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:299:26: warning: variable ‘myLast’ set but not used [-Wunused-but-set-variable]
double remaining_dist, myLast, route_dist;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:306:8: warning: unused variable ‘skip’ [-Wunused-variable]
bool skip = false;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:307:8: warning: unused variable ‘inloop’ [-Wunused-variable]
bool inloop = false;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:308:8: warning: unused variable ‘setF’ [-Wunused-variable]
bool setF = false;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:187:6: warning: variable ‘num_hours’ set but not used [-Wunused-but-set-variable]
int num_hours;
^
[ 83%] Building CXX object CMakeFiles/DR_pi.dir/src/NavFunc.cpp.o
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp: In function ‘double fromDMStodouble(char_)’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:125:19: error: ‘abs’ is not a member of ‘std’
s = (double) (std::abs(d)) + ((double) m + s / 60.0) / 60.0;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:125:19: note: suggested alternative:
In file included from /usr/include/wx-3.0/wx/string.h:42:0,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/event.h:16,
from /usr/include/wx-3.0/wx/window.h:18,
from /usr/include/wx-3.0/wx/nonownedwnd.h:14,
from /usr/include/wx-3.0/wx/toplevel.h:20,
from /usr/include/wx-3.0/wx/dialog.h:14,
from /usr/include/wx-3.0/wx/msgdlg.h:18,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.h:36,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:27:
/usr/include/stdlib.h:775:12: note: ‘abs’
extern int abs (int x) __THROW __attribute ((const)) wur;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp: In function ‘bool destLoxodrome(double, double, double, double, double, double)’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:282:7: error: ‘abs’ is not a member of ‘std’
if (std::abs(brng - 90)< 1e-10) {
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:282:7: note: suggested alternative:
In file included from /usr/include/wx-3.0/wx/string.h:42:0,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/event.h:16,
from /usr/include/wx-3.0/wx/window.h:18,
from /usr/include/wx-3.0/wx/nonownedwnd.h:14,
from /usr/include/wx-3.0/wx/toplevel.h:20,
from /usr/include/wx-3.0/wx/dialog.h:14,
from /usr/include/wx-3.0/wx/msgdlg.h:18,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.h:36,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:27:
/usr/include/stdlib.h:775:12: note: ‘abs’
extern int abs (int x) __THROW __attribute ((const)) wur;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:286:7: error: ‘abs’ is not a member of ‘std’
if (std::abs(brng - 270) < 1e-10) {
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:286:7: note: suggested alternative:
In file included from /usr/include/wx-3.0/wx/string.h:42:0,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/event.h:16,
from /usr/include/wx-3.0/wx/window.h:18,
from /usr/include/wx-3.0/wx/nonownedwnd.h:14,
from /usr/include/wx-3.0/wx/toplevel.h:20,
from /usr/include/wx-3.0/wx/dialog.h:14,
from /usr/include/wx-3.0/wx/msgdlg.h:18,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.h:36,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:27:
/usr/include/stdlib.h:775:12: note: ‘abs’
extern int abs (int __x) __THROW __attribute ((const)) wur;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp: In function ‘void toSM_ECC(double, double, double, double, double, double)’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:379:15: warning: unused variable ‘y4’ [-Wunused-variable]
const double y4 = y3 - y30;
^
CMakeFiles/DR_pi.dir/build.make:146: recipe for target 'CMakeFiles/DR_pi.dir/src/NavFunc.cpp.o' failed
make[2]: *_* [CMakeFiles/DR_pi.dir/src/NavFunc.cpp.o] Error 1
CMakeFiles/Makefile2:153: recipe for target 'CMakeFiles/DR_pi.dir/all' failed
make[1]: *** [CMakeFiles/DR_pi.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Building Dead Reckoning Plugin Failed
Any advice on how to fix this problem?
Thanks,
Freddie
The text was updated successfully, but these errors were encountered:
While trying to build this plugin the build stops with this error:
`Building Dead Reckoning Plugin.....
Checking for Pre-Existing Dead Reckoning Plugin Folder.....
Checking to see if you have the latest updates...
From git://github.com/Rasbats/DR_pi
d110497..4b3dc7e master -> origin/master
Updating d110497..4b3dc7e
Fast-forward
src/DRgui_impl.cpp | 88 +++++----
src/DRgui_impl.h | 12 +-
src/NavFunc.cpp | 517 +++++++++++++++++++++++++++++++++++++++++++++--------
src/NavFunc.h | 31 +++-
4 files changed, 519 insertions(+), 129 deletions(-)
Checking for DR_pi build directory.....
Removing CMakeCache.txt from build directory for a fresh build.....
Configuring Dead Reckoning Plugin with Cmake.....
-- *** Staging to build DR_pi ***
-- Found wxWidgets: TRUE
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/arm-linux-gnueabihf/libX11.so
-- Found OpenGL: /usr/lib/arm-linux-gnueabihf/libGL.so
-- Found OpenGL...
-- Lib: /usr/lib/arm-linux-gnueabihf/libGLU.so/usr/lib/arm-linux-gnueabihf/libGL.so/usr/lib/arm-linux-gnueabihf/libSM.so/usr/lib/arm-linux-gnueabihf/libICE.so/usr/lib/arm-linux-gnueabihf/libX11.so/usr/lib/arm-linux-gnueabihf/libXext.so
-- Include: /usr/include
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.3")
-- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabihf/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabihf/libbz2.so - found
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.8")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/build
Configuring with cmake of Dead Reckoning Plugin was Successful...
Scanning dependencies of target DR-i18n
[ 3%] DR_pi-i18n: Done.
[ 74%] Built target DR-i18n
Scanning dependencies of target DR_pi
[ 77%] Building CXX object CMakeFiles/DR_pi.dir/src/DR_pi.cpp.o
[ 80%] Building CXX object CMakeFiles/DR_pi.dir/src/DRgui_impl.cpp.o
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp: In member function ‘bool Dlg::OpenXML()’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:112:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
else if(response = wxID_CANCEL){
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:94:6: warning: unused variable ‘my_count’ [-Wunused-variable]
int my_count = 0;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp: In member function ‘void Dlg::Calculate(wxCommandEvent&, bool, int)’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:294:7: warning: unused variable ‘routepoints’ [-Wunused-variable]
int routepoints = n+1; //3
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:299:26: warning: variable ‘myLast’ set but not used [-Wunused-but-set-variable]
double remaining_dist, myLast, route_dist;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:306:8: warning: unused variable ‘skip’ [-Wunused-variable]
bool skip = false;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:307:8: warning: unused variable ‘inloop’ [-Wunused-variable]
bool inloop = false;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:308:8: warning: unused variable ‘setF’ [-Wunused-variable]
bool setF = false;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/DRgui_impl.cpp:187:6: warning: variable ‘num_hours’ set but not used [-Wunused-but-set-variable]
int num_hours;
^
[ 83%] Building CXX object CMakeFiles/DR_pi.dir/src/NavFunc.cpp.o
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp: In function ‘double fromDMStodouble(char_)’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:125:19: error: ‘abs’ is not a member of ‘std’
s = (double) (std::abs(d)) + ((double) m + s / 60.0) / 60.0;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:125:19: note: suggested alternative:
In file included from /usr/include/wx-3.0/wx/string.h:42:0,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/event.h:16,
from /usr/include/wx-3.0/wx/window.h:18,
from /usr/include/wx-3.0/wx/nonownedwnd.h:14,
from /usr/include/wx-3.0/wx/toplevel.h:20,
from /usr/include/wx-3.0/wx/dialog.h:14,
from /usr/include/wx-3.0/wx/msgdlg.h:18,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.h:36,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:27:
/usr/include/stdlib.h:775:12: note: ‘abs’
extern int abs (int x) __THROW __attribute ((const)) wur;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp: In function ‘bool destLoxodrome(double, double, double, double, double, double)’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:282:7: error: ‘abs’ is not a member of ‘std’
if (std::abs(brng - 90)< 1e-10) {
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:282:7: note: suggested alternative:
In file included from /usr/include/wx-3.0/wx/string.h:42:0,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/event.h:16,
from /usr/include/wx-3.0/wx/window.h:18,
from /usr/include/wx-3.0/wx/nonownedwnd.h:14,
from /usr/include/wx-3.0/wx/toplevel.h:20,
from /usr/include/wx-3.0/wx/dialog.h:14,
from /usr/include/wx-3.0/wx/msgdlg.h:18,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.h:36,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:27:
/usr/include/stdlib.h:775:12: note: ‘abs’
extern int abs (int x) __THROW __attribute ((const)) wur;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:286:7: error: ‘abs’ is not a member of ‘std’
if (std::abs(brng - 270) < 1e-10) {
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:286:7: note: suggested alternative:
In file included from /usr/include/wx-3.0/wx/string.h:42:0,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/event.h:16,
from /usr/include/wx-3.0/wx/window.h:18,
from /usr/include/wx-3.0/wx/nonownedwnd.h:14,
from /usr/include/wx-3.0/wx/toplevel.h:20,
from /usr/include/wx-3.0/wx/dialog.h:14,
from /usr/include/wx-3.0/wx/msgdlg.h:18,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.h:36,
from /home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:27:
/usr/include/stdlib.h:775:12: note: ‘abs’
extern int abs (int __x) __THROW __attribute ((const)) wur;
^
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp: In function ‘void toSM_ECC(double, double, double, double, double, double)’:
/home/pi/GitOpenCPN/Seans_Plugins/DR_pi/src/NavFunc.cpp:379:15: warning: unused variable ‘y4’ [-Wunused-variable]
const double y4 = y3 - y30;
^
CMakeFiles/DR_pi.dir/build.make:146: recipe for target 'CMakeFiles/DR_pi.dir/src/NavFunc.cpp.o' failed
make[2]: *_* [CMakeFiles/DR_pi.dir/src/NavFunc.cpp.o] Error 1
CMakeFiles/Makefile2:153: recipe for target 'CMakeFiles/DR_pi.dir/all' failed
make[1]: *** [CMakeFiles/DR_pi.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Building Dead Reckoning Plugin Failed
Any advice on how to fix this problem?
Thanks,
Freddie
The text was updated successfully, but these errors were encountered: