I have an issue. The left box I call Tilt has gtk3-unicode-3.1, the right box I call Monster has gtk3-unicode-static-3.1.
Tilt has wxWidgets installed in
Code: Select all
/usr
Code: Select all
/usr/include/wx-3.1
Code: Select all
/usr/include/wx
Code: Select all
/usr
Essentially, Tilt compiles with zero issues and Monster is a MONSTER about it.
On Monster ::
Code: Select all
...
/usr/bin/ld: /usr/include/wx/event.h:419: undefined reference to `wxTrapInAssert'
...
/usr/bin/ld: /usr/include/wx/containr.h:247: undefined reference to `wxControlContainerBase::UpdateCanFocusChildren()'
/usr/bin/ld: ProgramGUI.o: in function `wxCreateApp()':
/home/john/thor-linux/Server/src/ProgramGUI.cpp:9: undefined reference to `wxAppConsoleBase::CheckBuildOptions(char const*, char const*)'
/usr/bin/ld: ProgramGUI.o: in function `main':
/home/john/thor-linux/Server/src/ProgramGUI.cpp:80: undefined reference to `wxEntryStart(int&, char**)'
/usr/bin/ld: ProgramGUI.o: in function `wxAppConsoleBase::SetInitializerFunction(wxAppConsole* (*)())':
/usr/include/wx/app.h:454: undefined reference to `wxAppConsoleBase::ms_appInitFn'
/usr/bin/ld: ProgramGUI.o: in function `wxAppConsoleBase::GetInstance()':
/usr/include/wx/app.h:462: undefined reference to `wxAppConsoleBase::ms_appInstance'
/usr/bin/ld: ProgramGUI.o: in function `A*******s::GUI::GUI()':
/home/john/thor-linux/Server/inc/GUI.h:21: undefined reference to `wxApp::wxApp()'
/usr/bin/ld: SocketServer.o: in function `A*******s::SocketServer::SetContext(boost::asio::ssl::context*)':
/home/user/thor-linux/Server/src/SocketServer.cpp:51: undefined reference to `wxGetTextFromUser(wxString const&, wxString const&, wxString const&, wxWindow*, int, int, bool)'
/usr/bin/ld: /home/user/thor-linux/Server/src/SocketServer.cpp:65: undefined reference to `wxGetTextFromUser(wxString const&, wxString const&, wxString const&, wxWindow*, int, int, bool)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:24: server] Error 1
Code: Select all
main()
Code: Select all
int main(int argc, char** argv)
{
/*Ensure running as root*/
#ifndef _WIN32
// if(geteuid() != 0)
// {
// std::cerr << "This program must run as root. Please restart the process as a root user." << std::endl;
// return -1;
// }
#endif
#ifdef _WIN32
socketThread = std::thread([]()
{
RunSocketServer();
});
#else
pthread_t* threadObject = &socketThreadObject;
socketThread = std::thread([threadObject]()
{
socketThreadObject = pthread_self();
RunSocketServer();
});
#endif
wxEntryStart(argc, argv);
wxTheApp->CallOnInit();
// wxTheApp->OnInit();
wxTheApp->OnRun();
wxTheApp->OnExit();
wxTheApp->CleanUp();