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

Offline mvanlint

  • Single posting newcomer
  • *
  • Posts: 3
wx/setup.h: No such file or directory
« on: June 11, 2008, 09:54:09 pm »
Hi,

On Ubuntu it runs fine.
On Windows there is this error saying that it cannot find setup.h (using mingw as the compiler).
Using Google I found many links to this problem. As far as I understand, I should be compiling the wxWidgets source code for the Windows platform?
However most links are old. Since I was able to download a Windows installation binary of wxWidgets, I figured that it should work. Obviously, it does not.
So, do I have to compile the source code? - but wxWidget's web site does not mention this and the Google links are dated...
Any solutions?

Thanks in advance,
Michel
« Last Edit: June 12, 2008, 12:05:31 am by mvanlint »

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: wx/setup.h: No such file or directory
« Reply #1 on: June 12, 2008, 02:33:07 am »
Try the wxWindowsQuickRef, from the Code::Blocks Wiki.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline mvanlint

  • Single posting newcomer
  • *
  • Posts: 3
Re: wx/setup.h: No such file or directory
« Reply #2 on: June 12, 2008, 09:34:46 pm »
Thank you, compiling the source code resolved the problem!

Unfortunately, I now have another and I am not sure what to make of it.
When trying to link the project, this results in:

Linking executable: bin\Debug\test.exe
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: C:\wxWidgets-2.8.7\lib\gcc_dll\mswu: No such file: Permission denied

Linker options:
C:\wxWidgets-2.8.7\lib\gcc_dll\mswu

This directory does exist, however.

Any suggestions?

Thank you,
Michel

Edit: Since I had wxWidgets compiled while sleeping, I am compiling it again, because Windows had crashed after I woke up. Perhaps not all of the files were written correctly. I guess so, because, when trying to create a new project, CodeBlocks keeps saying that wxWidgets was compiled using different settings (although I selected shared, monolithic, and unicode). If it still doesn't work, I may give wxPack a try...
« Last Edit: June 12, 2008, 10:13:53 pm by mvanlint »

Offline mvanlint

  • Single posting newcomer
  • *
  • Posts: 3
Re: wx/setup.h: No such file or directory
« Reply #3 on: June 12, 2008, 11:10:31 pm »
Unfortunately, nothing has changed after recompiling...

I did notice, that I should not select the option to create debug information, when creating a new project. If I do,  CodeBlocks gives me a warning that  "A matching Debug configuration cannot be found in the wxWidgets directory you specified".
The directory I specified  is "C:\wxWidgets-2.8.7\", but I tried many directories, in fact...

Edit:
I am running Windows in Virtual Box (Ubuntu as host). I will try CodeBlocks again in Windows as host, without Virtual Box...


« Last Edit: June 12, 2008, 11:41:46 pm by mvanlint »

ndatech

  • Guest
Re: wx/setup.h: No such file or directory
« Reply #4 on: August 01, 2008, 08:34:46 pm »
Hi mvanlint ,

did you solved the problem ?

I'm experiencing the same issue. I developed an application on OpenSUSE 10.3 with Code::Blocks 8.02 an wxFormBuilder and every thing works fine, but, suddenly, I have to comply for Windows too.
I created a new target (DebugMSW) in order to change settings without affecting the DebugGTK and ReleaseGTK targets. I tried in any way to configure Code::Blocks to have it to copile but with no success.

I'm working with wxWidgets-2.8.8 (compiled from source in debug and release mode too), Code::Blocks 8.02 and VS2005 compiler.

Now I created a sample project on Windows from scratch: that compiles but linking fails missing some dependencies:

That's the output:

Code
prova_wxcbApp.obj||error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxApp::Initialize(int &,wchar_t * *)" (?Initialize@wxApp@@UAE_NAAHPAPA_W@Z)|
prova_wxcbApp.obj||error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAppConsole::OnAssertFailure(wchar_t const *,int,wchar_t const *,wchar_t const *,wchar_t const *)" (?OnAssertFailure@wxAppConsole@@UAEXPB_WH000@Z)|
prova_wxcbApp.obj||error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAppConsole::OnAssert(wchar_t const *,int,wchar_t const *,wchar_t const *)" (?OnAssert@wxAppConsole@@UAEXPB_WH00@Z)|
prova_wxcbApp.obj||error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(wchar_t const *)" (__imp_??0wxString@@QAE@PB_W@Z) referenced in function "public: virtual bool __thiscall prova_wxcbApp::OnInit(void)" (?OnInit@prova_wxcbApp@@UAE_NXZ)|
prova_wxcbMain.obj||error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(wchar_t const *)" (__imp_??0wxString@@QAE@PB_W@Z)|
GUIFrame.obj||error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(wchar_t const *)" (__imp_??0wxString@@QAE@PB_W@Z)|
prova_wxcbMain.obj||error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxString & __thiscall wxString::operator<<(wchar_t const *)" (__imp_??6wxString@@QAEAAV0@PB_W@Z) referenced in function "class wxString __cdecl wxbuildinfo(enum wxbuildinfoformat)" (?wxbuildinfo@@YA?AVwxString@@W4wxbuildinfoformat@@@Z)|
GUIFrame.obj||error LNK2001: unresolved external symbol "__declspec(dllimport) wchar_t const * const wxStatusLineNameStr" (__imp_?wxStatusLineNameStr@@3QB_WB)|
GUIFrame.obj||error LNK2019: unresolved external symbol "__declspec(dllimport) class wxString __cdecl operator+(class wxString const &,wchar_t const *)" (__imp_??H@YA?AVwxString@@ABV0@PB_W@Z) referenced in function "public: __thiscall GUIFrame::GUIFrame(class wxWindow *,int,class wxString,class wxPoint,class wxSize,int)" (??0GUIFrame@@QAE@PAVwxWindow@@HVwxString@@VwxPoint@@VwxSize@@H@Z)|
GUIFrame.obj||error LNK2019: unresolved external symbol "__declspec(dllimport) class wxString __cdecl operator+(class wxString const &,wchar_t)" (__imp_??H@YA?AVwxString@@ABV0@_W@Z) referenced in function "public: __thiscall GUIFrame::GUIFrame(class wxWindow *,int,class wxString,class wxPoint,class wxSize,int)" (??0GUIFrame@@QAE@PAVwxWindow@@HVwxString@@VwxPoint@@VwxSize@@H@Z)|
GUIFrame.obj||error LNK2001: unresolved external symbol "__declspec(dllimport) wchar_t const * const wxFrameNameStr" (__imp_?wxFrameNameStr@@3QB_WB)|
bin\Debug\prova_wxcb.exe||fatal error LNK1120: 9 unresolved externals|
||=== Build finished: 12 errors, 0 warnings ===|

I noticed that the project created from Windows host adds some flags and many other settings to the target, so I'll try to copy then to my real project and , hopefully , success in compiling (next issue will be linking).

Any suggestion ?

Regards

Nicola

---
http://www.ndatech.it