Installing in Code::Blocks with MinGW and no MSYS or CYGWIN

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Meta
Earned a small fee
Earned a small fee
Posts: 11
Joined: Thu Sep 17, 2009 10:25 am

Post by Meta »

Alright, here it is.
I omitted -d.
Attachments
output.txt
(225.67 KiB) Downloaded 124 times
jmason1182
Earned some good credits
Earned some good credits
Posts: 149
Joined: Fri Dec 14, 2007 3:40 pm
Location: Midland, TX
Contact:

Post by jmason1182 »

OK... so here's the fun part. The contents of that file are the actual command that will be used when making the library. So start running them.... yeah, this will take a while.

Maybe change the filename of that output.txt to output.bat so that when it fails you'll see the last instruction.

We need to know which instruction fails so we can figure out which program is having an issue.

The good new is that by doing this, you WILL actually be starting the build process. So if you get to the end of the file and no errors, then congrats you just built the library and I will have no idea why.

Let me know which line exactly causes an issue.
John A. Mason
Midland, TX
Meta
Earned a small fee
Earned a small fee
Posts: 11
Joined: Thu Sep 17, 2009 10:25 am

Post by Meta »

Okay, I executed the output file as a .bat (of course on the windows command line).

He did lots of command lines without error.
At the end it executed a very long line, printed the message
"Line is too long" and finished.

I'm not aware of any error messages, and I cannot copy the whole shell output, since I am not able to scroll.

Enclosed, the last output I could copy.


After the whole process, I've got lots of Object Files (.o)
and .o.d files in the new directory ..\build\msw\gcc_mswud .
Weird...
Attachments
output-output.txt
(5.18 KiB) Downloaded 142 times
jmason1182
Earned some good credits
Earned some good credits
Posts: 149
Joined: Fri Dec 14, 2007 3:40 pm
Location: Midland, TX
Contact:

Post by jmason1182 »

OK, here's the good news: if you have the object files then you have compiled most of the wxWidgets code.

Here's the bad news: the CMD line can't do the final linking/compiling because it has to list ALL of those object files in one command! (hence why we use mingw32-make in the first place!)

So now we know that the problem lies in the make system. Go ahead and give it a try with the mingw32-make -d ...

That way it should tell us which make statement is calling some program. Oh, and if the output gets too long, then just append the "> output.txt" to save the output in the file.
John A. Mason
Midland, TX
Meta
Earned a small fee
Earned a small fee
Posts: 11
Joined: Thu Sep 17, 2009 10:25 am

Post by Meta »

I'm sorry, but I don't understand the next move; what shall I execute now??
jmason1182
Earned some good credits
Earned some good credits
Posts: 149
Joined: Fri Dec 14, 2007 3:40 pm
Location: Midland, TX
Contact:

Post by jmason1182 »

Code: Select all

mingw32-make -d -f makefile.gcc SHARED=0 BUILD=debug UNICODE=1 MONOLITHIC=1 CFG="" VENDOR="" > output.txt
Remember to put the -d in this time. Supposedly this will show you each command and it's output, so let's see which command caused the issue.

I believe mingw is setup with something interesting. I'm trying to see if there is an environment variable or other config item that is causing make to run something that doesn't even exist.
John A. Mason
Midland, TX
Meta
Earned a small fee
Earned a small fee
Posts: 11
Joined: Thu Sep 17, 2009 10:25 am

Post by Meta »

Here is the Output by command line.

Code: Select all

C:\Programmierung\cpp_libs\wxWidgets-2.8.10\build\msw>mingw32-make -d -f makefile.gcc SHARED=0 BUILD=debug UNI
CODE=1 MONOLITHIC=1 CFG="" VENDOR="" > output.txt
Der Befehl "C:\DOKUME~1\FLO" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
mingw32-make: *** [..\..\lib\gcc_lib\mswud] Error 1

C:\Programmierung\cpp_libs\wxWidgets-2.8.10\build\msw>

Output File is about 10mb now, i will upload it in parts later.

EDIT: 3/22 up
Attachments
03.txt
(490.05 KiB) Downloaded 114 times
02.txt
(490.37 KiB) Downloaded 119 times
01.txt
(490.48 KiB) Downloaded 128 times
Post Reply