Author Topic: wx/setup.h: No such file or directory  (Read 54026 times)

Number42

  • Guest
wx/setup.h: No such file or directory
« on: November 27, 2005, 09:32:38 pm »
Hello,

i can't build the default wxWidgets application  :x.

Installation on Win2k Pro:
1/ wxMSW-2.6.2-Setup.exe (to C:\wxWidgets-2.6.2)
2/ codeblocks-1.0rc2_mingw.exe


I've tried to create 3 projects using wxWidgets:

New project->wxWidgets Application

1/ Using wxWidgets DLL
2/ Using UNICODE wxWidgets DLL
3/ Using UNICODE static wxWidgets library

1/ No header file
2/ and 3/ Use separate wxApp, wxFrame files

"Create"

"Build"


Each time i have the same error:

Switching to target: default
Precompiling header: wx_pch.h
In file included from C:/wxWidgets-2.6.2/include/wx/defs.h:21,
                 from C:/wxWidgets-2.6.2/include/wx/wxprec.h:13,
                 from ./wx_pch.h:9,
                 from <command line>:6:
C:/wxWidgets-2.6.2/include/wx/platform.h:190:22: wx/setup.h: No such file or directory


I have verified from the menu "Project->Build options->Custom variables" and i have:
WX_DIR = C:\wxWidgets-2.6.2
WX_CFG =


Where the problem comes from?

TIA

NB: please help me to leave Eclipse/Java for ever...
« Last Edit: November 27, 2005, 09:36:19 pm by Number42 »

sethjackson

  • Guest
Re: wx/setup.h: No such file or directory
« Reply #1 on: November 27, 2005, 10:16:32 pm »
Add WX_DIR\lib\gcc_dll\msw to linker options. :)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: wx/setup.h: No such file or directory
« Reply #2 on: November 27, 2005, 10:17:12 pm »
as far as i know, that setup.h is the result of compiling the wxWidgets library. I don't know if it is available in another format.

Check the wiki on how to compile wxWidgets so it delivers you a new wxWidgets dll, and that setup.h.

http://wiki.codeblocks.org/index.php/Compiling_wxWidgets_2.6.1_to_develop_Code::Blocks_%28MSW%29
(this is for wx 2.6.1, but also works for the sources of 2.6.2)

More I don't know about it; but I do know it procudes that setup.h

Lieven

Offline CmKaHo

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: wx/setup.h: No such file or directory
« Reply #3 on: November 27, 2005, 10:30:57 pm »
Hi,

You are is the same situation I was 9 month ago. In wxMSW-2.6.2-Setup.exe there are no compiled libraries. This is set to build your own sets libraries. If you are able to compile libs, do it according /wxWidgets-2.6.2/docs/msw/install.txt. Setup.h is a file generated during compilation - it contains you settiongs of wxWidgets. Do not use MSYS (library compiled by MSYS dont work for me - thows exceptions). Use mingw32-make -f makefile.gcc ... - it works.

If you are not able to compile libs yet - the simplest way (i used it too for starting) is to download another IDE with compiled wxWidgets and use those libraries. Using another IDE is nonsense because C::B is best  :lol:. I used MinGWStudio (http://www.parinyasoft.com - but you have to wait since new month - try it you will see) - when you run it and create project you can see correct setting of paths.

Enjoy C::B and wxWidgets - is really very good developing platform.