Setup file error

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
wxHuman
Earned a small fee
Earned a small fee
Posts: 22
Joined: Sat Dec 14, 2013 5:37 pm

Setup file error

Post by wxHuman »

Hi,
I just compiled my application a few days before and after that I just try to compile a hello world file and suddenly I started to get this setup file error. I did not changed my wx folder nor I changed mingw. How do I get rid of this error?

Thanks
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: Setup file error

Post by PB »

You did not post the actual error, I assume it is the one about setup.h not found on WIndows, see e.g. the FAQ entry.

If it worked before, it could not break on its own.

You need to check if the build-specific include folder is set together with the main include folder in the compiler include folders of your project for that build target. How to to do that depends on your build system which your also did no specify.

E.g. for MInGW in Code::Blocks for the Debug DLL build it woulde be $(#wx)\lib\gcc_dll\mswud
wxHuman
Earned a small fee
Earned a small fee
Posts: 22
Joined: Sat Dec 14, 2013 5:37 pm

Re: Setup file error

Post by wxHuman »

wx was compiling without any error. It just started to show this error as soon as I try to compile the hello world example. I have no idea how it just automatically changed its setup.h file. Everything was working without any problem. Here is the console screenshot of error.
Attachments
Error.jpg
Error.jpg (62.1 KiB) Viewed 1030 times
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: Setup file error

Post by PB »

You should have pasted the build log instead of posting its incomplete screenshot.

What makes you think this is related to setup.h, is there something not visible in the screenshot hinting at this?

This is a declaration error but I do not understand how can it happen as wxIsBusy() is declared in utils.h which is included from cursor.h...
wxHuman
Earned a small fee
Earned a small fee
Posts: 22
Joined: Sat Dec 14, 2013 5:37 pm

Re: Setup file error

Post by wxHuman »

Sorry for that. Here is the full build log -

-------------- Build: Debug in Test (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall -std=c++11 -pipe -mthreads -Wno-attributes -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -g -D__WXDEBUG__ -IC:\wx\include -IC:\wx\include\msvc -IC:\wx\samples\treectrl -c E:\wxWidget\treetest.cpp -o obj\Debug\treetest.o
In file included from C:\wx\include/wx/platform.h:529,
from C:\wx\include/wx/defs.h:45,
from C:\wx\include/wx/wx.h:14,
from E:\wxWidget\treetest.cpp:19:
C:\wx\include/wx/chkconf.h:88:9: error: #error "wxUSE_ANY must be defined, please read comment near the top of this file."
88 | # error "wxUSE_ANY must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:96:9: error: #error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
96 | # error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:104:9: error: #error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
104 | # error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:112:9: error: #error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
112 | # error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:120:9: error: #error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
120 | # error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:128:9: error: #error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
128 | # error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:136:9: error: #error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
136 | # error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:144:9: error: #error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
144 | # error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:152:9: error: #error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
152 | # error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:160:9: error: #error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
160 | # error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:168:9: error: #error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
168 | # error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:176:9: error: #error "wxUSE_INTL must be defined, please read comment near the top of this file."
176 | # error "wxUSE_INTL must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:184:9: error: #error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
184 | # error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:192:9: error: #error "wxUSE_LOG must be defined, please read comment near the top of this file."
192 | # error "wxUSE_LOG must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:200:9: error: #error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
200 | # error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:208:9: error: #error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
208 | # error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:216:9: error: #error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
216 | # error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:224:9: error: #error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
224 | # error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:232:9: error: #error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
232 | # error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:274:9: error: #error "wxUSE_REGEX must be defined, please read comment near the top of this file."
274 | # error "wxUSE_REGEX must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:282:9: error: #error "wxUSE_SECRETSTORE must be defined, please read comment near the top of this file."
282 | # error "wxUSE_SECRETSTORE must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:290:9: error: #error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
290 | # error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:298:9: error: #error "wxUSE_XML must be defined, please read comment near the top of this file."
298 | # error "wxUSE_XML must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:306:9: error: #error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
306 | # error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:314:9: error: #error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
314 | # error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:322:9: error: #error "wxUSE_STD_CONTAINERS_COMPATIBLY must be defined, please read comment near the top of this file."
322 | # error "wxUSE_STD_CONTAINERS_COMPATIBLY must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:330:9: error: #error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
330 | # error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:338:9: error: #error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
338 | # error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:346:9: error: #error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
346 | # error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:354:9: error: #error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
354 | # error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:362:9: error: #error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
362 | # error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:378:9: error: #error "wxUSE_UNSAFE_WXSTRING_CONV must be defined, please read comment near the top of this file."
378 | # error "wxUSE_UNSAFE_WXSTRING_CONV must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:386:9: error: #error "wxUSE_URL must be defined, please read comment near the top of this file."
386 | # error "wxUSE_URL must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:394:9: error: #error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
394 | # error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
| ^~~~~
C:\wx\include/wx/chkconf.h:402:9: error: #error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
402 | # error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
| ^~~~~
In file included from C:\wx\include/wx/chkconf.h:1268,
from C:\wx\include/wx/platform.h:529,
from C:\wx\include/wx/defs.h:45,
from C:\wx\include/wx/wx.h:14,
from E:\wxWidget\treetest.cpp:19:
C:\wx\include/wx/msw/chkconf.h:19:10: error: #error "wxUSE_ACTIVEX must be defined."
19 | # error "wxUSE_ACTIVEX must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:27:10: error: #error "wxUSE_WINRT must be defined."
27 | # error "wxUSE_WINRT must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:35:9: error: #error "wxUSE_CRASHREPORT must be defined."
35 | # error "wxUSE_CRASHREPORT must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:43:9: error: #error "wxUSE_DBGHELP must be defined"
43 | # error "wxUSE_DBGHELP must be defined"
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:51:9: error: #error "wxUSE_DC_CACHEING must be defined"
51 | # error "wxUSE_DC_CACHEING must be defined"
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:59:10: error: #error "wxUSE_DIALUP_MANAGER must be defined."
59 | # error "wxUSE_DIALUP_MANAGER must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:67:10: error: #error "wxUSE_MS_HTML_HELP must be defined."
67 | # error "wxUSE_MS_HTML_HELP must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:75:10: error: #error "wxUSE_INICONF must be defined."
75 | # error "wxUSE_INICONF must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:83:10: error: #error "wxUSE_OLE must be defined."
83 | # error "wxUSE_OLE must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:91:10: error: #error "wxUSE_OLE_AUTOMATION must be defined."
91 | # error "wxUSE_OLE_AUTOMATION must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:99:9: error: #error "wxUSE_TASKBARICON_BALLOONS must be defined."
99 | # error "wxUSE_TASKBARICON_BALLOONS must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:107:9: error: #error "wxUSE_TASKBARBUTTON must be defined."
107 | # error "wxUSE_TASKBARBUTTON must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:115:10: error: #error "wxUSE_UXTHEME must be defined."
115 | # error "wxUSE_UXTHEME must be defined."
| ^~~~~
C:\wx\include/wx/msw/chkconf.h:123:10: error: #error "wxUSE_WINSOCK2 must be defined."
123 | # error "wxUSE_WINSOCK2 must be defined."
| ^~~~~
In file included from C:\wx\include/wx/window.h:22,
from C:\wx\include/wx/wupdlock.h:13,
from E:\wxWidget\treetest.cpp:32:
C:\wx\include/wx/cursor.h: In constructor 'wxBusyCursorSuspender::wxBusyCursorSuspender()':
C:\wx\include/wx/cursor.h:99:13: error: 'wxIsBusy' was not declared in this scope
Process terminated with status 1 (0 minute(s), 14 second(s))
50 error(s), 0 warning(s) (0 minute(s), 14 second(s))
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: Setup file error

Post by PB »

I see. Nevertheless, it is not possible that something broke on its own (assuming there is no hardware failure).

Either your project settings or wxWidgets build must have been somehow altered.

I would first check my project properties, if there are somehow not different wxWidgets installations/build mixed in compiler include and linker library paths (hopefully, all wxWidgets settings are done at the project and not compiler level).

If there was no apparent issue with the project, I would rebuild wxWidgets, making sure the build is really clean.
wxHuman
Earned a small fee
Earned a small fee
Posts: 22
Joined: Sat Dec 14, 2013 5:37 pm

Re: Setup file error

Post by wxHuman »

That is what I am thinking. It changed automatically. No idea how. I will recompile wx and see. Thanks for the help and reply.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Setup file error

Post by ONEEYEMAN »

Hi,
What exact command did you use to build the library?
What exact command did you use to build your software?
What exact command did you use to build the "hello world"?

Thank you.
wxHuman
Earned a small fee
Earned a small fee
Posts: 22
Joined: Sat Dec 14, 2013 5:37 pm

Re: Setup file error

Post by wxHuman »

It is working again. Thanks for your reply.
Post Reply