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: 28
Joined: Mon Sep 25, 2017 5:40 pm
Location: Nigeria

Certain Path Not Available

Post by Chikwado » Fri Jun 15, 2018 10:13 am

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 7 32bit, Codeblock 17.x, Mingw 5.x.x, C++ 17, Wxwidget 3.1.2

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 » Fri Jun 15, 2018 10:50 am

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: 2066
Joined: Sun Jan 03, 2010 5:45 pm

Re: Certain Path Not Available

Post by PB » Fri Jun 15, 2018 10:54 am

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: 28
Joined: Mon Sep 25, 2017 5:40 pm
Location: Nigeria

Re: Certain Path Not Available

Post by Chikwado » Fri Jun 15, 2018 1:44 pm

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 7 32bit, Codeblock 17.x, Mingw 5.x.x, C++ 17, Wxwidget 3.1.2

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

Re: Certain Path Not Available

Post by PB » Fri Jun 15, 2018 2:14 pm

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
Super wx Problem Solver
Super wx Problem Solver
Posts: 283
Joined: Fri Nov 03, 2006 2:00 pm

Re: Certain Path Not Available

Post by stahta01 » Sat Jun 16, 2018 1:35 am

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: 28
Joined: Mon Sep 25, 2017 5:40 pm
Location: Nigeria

Re: Certain Path Not Available

Post by Chikwado » Thu Jun 21, 2018 12:55 pm

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 7 32bit, Codeblock 17.x, Mingw 5.x.x, C++ 17, Wxwidget 3.1.2

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 » Thu Jun 21, 2018 1:02 pm

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: 28
Joined: Mon Sep 25, 2017 5:40 pm
Location: Nigeria

Re: Certain Path Not Available

Post by Chikwado » Thu Jun 21, 2018 2:09 pm

Yes, "wxWidgets".
Window 7 32bit, Codeblock 17.x, Mingw 5.x.x, C++ 17, Wxwidget 3.1.2

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 » Thu Jun 21, 2018 7:35 pm

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