User forums > Using Code::Blocks

Errors building with mingw

<< < (2/2)

Biplab:

--- Quote from: CDarcey on August 15, 2007, 07:32:38 am ---OK this is making sense, I did not realise that this build step was necessary until searching for instructions on howto.
Question: can you point me to some instructions for compiling wxWidgets using minGW that work. I have found a couple but these refer to v2.6.4 and fail anyway.

--- End quote ---

Remove reference to MSYS (C:\msys\1.0\bin) from PATH. Now open a command prompt and change the current directory to <wx-dir>\build\msw. Now issue the following command (an example).

--- Code: ---mingw32-make -f makefile.gcc BUILD=release SHARED=1 UNICODE=1 MONOLITHIC=1
--- End code ---
If everything is ok, it will take about 15-20 mins (approx).

CDarcey:
Success!. Thank you for the assistance, especially appreciated as this turned to be dumb user with wxWidgets and Code::Blocks the inocent victim.

dje:
Hi !


--- Quote from: CDarcey on August 15, 2007, 03:22:28 am ---Build first came up with error: Platform.h (196) wx/setup.h not found.
I copied setup.h from wx/msw to try this out.

--- End quote ---

I don't know if you still have your copy, but normally, wxWidgets build process copies setup.h in a directory and you have to put this directory in the search directories of the project settings of the compiler. This directory is for me :
C:\DevSofts\wxWidgets-2.8.4\lib\gcc_dll\mswu\wx where
where mswu may be replaced by msw$(SUFFIX) to be more portable

Dje

Navigation

[0] Message Index

[*] Previous page

Go to full version