Page 1 of 1

please help me (my first project)

Posted: Mon Aug 23, 2010 6:52 pm
by midisa
I opened: Setings-Tags options-include file and added my library path, which I received the command `wx-config - cxxflags`.
I also added __WXGTK__ in advanced - tokens.

When you try to build the program I get these errors. What other options should be added to create a project wxWidget?

please help me.

---------- Build Started --------
/ Bin / sh-c '"make"-j 8-f "BookLib_wsp.mk"'
---------- Building project: [BookLib - Debug ]----------

Warning: No config found to match: / usr / local / bin / wx-config - cxxflags - unicode = yes - debug = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.


Warning: No config found to match: / usr / local / bin / wx-config - debug = yes - libs - unicode = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.

make [1]: Entering directory `/ home / midisa / Projects'
g-c "/ home / midisa / Projects / gui.cpp"-g-D__WX__-o. / Debug / gui.o "-I."
g-c "/ home / midisa / Projects / main.cpp"-g-D__WX__-o. / Debug / main.o "-I."
In file included from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / main.h: 18:19: error: wx / wx.h: No such file or directory
In file included from / home / midisa / Projects / main.h: 20,
from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / gui.h: 11:21: error: wx / intl.h: No such file or directory
/ Home / midisa / Projects / gui.h: 13:23: error: wx / string.h: No such file or directory
/ Home / midisa / Projects / gui.h: 14:23: error: wx / bitmap.h: No such file or directory
/ Home / midisa / Projects / gui.h: 15:22: error: In file included from / home / midisa / Projects / gui.cpp: 8wx/image.h: No such file or directory
:
/ Home / midisa / Projects / gui.h: 11:21: error: wx / intl.h: No such file or directory
/ Home / midisa / Projects / gui.h: 16:21: error: wx / icon.h: No such file or directory
/ Home / midisa / Projects / gui.h: 13:23: error: wx / string.h: No such file or directory
/ Home / midisa / Projects / gui.h: 17:21: error: wx / menu.h: No such file or directory
/ Home / midisa / Projects / gui.h: 14:23: error: wx / bitmap.h: No such file or directory
/ Home / midisa / Projects / gui.h: 18:23: error: wx / gdicmn.h: No such file or directory
/ Home / midisa / Projects / gui.h: 15:22: error: wx / image.h: No such file or directory
/ Home / midisa / Projects / gui.h: 19:21: error: wx / font.h: No such file or directory
/ Home / midisa / Projects / gui.h: 16:21: error: wx / icon.h: No such file or directory
/ Home / midisa / Projects / gui.h: 20:23: error: wx / colour.h: No such file or directory / home / midisa / Projects / gui.h: 17:21:
error: wx / menu.h: No such file or directory
/ Home / midisa / Projects / gui.h: 18:23: error: wx / gdicmn.h: No such file or directory
/ Home / midisa / Projects / gui.h: 21:25: error: wx / settings.h: No such file or directory
/ Home / midisa / Projects / gui.h: 19:21: error: wx / font.h: No such file or directory
/ Home / midisa / Projects / gui.h: 22:22: error: wx / sizer.h: No such file or directory
/ Home / midisa / Projects / gui.h: 20:23: error: wx / colour.h: No such file or directory
/ Home / midisa / Projects / gui.h: 23:25: error: wx / statusbr.h: No such file or directory
/ Home / midisa / Projects / gui.h: 21:25: error: wx / settings.h: No such file or directory
/ Home / midisa / Projects / gui.h: 24:22: error: wx / frame.h: No such file or directory
/ Home / midisa / Projects / gui.h: 22:22: error: wx / sizer.h: No such file or directory
/ Home / midisa / Projects / gui.h: 23:25: error: wx / statusbr.h: No such file or directory
In file included from / home / midisa / Projects / main.h: 20,
from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / gui.h: 33: error: expected class-name before '(' token
/ Home / midisa / Projects / gui.h: 24:22: error: wx / frame.h: No such file or directory / home / midisa / Projects / gui.h: 37: error: ISO C forbids declaration of 'wxMenuBar 'with no type

/ Home / midisa / Projects / gui.h: 37: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 38: error: ISO C forbids declaration of 'wxMenu' with no type
/ Home / midisa / Projects / gui.h: 38: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 39: error: ISO C forbids declaration of 'wxStatusBar' with no type
/ Home / midisa / Projects / gui.h: 39: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 42: error: 'wxCloseEvent' has not been declared
/ Home / midisa / Projects / gui.h: 43: error: 'wxCommandEvent' has not been declared
In file included from / home / midisa / Projects / gui.cpp: 8:
/ Home / midisa / Projects / gui.h: 33: error: expected class-name before '(' token
/ Home / midisa / Projects / gui.h: 48: error: expected ')' before '*' token
/ Home / midisa / Projects / gui.h: 37: error: ISO C forbids declaration of 'wxMenuBar' with no type
/ Home / midisa / Projects / gui.h: 37: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 38: error: ISO C forbids declaration of 'wxMenu' with no type
/ Home / midisa / Projects / gui.h: 38: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 39: error: ISO C forbids declaration of 'wxStatusBar' with no type
/ Home / midisa / Projects / gui.h: 39: error: expected ';' before '*' token
/ Home / midisa / Projects / gui.h: 42: error: 'wxCloseEvent' has not been declared
/ Home / midisa / Projects / gui.h: 43: error: 'wxCommandEvent' has not been declared
/ Home / midisa / Projects / gui.h: 48: error: expected ')' before '*' token
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnCloseFrame (int &)':
/ Home / midisa / Projects / gui.h: 42: error: request for member 'Skip' in 'event', which is of non-class type 'int'
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnCloseFrame (int &)':
/ Home / midisa / Projects / gui.h: 42: error: request for member 'Skip' in 'event', which is of non-class type 'int'
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnExitClick (int &)':
/ Home / midisa / Projects / gui.h: 43: error: request for member 'Skip' in 'event', which is of non-class type 'int'
/ Home / midisa / Projects / gui.cpp: At global scope:
/ Home / midisa / Projects / gui.cpp: 12: error: expected ')' before '*' token
/ Home / midisa / Projects / gui.cpp: In destructor 'MainFrameBase:: ~ MainFrameBase ()':
/ Home / midisa / Projects / gui.cpp: 43: error: 'class MainFrameBase' has no member named 'Disconnect'
/ Home / midisa / Projects / gui.cpp: 43: error: 'wxEVT_CLOSE_WINDOW' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 43: error: 'wxCloseEventHandler' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 44: error: 'class MainFrameBase' has no member named 'Disconnect'
/ Home / midisa / Projects / gui.cpp: 44: error: 'wxID_ANY' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 44: error: 'wxEVT_COMMAND_MENU_SELECTED' was not declared in this scope
/ Home / midisa / Projects / gui.cpp: 44: error: 'wxCommandEventHandler' was not declared in this scope
/ Home / midisa / Projects / gui.h: In member function 'virtual void MainFrameBase:: OnExitClick (int &)':
/ Home / midisa / Projects / gui.h: 43: error: request for member 'Skip' in 'event', which is of non-class type 'int'
In file included from / home / midisa / Projects / main.cpp: 14:
/ Home / midisa / Projects / main.h: At global scope:
/ Home / midisa / Projects / main.h: 27: error: expected class-name before '(' token
/ Home / midisa / Projects / main.h: 39: error: expected constructor, destructor, or type conversion before 'class'
/ Home / midisa / Projects / main.cpp: 17: error: expected constructor, destructor, or type conversion before ';' token
/ Home / midisa / Projects / main.cpp: In member function 'virtual bool MainApp:: OnInit ()':
/ Home / midisa / Projects / main.cpp: 25: error: expected type-specifier before 'MainFrame'
/ Home / midisa / Projects / main.cpp: 25: error: expected ')' before 'MainFrame'
/ Home / midisa / Projects / main.cpp: 25: error: 'SetTopWindow' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 26: error: 'GetTopWindow' was not declared in this scope
/ Home / midisa / Projects / main.cpp: At global scope:
/ Home / midisa / Projects / main.cpp: 36: error: 'MainFrame' has not been declared
/ Home / midisa / Projects / main.cpp: 36: error: expected constructor, destructor, or type conversion before '(' tokenmake [1]: *** [Debug / gui.o] Error 1
make [1]: *** Waiting for unfinished jobs ...

/ Home / midisa / Projects / main.cpp: 40: error: expected constructor, destructor, or type conversion before '::' token
/ Home / midisa / Projects / main.cpp: 44: error: 'MainFrame' has not been declared
/ Home / midisa / Projects / main.cpp: 44: error: variable or field 'OnCloseFrame' declared void
/ Home / midisa / Projects / main.cpp: 44: error: 'wxCloseEvent' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 44: error: 'event' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 49: error: 'MainFrame' has not been declared
/ Home / midisa / Projects / main.cpp: 49: error: variable or field 'OnExitClick' declared void
/ Home / midisa / Projects / main.cpp: 49: error: 'wxCommandEvent' was not declared in this scope
/ Home / midisa / Projects / main.cpp: 49: error: 'event' was not declared in this scope
make [1]: *** [Debug / main.o] Error 1
make [1]: Leaving directory `/ home / midisa / Projects'
make: *** [All] Error 2
---------- Build Ended ----------
88 errors, 3 warnings

