Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 23-08-2020, 14:47   #1
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
PM- Plots and Watchdog - Fe2 updates - Errors similar

Both Plots and Watchdog have been updated to Frontend2 v1.0132 and now they are throwing the same kind of errors.
- undeclared identifier
- identifier not found
It may be because we are missing the wx include headers in some file ???

Source files:
https://github.com/rgleason/plots_pi/tree/frontend2
Branch: frontend2 All builds failing now.

https://github.com/rgleason/watchdog...mits/frontend2
Branch:frontend2 I haven't pushed the failing commit yet, but will.

Quote:
signalk_client.cpp
C:\Users\Rick\Documents\GitHub\watchdog_pi\src\wat chdog_pi.cpp(341): error C2065: 'GL_BLE
ND': undeclared identifier [C:\Users\Rick\Documents\GitHub\watchdog_pi\build\w atchdog_pi.
vcxproj]
C:\Users\Rick\Documents\GitHub\watchdog_pi\src\wat chdog_pi.cpp(341): error C3861: 'glEnab
le': identifier not found [C:\Users\Rick\Documents\GitHub\watchdog_pi\build\w atchdog_pi.v
cxproj]
C:\Users\Rick\Documents\GitHub\watchdog_pi\src\wat chdog_pi.cpp(343): error C2065: 'GL_BLE
ND': undeclared identifier [C:\Users\Rick\Documents\GitHub\watchdog_pi\build\w atchdog_pi.
vcxproj]
C:\Users\Rick\Documents\GitHub\watchdog_pi\src\wat chdog_pi.cpp(343): error C3861: 'glDisa
ble': identifier not found [C:\Users\Rick\Documents\GitHub\watchdog_pi\build\w atchdog_pi.
vcxproj]
WatchdogUI.cpp
icons.cpp
wddc.cpp
TexFont.cpp
C:\Users\Rick\Documents\GitHub\watchdog_pi\src\wdd c.cpp(223): error C2065: 'GL_TEXTURE_2D
': undeclared identifier [C:\Users\Rick\Documents\GitHub\watchdog_pi\build\w atchdog_pi.vc
xproj]
C:\Users\Rick\Documents\GitHub\watchdog_pi\src\wdd c.cpp(223): error C3861: 'glDisable': i
dentifier not found [C:\Users\Rick\Documents\GitHub\watchdog_pi\build\w atchdog_pi.vcxproj
]
C:\Users\Rick\Documents\GitHub\watchdog_pi\src\wdd c.cpp(225): error C2065: 'GL_BLEND': un
declared identifier [C:\Users\Rick\Documents\GitHub\watchdog_pi\build\w atchdog_pi.vcxproj
]
C:\Users\Rick\Documents\GitHub\watchdog_pi\src\wdd c.cpp(225): error C3861: 'glDisable': i
dentifier not found [C:\Users\Rick\Documents\GitHub\watchdog_pi\build\w atchdog_pi.vcxproj
rgleason is offline   Reply With Quote
Old 23-08-2020, 15:00   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: PM- Plots and Watchdog - Fe2 updates - Errors similar

If I add precompiled includes for wxWidgets like this as Dave suggested



Quote:
#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif //precompiled headers

Should I take these out or comment them out?
Quote:
#include <wx/wx.h>
#include <wx/stdpaths.h>
rgleason is offline   Reply With Quote
Old 23-08-2020, 15:04   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: PM- Plots and Watchdog - Fe2 updates - Errors similar

The errors still occur.


The errors below occur whether or not I have included
Quote:
#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif //precompiled headers
and weather or not I have commented out
Quote:
#include <wx/wx.h>
#include <wx/stdpaths.h>

These the functions in these errors are part of wxWidgets 'math' module. How do I directly 'include' that wx 'math' module?
rgleason is offline   Reply With Quote
Old 25-08-2020, 04:59   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: PM- Plots and Watchdog - Fe2 updates - Errors similar

I have also tried adding


#include <cmath>


Still get the same errors.
See https://github.com/OpenCPN/plugins/issues/230
rgleason is offline   Reply With Quote
Old 25-08-2020, 05:18   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: PM- Plots and Watchdog - Fe2 updates - Errors similar

Now Watchdog_pi frontend2 branch builds for windows.



In CMakeLists.txt

Quote:
# Don't use local version of GLU library
set(USE_LOCAL_GLU FALSE)
option(USE_GL "Enable OpenGL support" ON) <---- ADDED THIS LINE
message(STATUS "${CMLOC}USE_GL: ${USE_GL}")
rgleason is offline   Reply With Quote
Old 25-08-2020, 11:42   #6
Registered User

Join Date: May 2012
Posts: 1,228
Re: PM- Plots and Watchdog - Fe2 updates - Errors similar

Rick...

I don't use Jon's code for this.

My lines:

Code:
set(OpenGL_GL_PREFERENCE "LEGACY")

   set(USE_LOCAL_GLU FALSE)
This seems to work.

Mike
Rasbats is offline   Reply With Quote
Old 25-08-2020, 17:52   #7
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: PM- Plots and Watchdog - Fe2 updates - Errors similar

Thanks Mike, oddly with these two plugins, I had those and they still failed. Adding the other line seems to have fixed it.



Quote:
Originally Posted by Rasbats View Post
Rick...

I don't use Jon's code for this.

My lines:

Code:
set(OpenGL_GL_PREFERENCE "LEGACY")

   set(USE_LOCAL_GLU FALSE)
This seems to work.

Mike
rgleason is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plots Plugin rgleason OpenCPN 26 09-04-2024 16:22
Pb with draw-watchdog under openplotter 1.2 and Opencpn 5.0.0 kinefou OpenCPN 29 26-06-2019 07:52
Danger, & Escape Bearings - Who still plots them, & how? UNCIVILIZED Anchoring & Mooring 38 28-09-2017 11:49
Server Errors on the Server Errors thread Tom Stormcrowe Forum Tech Support & Site Help 11 24-08-2012 06:51
Florida to Bahamas Watchdog countrybimm Atlantic & the Caribbean 54 20-04-2010 15:50

Advertise Here


All times are GMT -7. The time now is 18:44.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.