g4klx / DStarRepeater

The D-Star Repeater.
GNU General Public License v2.0
18 stars 14 forks source link

Compile failures using wxWidgets 3.1.2 on Linux #10

Open dslotter opened 5 years ago

dslotter commented 5 years ago

On Ubuntu Linux, attempting to compile against wxWidgets 3.1.2 results with these compile failures in Logger.cpp:


In file included from Logger.cpp:19:0:
Logger.h:31:72: error: ‘wxLogRecordInfo’ does not name a type
  virtual void DoLogRecord(wxLogLevel level, const wxString& msg, const wxLogRecordInfo& info);
                                                                        ^
Logger.cpp:58:72: error: ‘wxLogRecordInfo’ does not name a type
 void CLogger::DoLogRecord(wxLogLevel level, const wxString& msg, const wxLogRecordInfo& info)
                                                                        ^
Logger.cpp: In member function ‘virtual void CLogger::DoLogRecord(wxLogLevel, const wxString&, const int&)’:
Logger.cpp:77:33: error: request for member ‘timestamp’ in ‘info’, which is of non-class type ‘const int’
  struct tm* tm = ::gmtime(&info.timestamp);
                                 ^
Logger.cpp:82:33: error: request for member ‘timestamp’ in ‘info’, which is of non-class type ‘const int’
  writeLog(message.c_str(), info.timestamp);
                                 ^
Makefile:19: recipe for target 'Logger.o' failed
make[1]: *** [Logger.o] Error 1
make[1]: *** Waiting for unfinished jobs....```

More info:
dave@Moonquake:~/projects/hamradio/DStarRepeater$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="16.04.6 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.6 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

dave@Moonquake:~/projects/hamradio/DStarRepeater$ uname -a
Linux Moonquake 4.4.0-165-generic #193-Ubuntu SMP Tue Sep 17 17:42:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
dslotter commented 5 years ago

Can someone please take a look at this?

g4klx commented 5 years ago

Please use a 3.0.x release. The 3.1.x series are development versions and not labelled as being stable.

Sent from Yahoo Mail for iPhone

On Wednesday, October 16, 2019, 20:39, Dave Slotter notifications@github.com wrote:

On Ubuntu Linux, attempting to compile against wxWidgets 3.1.2 results with these compile failures in Logger.cpp:

'''g++ -DwxUSE_GUI=0 -O2 -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXGTK -pthread -DLOG_DIR='"/var/log"' -DCONF_DIR='"/etc"' -DDATA_DIR='"/usr/share/dstarrepeater"' -c -o SerialLineController.o SerialLineController.cpp In file included from Logger.cpp:19:0: Logger.h:31:72: error: ‘wxLogRecordInfo’ does not name a type virtual void DoLogRecord(wxLogLevel level, const wxString& msg, const wxLogRecordInfo& info); ^ Logger.cpp:58:72: error: ‘wxLogRecordInfo’ does not name a type void CLogger::DoLogRecord(wxLogLevel level, const wxString& msg, const wxLogRecordInfo& info) ^ Logger.cpp: In member function ‘virtual void CLogger::DoLogRecord(wxLogLevel, const wxString&, const int&)’: Logger.cpp:77:33: error: request for member ‘timestamp’ in ‘info’, which is of non-class type ‘const int’ struct tm* tm = ::gmtime(&info.timestamp); ^ Logger.cpp:82:33: error: request for member ‘timestamp’ in ‘info’, which is of non-class type ‘const int’ writeLog(message.c_str(), info.timestamp); ^ Makefile:19: recipe for target 'Logger.o' failed make[1]: [Logger.o] Error 1 make[1]: Waiting for unfinished jobs....'''

More info: dave@Moonquake:~/projects/hamradio/DStarRepeater$ cat /etc/os-release NAME="Ubuntu" VERSION="16.04.6 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.6 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial

dave@Moonquake:~/projects/hamradio/DStarRepeater$ uname -a Linux Moonquake 4.4.0-165-generic #193-Ubuntu SMP Tue Sep 17 17:42:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.