Re: please help me (my first project)

Posted: Mon Aug 23, 2010 7:46 pm
by eranif
Try creating a project using the wizards (Plugins -> Gizmos -> New wxWidgets wizard...)

IN general backticks options should go to the compiler / linker options.

You can also try adding this to the 'Compiler Options':
$(shell wx-config --cxxflags)
and this to the 'Linker Options':
$(shell wx-config --libs)

Eran

Re: please help me (my first project)

Posted: Tue Aug 24, 2010 8:52 am
by midisa
1. Please take a look, I added the correct settings?
2. I could not find a menu item. Look at the picture.

error present..

I have 2 suggestions for refining your program. Where should I publish my wishes? My wishes will add maximum comfort to your editor.

Re: please help me (my first project)

Posted: Tue Aug 24, 2010 8:59 am
by midisa
I found wizard. but error present.

--------- Build Started --------
/ Bin / sh-c '"make"-j 8-f "BookLib_wsp.mk"'
---------- Building project: [qqqqq - Debug ]----------

Warning: No config found to match: / usr / local / bin / wx-config - cxxflags - unicode = yes - static = no - universal = no - debug = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.


Warning: No config found to match: / usr / local / bin / wx-config - debug = yes - libs - unicode = yes - static = no - universal = no
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.

make [1]: Entering directory `/ home / midisa / Projects / qqqqq '
g-c wx_pch.h-g-Winvalid-pch-include wx_pch.h-D__WX__-DWX_PRECOMP "-I."
In file included from <command-line>: 0:
. / Wx_pch.h: 11:23: error: wx / wxprec.h: No such file or directory
make [1]: *** [wx_pch.h.gch] Error 1
make [1]: Leaving directory `/ home / midisa / Projects / qqqqq '
make: *** [All] Error 2
---------- Build Ended ----------
1 errors, 0 warnings

Re: please help me (my first project)

Posted: Tue Aug 24, 2010 10:08 am
by midisa
I realized what my mistake. I was able to build the project. Settings need to do each project separately. This is bad, but it is not important.

I want to ask you a slightly different program. I have two simple requests:
1. When I write a function name, a list of available functions for the object. I ask that you include in the list of the functions return type. This allows you to quickly find the desired function. This will be useful to all users. For example, I do not know how the function should be called, but I know what type of data it should return. This will enable you to find the name of a function in the development of future project.

2. Imagine that you have developed a project and you want him to make changes. It took a long time and you do not remember the names of functions. I ask you to do a flyover to see the name of the function of the header (header) file.
Example: I am writing to. X file.
wxString ReadINIFile (wxString sSectionName, wxString sKeyName, wxString sFileName); / / This note

At the prompt should look like this:
wxString ReadINIFile (wxString sSectionName, wxString sKeyName, wxString sFileName);
/ / This note

It is important to show the note because function names can be identical (in large projects).