Certain Path Not Available

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
User avatar
Chikwado
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Sep 25, 2017 5:40 pm
Location: Nigeria
Contact:

Certain Path Not Available

Post by Chikwado »

Can Someone Tell Me What I Am Doing Wrong Here. After Building Wxwidget Library Everything Were Ok. Then...This Were Available:

Code: Select all

C:\wxWidget\include\wx\msvc\setup.h
. But This Is Not Available:

Code: Select all

C:\wxWidget\include\wx\msw\setup.h
. Someone Help Please.
Last edited by Chikwado on Fri Jun 15, 2018 12:47 pm, edited 2 times in total.
Window 8.1 x86, Codeblock 20.03, TDC-GCC-10.3.0, C++ 20, wxWidgets-3.2.1
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Certain Path Not Available

Post by eranon »

The first one is certainly this one instead:

Code: Select all

C:\wxWidgets\include\msvc\wx\setup.h
And for the second one you have a useless slash at the end ("setup.h" is a file, not a directory):

Code: Select all

C:\wxWidgets\include\wx\msw\setup.h
Last edited by eranon on Fri Jun 15, 2018 4:26 pm, edited 2 times in total.
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: Certain Path Not Available

Post by PB »

If you are using GCC do not include MSVC-specific header.

Regardless of the compiler, do not #include "wx\msw\setup.h" in your files.

If you are getting "setup.h not found" error, see e.g. here: http://wxwidgets.org/docs/faq/windows/#setuph. Obviously, if you are using GCC your path will have "gcc" instead of "vc". You also need to add the folder with build-specific setup.h (e.g., WXWIN/lib/gcc_lib/mswud) before the general include path (WXWIN/include).

BTW, the library name is wxWidgets.
User avatar
Chikwado
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Sep 25, 2017 5:40 pm
Location: Nigeria
Contact:

Re: Certain Path Not Available

Post by Chikwado »

Thanks For Reply, But What Is The Meaning Of "Error: wx/setup.h File Or Directory Not Found" I Has Been Going Around These For A Long Time. Do I Have To Copy The File To Any Foler? I Need Help.
Window 8.1 x86, Codeblock 20.03, TDC-GCC-10.3.0, C++ 20, wxWidgets-3.2.1
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: Certain Path Not Available

Post by PB »

Chikwado wrote:Thanks For Reply, But What Is The Meaning Of "Error: wx/setup.h File Or Directory Not Found" I Has Been Going Around These For A Long Time. Do I Have To Copy The File To Any Foler? I Need Help.
The solution is described in the third paragraph of my previous post in this thread.
stahta01
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 548
Joined: Fri Nov 03, 2006 2:00 pm

Re: Certain Path Not Available

Post by stahta01 »

Post a build log and maybe some can help you.

Link to Code::Blocks FAQ http://wiki.codeblocks.org/index.php/FA ... problem.3F
User avatar
Chikwado
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Sep 25, 2017 5:40 pm
Location: Nigeria
Contact:

Re: Certain Path Not Available

Post by Chikwado »

Can Some One Tell Me More, This Folders Are Available:

Code: Select all

C:\wxWidget\lib
But This Are Not Available:

Code: Select all

 C:\wxWidget\lib\gcc_lib\mswud 
Would I Have To Obtain That Folder And Files Any Where? Thanks.
Window 8.1 x86, Codeblock 20.03, TDC-GCC-10.3.0, C++ 20, wxWidgets-3.2.1
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Certain Path Not Available

Post by eranon »

As PB told you above, it's not "wxWidget", but "wxWidgets".
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
User avatar
Chikwado
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Sep 25, 2017 5:40 pm
Location: Nigeria
Contact:

Re: Certain Path Not Available

Post by Chikwado »

Yes, "wxWidgets".
Window 8.1 x86, Codeblock 20.03, TDC-GCC-10.3.0, C++ 20, wxWidgets-3.2.1
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Certain Path Not Available

Post by eranon »

OK, then to obtain "C:\wxWidgets\lib\gcc_lib\mswud", you have to build wxWidgets Debug for Windows against MinGW (aka. GCC) under "C:\wxWidgets\lib\gcc_lib" (here "gcc_lib" is arbitrary, you can name it at your convenience).
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
Post Reply