new install, wxwidgets, wx/setup.h missing

CodeLite installation/troubleshooting forum
dlh
CodeLite Enthusiast
Posts: 24
Joined: Wed Oct 07, 2009 8:41 am
Genuine User: Yes
IDE Question: C++
Contact:

new install, wxwidgets, wx/setup.h missing

Post by dlh » Wed Oct 07, 2009 8:49 am

I've just installed codelite and supporting items using codelite-1.0.3035-mingw3.4.5-wx2.8.10.exe.

I've tried following the quickstart at http://codelite.org/LiteEditor/QuickStart.

After adapting for some failures, I received the error:
...well, appears I can't copy out of build tab...

but, its complaining of missing wx/setup.h, included from wx/platform.h.

There is a setup.h in wx/msw, wx/msw/wince, and wx/univ, but not one in plain 'wx'. (And the file wx/platform.h attempts to include "wx/setup.h".)

Have I missed a step, or did the installer, or ?

Thanks.

User avatar
eranif
CodeLite Plugin
Posts: 5896
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by eranif » Wed Oct 07, 2009 9:02 am

dlh wrote:...well, appears I can't copy out of build tab...
Select the text and right click it 'Copy'. This is fixed in the next release standard keyboard shortcuts will work inside the 'output view' tabs.

Paste the error here and I will see what I can do about it.

Eran
Make sure you have read the HOW TO POST thread

dlh
CodeLite Enthusiast
Posts: 24
Joined: Wed Oct 07, 2009 8:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by dlh » Wed Oct 07, 2009 2:07 pm

Ahh - well it's not just the standard keys, Copy also wasn't enabled on the main menu edit toolbar...

But here's the first section - there are many more after, but I suspect its the absence of the setup.h that's leading to much of it... I expect one of the setup.h files from one of those subdirectories is supposed to be there, and don't know what it is not...

