Saturday, November 6, 2010

Installing wxWidgets

I installed wxWidgets lib after realizing that intallation of Code::Blocks and its wxSmith plugin did not install it. I got an error not finding while compiling in CB with a wxWidgets project.

1. Install wxwidgets lib for Ubuntu
    a. Open Synaptic
    b. Search for wx
    c. Install:
        libwxgtk2.8-dbg
        libwxgtk2-dev
        wx2.8-doc
        wx2.8-examples

2. Now try again to compile a sample program.

/***************************************************************
 * Name:      wx01App.h
 * Purpose:   Defines Application Class
 * Author:    socrateos ()
 * Created:   2010-11-06
 * Copyright: socrateos ()
 * License:
 **************************************************************/

#ifndef WX01APP_H
#define WX01APP_H

#include 

class wx01App : public wxApp
{
    public:
        virtual bool OnInit();
};

#endif // WX01APP_H

2. Here is an successful output
-------------- Build: Debug in wx01 ---------------

Compiling: wx01App.cpp
Compiling: wx01Main.cpp
Linking executable: bin/Debug/wx01
Output size is 275.88 KB
Process terminated with status 0 (0 minutes, 2 seconds)
0 errors, 0 warnings
 

No comments:

Post a Comment