aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  


We're back! (IN POG FORM)

Author Topic: WebServer: little problem while compiling latest amule from github for MacOS  (Read 1360 times)


  • Global Moderator
  • Jr. Member
  • *****
  • Karma: 10
  • Offline Offline
  • Posts: 95

I had a compile error about wxSocketEvent while building latest amule from github.

To fix it I simply added the statement

Code: [Select]
#include <wx/socket.h>  // needed for wxSocketEvent.h

in src/weberver/src/WebServer.h

Please notice that the problem was related to the lines (in src/weberver/src/WebServer.h)

Code: [Select]
void OnWebSocketServerEvent(wxSocketEvent& event);
void OnWebSocketEvent(wxSocketEvent& event);

so probably an alternative way to fix the problem could be:

1) forward declaration of wxSocketEvent in WebServer.h
Code: [Select]

class wxSocketEvent; // forward declaration

class CWebServerBase : public wxEvtHandler {

2) add the include of <wx/socket.h> in WebServer.cpp

  Mr Hyde



  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 165
  • Offline Offline
  • Posts: 2674

... and the proper way is to exclude wxSocket-related code from Boost.Asio builds. ;-)

Should be fixed by 4af1ed5.
concordia cum veritate