*******************************************
In file included from C:/wxWidgets-2.8.10/include/wx/defs.h:21,
from C:/wxWidgets-2.8.10/include/wx/event.h:15,
from C:/wxWidgets-2.8.10/include/wx/app.h:20,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.h:4,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.cpp:1:
C:/wxWidgets-2.8.10/include/wx/platform.h:196:22: wx/setup.h: No such file or directory
In file included from C:/wxWidgets-2.8.10/include/wx/platform.h:293,
from C:/wxWidgets-2.8.10/include/wx/defs.h:21,
from C:/wxWidgets-2.8.10/include/wx/event.h:15,
from C:/wxWidgets-2.8.10/include/wx/app.h:20,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.h:4,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.cpp:1:
C:/wxWidgets-2.8.10/include/wx/chkconf.h:103:9: #error "wxUSE_DYNLIB_CLASS must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:111:9: #error "wxUSE_EXCEPTIONS must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:119:9: #error "wxUSE_FILESYSTEM must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:127:9: #error "wxUSE_FS_ARCHIVE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:140:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:148:9: #error "wxUSE_LOG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:156:9: #error "wxUSE_LONGLONG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:164:9: #error "wxUSE_MIMETYPE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:180:9: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:188:9: #error "wxUSE_PROTOCOL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:230:9: #error "wxUSE_REGEX must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:238:9: #error "wxUSE_STDPATHS must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:246:9: #error "wxUSE_XML must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:254:9: #error "wxUSE_SOCKETS must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:262:9: #error "wxUSE_STREAMS must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:270:9: #error "wxUSE_STOPWATCH must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:278:9: #error "wxUSE_TEXTBUFFER must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:286:9: #error "wxUSE_TEXTFILE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:302:9: #error "wxUSE_URL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:310:9: #error "wxUSE_VARIANT must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:330:9: #error "wxUSE_ABOUTDLG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:338:9: #error "wxUSE_ACCEL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:346:9: #error "wxUSE_ANIMATIONCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:354:9: #error "wxUSE_BITMAPCOMBOBOX must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:362:9: #error "wxUSE_BMPBUTTON must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:370:9: #error "wxUSE_BUTTON must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:378:9: #error "wxUSE_CALENDARCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:386:9: #error "wxUSE_CARET must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:394:9: #error "wxUSE_CHECKBOX must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:410:9: #error "wxUSE_CHOICE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:418:9: #error "wxUSE_CHOICEBOOK must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:426:9: #error "wxUSE_CHOICEDLG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:434:9: #error "wxUSE_CLIPBOARD must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:442:9: #error "wxUSE_COLLPANE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:450:9: #error "wxUSE_COLOURDLG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:458:9: #error "wxUSE_COLOURPICKERCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:466:9: #error "wxUSE_COMBOBOX must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:474:9: #error "wxUSE_COMBOCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:482:9: #error "wxUSE_DATAOBJ must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:490:9: #error "wxUSE_DATAVIEWCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:498:9: #error "wxUSE_DATEPICKCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:506:9: #error "wxUSE_DIRPICKERCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:514:9: #error "wxUSE_DISPLAY must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:522:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:530:9: #error "wxUSE_FILEDLG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:538:9: #error "wxUSE_FILEPICKERCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:546:9: #error "wxUSE_FONTDLG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:554:9: #error "wxUSE_FONTMAP must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:562:9: #error "wxUSE_FONTPICKERCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:570:9: #error "wxUSE_GAUGE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:578:9: #error "wxUSE_GRAPHICS_CONTEXT must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:587:9: #error "wxUSE_GRID must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:595:9: #error "wxUSE_HELP must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:603:9: #error "wxUSE_HYPERLINKCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:611:9: #error "wxUSE_HTML must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:632:9: #error "wxUSE_ICO_CUR must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:640:9: #error "wxUSE_IFF must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:648:9: #error "wxUSE_IMAGLIST must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:656:9: #error "wxUSE_JOYSTICK must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:664:9: #error "wxUSE_LISTBOOK must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:672:9: #error "wxUSE_LISTBOX must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:680:9: #error "wxUSE_LISTCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:688:9: #error "wxUSE_LOGGUI must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:696:9: #error "wxUSE_LOGWINDOW must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:704:9: #error "wxUSE_LOG_DIALOG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:712:9: #error "wxUSE_MDI must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:720:9: #error "wxUSE_MDI_ARCHITECTURE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:728:9: #error "wxUSE_MENUS must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:736:9: #error "wxUSE_MSGDLG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:744:9: #error "wxUSE_NOTEBOOK must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:752:9: #error "wxUSE_ODCOMBOBOX must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:760:9: #error "wxUSE_PALETTE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:768:9: #error "wxUSE_POPUPWIN must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:776:9: #error "wxUSE_PRINTING_ARCHITECTURE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:784:9: #error "wxUSE_RADIOBOX must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:792:9: #error "wxUSE_RADIOBTN must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:800:9: #error "wxUSE_SASH must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:808:9: #error "wxUSE_SCROLLBAR must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:816:9: #error "wxUSE_SLIDER must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:824:9: #error "wxUSE_SOUND must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:832:9: #error "wxUSE_SPINBTN must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:840:9: #error "wxUSE_SPINCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:848:9: #error "wxUSE_SPLASH must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:856:9: #error "wxUSE_SPLITTER must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:864:9: #error "wxUSE_STATBMP must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:872:9: #error "wxUSE_STATBOX must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:880:9: #error "wxUSE_STATLINE must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:888:9: #error "wxUSE_STATTEXT must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:896:9: #error "wxUSE_STATUSBAR must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:904:9: #error "wxUSE_TAB_DIALOG must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:912:9: #error "wxUSE_TEXTCTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:920:9: #error "wxUSE_TIPWINDOW must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:928:9: #error "wxUSE_TOOLBAR must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:936:9: #error "wxUSE_TOOLTIPS must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:944:9: #error "wxUSE_TREECTRL must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:952:9: #error "wxUSE_VALIDATORS must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:960:9: #error "wxUSE_WXHTML_HELP must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:968:9: #error "wxUSE_XRC must be defined."
C:/wxWidgets-2.8.10/include/wx/chkconf.h:1765:9: #error "wxMessageBox is always needed"
In file included from C:/wxWidgets-2.8.10/include/wx/debug.h:22,
from C:/wxWidgets-2.8.10/include/wx/defs.h:521,
from C:/wxWidgets-2.8.10/include/wx/event.h:15,
from C:/wxWidgets-2.8.10/include/wx/app.h:20,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.h:4,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.cpp:1:
C:/wxWidgets-2.8.10/include/wx/wxchar.h:49:6: #error "wchar_t must be available in Unicode build"
*********************************
and so on and so on...

User avatar
eranif
CodeLite Plugin
Posts: 5896
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by eranif » Wed Oct 07, 2009 2:51 pm

I need to see the command that codelite was running.

it usually starts with 'g++'

Eran
Make sure you have read the HOW TO POST thread

dlh
CodeLite Enthusiast
Posts: 24
Joined: Wed Oct 07, 2009 8:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by dlh » Wed Oct 07, 2009 4:07 pm

This should overlap with the first part of what I previously posted, and is from the beginning of the build output pane...

