wxwidgets nightmare
Posted: Sat Dec 29, 2012 12:58 pm
I am running Debian Squeeze and started off with CodeBlocks. That all went well until I wanted to change my project to use wxwidgets. It failed to install correctly due to dependency issues and after a several days of trying to install from source and tearing my hair out I gave up.
Next I installed CodeLite, which I must say looks really nice indeed. Only trouble is, I cannot get it to compile the default program after I have created a a new wxwidgets (2.8.0) project. This was installed directly from the Debian repository. I also installed the codelite plugins. I get the following output when trying to build the project. I have also included the main.h and .cpp although that might not be needed as this was automatically generated when creating the project:-
I have included the wx directory in the compiler additional search path but the same deal. Although I would have thought the configuration should already have been done as the plugin is installed with Codelite and is also showing the green dot in the "Manage Plugins" plugin status.
I have done quite a lot of searching over the last few days and there seems to be similar issues but they appear to be windows based, not linux.
I haven't got much hair left, so is there anyone that can help before I become totally bald?
Next I installed CodeLite, which I must say looks really nice indeed. Only trouble is, I cannot get it to compile the default program after I have created a a new wxwidgets (2.8.0) project. This was installed directly from the Debian repository. I also installed the codelite plugins. I get the following output when trying to build the project. I have also included the main.h and .cpp although that might not be needed as this was automatically generated when creating the project:-
- /home/dave/.codelite/myweather/gui.h:11:21: error: wx/intl.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:13:23: error: wx/string.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:14:23: error: wx/bitmap.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:15:22: error: wx/image.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:16:21: error: wx/icon.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:17:21: error: wx/menu.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:18:23: error: wx/gdicmn.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:19:21: error: wx/font.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:20:23: error: wx/colour.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:21:25: error: wx/settings.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:22:22: error: wx/sizer.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:23:25: error: wx/statusbr.h: No such file or directory
/home/dave/.codelite/myweather/gui.h:24:22: error: wx/frame.h: No such file or directory
Code: Select all
/*********************************************************************
* Name: main.cpp
* Purpose: Implements simple wxWidgets application with GUI
* created using wxFormBuilder.
* Author:
* Created:
* Copyright:
* License: wxWidgets license (www.wxwidgets.org)
*
* Notes: Note that all GUI creation code is implemented in
* gui.cpp source file which is generated by wxFormBuilder.
*********************************************************************/
#include "main.h"
// initialize the application
IMPLEMENT_APP(MainApp);
////////////////////////////////////////////////////////////////////////////////
// application class implementation
////////////////////////////////////////////////////////////////////////////////
bool MainApp::OnInit()
{
SetTopWindow( new MainFrame( NULL ) );
GetTopWindow()->Show();
// true = enter the main loop
return true;
}
////////////////////////////////////////////////////////////////////////////////
// main application frame implementation
////////////////////////////////////////////////////////////////////////////////
MainFrame::MainFrame(wxWindow *parent) : MainFrameBase( parent )
{
}
MainFrame::~MainFrame()
{
}
void MainFrame::OnCloseFrame(wxCloseEvent& event)
{
Destroy();
}
void MainFrame::OnExitClick(wxCommandEvent& event)
{
Destroy();
}
Code: Select all
/*********************************************************************
* Name: main.h
* Purpose: Declares simple wxWidgets application with GUI
* created using wxFormBuilder.
* Author:
* Created:
* Copyright:
* License: wxWidgets license (www.wxwidgets.org)
*
* Notes: Note that all GUI creation code is declared in
* gui.h source file which is generated by wxFormBuilder.
*********************************************************************/
#ifndef __main__
#define __main__
// main wxWidgets header file
#include <wx/wx.h>
// gui classes generated by wxFormBuilder
#include "gui.h"
////////////////////////////////////////////////////////////////////////////////
// application class declaration
////////////////////////////////////////////////////////////////////////////////
class MainApp : public wxApp
{
public:
virtual bool OnInit();
};
// declare global static function wxGetApp()
DECLARE_APP(MainApp)
////////////////////////////////////////////////////////////////////////////////
// main application frame declaration
////////////////////////////////////////////////////////////////////////////////
class MainFrame : public MainFrameBase
{
public:
MainFrame( wxWindow *parent );
virtual ~MainFrame();
protected:
// protected event handlers
virtual void OnCloseFrame( wxCloseEvent& event );
virtual void OnExitClick( wxCommandEvent& event );
};
#endif //__main__
I have done quite a lot of searching over the last few days and there seems to be similar issues but they appear to be windows based, not linux.
I haven't got much hair left, so is there anyone that can help before I become totally bald?