Author Topic: compiling wxwidgets with mingw  (Read 5150 times)

Offline rwn

  • Single posting newcomer
  • *
  • Posts: 2
compiling wxwidgets with mingw
« on: June 24, 2010, 11:19:35 pm »
Ok so I downloaded and changed the directory within codeblocks to the custom dir where the mingw dir is at...(d:\MinGW)

and i get this error while compiling...
Compiling: boredMain.cpp
Execution of 'mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -Wall  -O2    -ID:\wxWidgets2.8\wxWidgets2.8\include -ID:\wxWidgets2.8\wxWidgets2.8\contrib\include -ID:\wxWidgets2.8\wxWidgets2.8\lib\gcc_dll\mswu  -c D:\_Dev\Code\001-Practice\bored\boredMain.cpp -o obj\Release\boredMain.o' in 'D:\_Dev\Code\001-Practice\bored' failed.
Nothing to be done.


Just wondering if anyone out there can give me a hand...I have a diff version of it that works great in my laptop but don't see any differences in the setup within codeblocks.

Offline kencamargo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: compiling wxwidgets with mingw
« Reply #1 on: June 25, 2010, 03:06:59 am »
Ok so I downloaded and changed the directory within codeblocks to the custom dir where the mingw dir is at...(d:\MinGW)

and i get this error while compiling...
Compiling: boredMain.cpp
Execution of 'mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -Wall  -O2    -ID:\wxWidgets2.8\wxWidgets2.8\include -ID:\wxWidgets2.8\wxWidgets2.8\contrib\include -ID:\wxWidgets2.8\wxWidgets2.8\lib\gcc_dll\mswu  -c D:\_Dev\Code\001-Practice\bored\boredMain.cpp -o obj\Release\boredMain.o' in 'D:\_Dev\Code\001-Practice\bored' failed.
Nothing to be done.


Just wondering if anyone out there can give me a hand...I have a diff version of it that works great in my laptop but don't see any differences in the setup within codeblocks.


"Nothing to be done" may mean that the object file was already created, can you check that?
That line is not enough to create an app, it just has the instructions to compile a source file to obj format. Have you set up your project with the wxWidgets new project wizard?

Ken

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: compiling wxwidgets with mingw
« Reply #2 on: June 25, 2010, 06:22:52 am »
Your post lacks a lot of information:
which OS, which version of C::B and whic version of MinGW do you use ?

Dou you have a mingw32-g++.exe in your MinGW installation ?
And what happens if you try to compile from commandline ?

Offline rwn

  • Single posting newcomer
  • *
  • Posts: 2
Re: compiling wxwidgets with mingw
« Reply #3 on: June 26, 2010, 07:56:48 pm »
Thanks apparently the version I downloaded doesn't have mingw32-g++.exe in the bin directory...I'll try to be more clear next time :)

As far as details:
Os WinXP
Mingw: 3.4.5
Codeblocks: svn 6271

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: compiling wxwidgets with mingw
« Reply #4 on: June 27, 2010, 12:07:54 am »
Thanks apparently the version I downloaded doesn't have mingw32-g++.exe in the bin directory...I'll try to be more clear next time :)

Then install the Compiler correctly; or use a different compiler that was installed correctly.
Note: if an file with a name "g++" exists, the copy it to name of "mingw32-g++.exe" or change your Code::Blocks compiler config to match the name of "g++".

Tim S.
« Last Edit: June 27, 2010, 04:07:54 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org