----------Build Started--------
"mingw32-make.exe" -j 1 -f "HelloWork_wsp.mk"
----------Building project:[ wxHello - Release ]----------
g++ -c "C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -IC:\wxWidgets-2.8.10\lib\gcc_dll\mswu -IC:\wxWidgets-2.8.10\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -D__WX__ -o ./Release/wxhello_app.o "-I." "-IC:/wxWidgets-2.8.10/include"
In file included from C:/wxWidgets-2.8.10/include/wx/defs.h:21,
from C:/wxWidgets-2.8.10/include/wx/event.h:15,
from C:/wxWidgets-2.8.10/include/wx/app.h:20,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.h:4,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.cpp:1:
C:/wxWidgets-2.8.10/include/wx/platform.h:196:22: wx/setup.h: No such file or directory

User avatar
eranif
CodeLite Plugin
Posts: 5896
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by eranif » Wed Oct 07, 2009 4:36 pm

In short, set SHELL environment variable (do it from your system settings and not from within codelite) to CMD.EXE and restart codelite

See here:

http://codelite.org/forum/viewtopic.php ... hell#p1172
http://codelite.org/forum/viewtopic.php ... hell#p1172

Eran
Make sure you have read the HOW TO POST thread

dlh
CodeLite Enthusiast
Posts: 24
Joined: Wed Oct 07, 2009 8:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by dlh » Wed Oct 07, 2009 5:42 pm

That didn't seem to help me.

I set the variable, and verified from a new DOS cmd prompt that it was there.

reload CL and still get similar results (there still isn't a 'setup.h' in c:\wxWidgets-2.8.10\include\wx, regardless of whether using forward/backward slahes in paths - I think that's the problem, but I don't know what was supposed to put the setup.h there, but wxWidgets own header, platform.h, apparently expects it to be there!):
----------Build Started--------
"mingw32-make.exe" -j 1 -f "HelloWork_wsp.mk"
----------Building project:[ wxHello - Release ]----------
g++ -c "C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -IC:\wxWidgets-2.8.10\lib\gcc_dll\mswu -IC:\wxWidgets-2.8.10\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -D__WX__ -o ./Release/wxhello_app.o "-I." "-IC:/wxWidgets-2.8.10/include"
In file included from C:/wxWidgets-2.8.10/include/wx/defs.h:21,
from C:/wxWidgets-2.8.10/include/wx/event.h:15,
from C:/wxWidgets-2.8.10/include/wx/app.h:20,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.h:4,
from C:/Program Files/CodeLite/HelloWork/wxHello/wxhello_app.cpp:1:
C:/wxWidgets-2.8.10/include/wx/platform.h:196:22: wx/setup.h: No such file or directory

User avatar
eranif
CodeLite Plugin
Posts: 5896
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by eranif » Wed Oct 07, 2009 6:29 pm

One more question:

You got another g++ on your machine from cygwin installation (and it does not like the backslashes in the output of wx-config)

Please make sure that you are using the correct g++ (the one from MinGW)
Eran
Make sure you have read the HOW TO POST thread

dlh
CodeLite Enthusiast
Posts: 24
Joined: Wed Oct 07, 2009 8:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by dlh » Wed Oct 07, 2009 7:44 pm

Yes, there was a cygwin, and it was in the path. (There was also another mingw besides the codelite provided one, but that wasn't in the path.)

After removing cygwin from my path, the build succeeded.

Thanks.

(Should codelite workspace settings perhaps have a "Current gcc/mingw toolset" setting? Or, does it somewhere already? I can envision that some people might want to be able to change the particular toolset being used. I once was in a situation where I had [and needed] four different versions of MS dev tools installed and available to be able to support important customers on releases that had been built with those various toolsets. I suppose such a setting at the project level might have been sufficient, although a lot more trouble to change when moving to a new toolset revision since it would have to be changed for each project. I suppose that could be extended to various external items - I'm a newbie to both wxwidgets and to [anticipated] wxformbuilder, but can imagine that each of those won't be forward/backward compatible over time either, and thus selectable/settable version locations might be useful.)

User avatar
eranif
CodeLite Plugin
Posts: 5896
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by eranif » Wed Oct 07, 2009 8:06 pm

You can define / modify N toolchains

Look at:
Settings | Build Settings | Compiler

The default compiler is set to g++. By default codelite comes with 3 settings, but you can add as many as you want.
Everything is configurable.


In the project settings dialog (right click on the project) and in the 'General' tab you can select the compiler to work with.

Eran
Make sure you have read the HOW TO POST thread

Post Reply