User forums > Help
wxWidgets 2.6 (MSW, GCC) installation instructions
S_O:
--- Quote from: mandrav on December 03, 2005, 01:46:19 pm ---People here are trying to tell you that you must not use MSYS at all.
Downloading only make, is not going to help you. You 're still using GCC from MSYS...
If you want to use makefiles to build it, you *must* not use MSYS.
To use MSYS, try the "./configure" approach.
--- End quote ---
I´m not using MSYS at all (at least not knowingly).
Is it impossible to compile wxWidgets with MSYS installed (installed, not used)? How do I compile it without using MSYS? I use command-prompt, but probably it still uses all the MSYS tools.
Also the problem seems to be the sh.exe.The sh.exe is only part of MSYS, not of my MinGW installation. GCC is in MinGW and MSYS.
MortenMacFly:
--- Quote from: S_O on December 03, 2005, 02:31:57 pm ---How do I compile it without using MSYS?
--- End quote ---
You have MSYS in your PATH environment set before the path that holds the mingw-make. So eighter you fix your PATH environment to first point to the path with mingw-make or (more secure) just rename the MSYS folder for the time compiling wxWidgets.
Morten.
Ps: Of course you can also just remove the MSYS entry in your PATH - I am using MSYS myself and I don't need this to be in the PATH at all.
Lamego:
You do not need to install MSYS to compile wxWidgets, if you have installed codeblocks+mingw it already includes everything thats needed.
Just grab the wxMSW source and extract it to C:\wxWidgets-2.6.2 (us this path if you dont want to touch the wxwidgets template later).
Now from a command prompt window type :
PATH=%PATH%;C:\Program Files\CodeBlocks\bin
cd \wxWidgets-2.6.2\build\msw
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb
This will build a codeblocks ready MSW .
S_O:
MSYS wasn´t the problem: WinAVR (a AVR-RISC-Microcontroller-IDE also containing special versions of make and gcc) was the problem. After renaming the winavr-folder it worked. Currently wxWidgets is compiling :D
Edit:
Compiling is complete, I created a new wxWidgets-Project, but project refuses compiling:
--- Code: ---main.cpp:24: error: call of overloaded `wxMenu(const char[1])' is ambiguous
C:/wxWidgets-2.6.2/include/wx/msw/menu.h:122: note: candidates are: wxMenu::wxMenu(const wxMenu&) <near match>
C:/wxWidgets-2.6.2/include/wx/msw/menu.h:59: note: wxMenu::wxMenu(long int) <near match>
C:/wxWidgets-2.6.2/include/wx/msw/menu.h:57: note: wxMenu::wxMenu(const wxString&, long int) <near match>
main.cpp:28: error: call of overloaded `wxMenu(const char[1])' is ambiguous
C:/wxWidgets-2.6.2/include/wx/msw/menu.h:122: note: candidates are: wxMenu::wxMenu(const wxMenu&) <near match>
C:/wxWidgets-2.6.2/include/wx/msw/menu.h:59: note: wxMenu::wxMenu(long int) <near match>
C:/wxWidgets-2.6.2/include/wx/msw/menu.h:57: note: wxMenu::wxMenu(const wxString&, long int) <near match>
Process terminated with status 1 (0 minutes, 0 seconds)
--- End code ---
After outcommenting the code it compiles fine. Is it a bug in CodeBlocks or is something with my installtion wrong?
Also is there any better solution for the wxWidgets library: Even the smallest Programm needs this 10MB dll. Can I compile it somehow different that it only includes the suff I need directly in the exe (SHARED=0 MONOLITHIC=0) or more dlls (SHARED=1 MONOLITHIC=0)?
Gregorius:
Anytime I try to compile I get this error:
--- Code: ---C:\Dev\wxWidgets-2.6.2\build\msw>mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb
if not exist gcc_mswdll mkdir gcc_mswdll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: [gcc_mswdll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: *** [..\..\lib\gcc_dll] Error 2
--- End code ---
CodeBlocks 1.0rc2
wxWidgets 2.6.2
Exactly the same error I get if I use MinGW or make downloaded separately.
I even tried with MSYS - exactly the same...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version