I installed minGW on Windows 10 on drive C. Then, I installed codelite. After that I installed wxWidget using windows installer file( the folder is created under C:\wxWidgets-3.1.4)
I setup that environment variables in codelite as:
WXWIN=C:\wxWidgets-3.1.4
WXCFG=gcc_dll\mswud
PATH=$(PATH);C:\MinGW\bin
I want to build a simple app to test the installation:
Code: Select all
#include <wx/wx.h>
// application class
class wxMiniApp : public wxApp
{
public:
// function called at the application initialization
virtual bool OnInit();
// event handler for button click
void OnClick(wxCommandEvent& event) {
GetTopWindow()->Close();
}
};
IMPLEMENT_APP(wxMiniApp);
bool wxMiniApp::OnInit()
{
// create a new frame and set it as the top most application window
SetTopWindow( new wxFrame( NULL, -1, wxT(""), wxDefaultPosition, wxSize( 100, 50) ) );
// create new button and assign it to the main frame
new wxButton( GetTopWindow(), wxID_EXIT, wxT("Click!") );
// connect button click event with event handler
Connect(wxID_EXIT, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(wxMiniApp::OnClick) );
// show main frame
GetTopWindow()->Show();
// enter the application's main loop
return true;
}
C:\WINDOWS\system32\cmd.exe /C C:/Min-gw/mingw64/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f Makefile
"----------Building project:[ TryWorkspace - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/f-alm/Desktop/Eman/TryWorkspace/TryWorkspace'
Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.
Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.
Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.
Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.
C:/Min-gw/mingw64/bin/g++.exe -c "C:/Users/f-alm/Desktop/Eman/TryWorkspace/TryWorkspace/main.cpp" -g -O0 -Wall wx-config Error: No valid setup.h of wxWidgets has been found at location: C:/wxWidgets-3.1.4/lib/gcc_dll\mswud/wx/setup.h -o ../build-Debug/TryWorkspace/main.cpp.o -I.
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: No: No such file or directory
g++.exe: error: valid: No such file or directory
g++.exe: error: setup.h: No such file or directory
g++.exe: error: of: No such file or directory
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: has: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: location:: Invalid argument
g++.exe: error: C:/wxWidgets-3.1.4/lib/gcc_dll\mswud/wx/setup.h: No such file or directory
mingw32-make.exe[1]: *** [TryWorkspace.mk ../build-Debug/TryWorkspace/main.cpp.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe[1]: Leaving directory 'C:/Users/f-alm/Desktop/Eman/TryWorkspace/TryWorkspace'
mingw32-make.exe: *** [Makefile:5: All] Error 2
====0 errors, 0 warnings====
Any help is highly apprecaited