News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Building entire project using Makefile in codeblocks

Started by raj, June 16, 2010, 03:10:51 PM

Previous topic - Next topic

raj

Hi,
I am trying to build FFMPEG package using Codeblocks with GCC compiler. I created a project and I gave the Makefile(This is the Makefile used for building the complete project) as custom Makefile in project options. I included only some source files. When I tried building, got an error "mingw32-make.exe: *** virtual memory exhausted.  Stop". Are the steps I followed sufficient to build the project on Codeblocks? Can codeblocks find out all source files, include files and preprocessors using the final Makefile.

Regards,
Raj

oBFusCATed

This is not mingw-make support forum, please as in such forum/mailing list...

One simple thing to try is to invoke the make command in a cmd window.
If that works then there is something wrong with your setup or something wrong with CB.

Also see the CB's faq on the wiki.codeblocks.org ... there is a section describing what you should do to debug the build process of a project.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

raj

Thanks for your reply. I made a mistake before. I ran configure using MinGW and tried running Codeblocks after that. That caused this issue. Now I wish to run the configure command using CodeBlocks. Can some body please tell me how do I do that?

oBFusCATed

Probably you could run it in a pre-build step.

See Project->Properties or in the Build options...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

raj

I tried running it as a pre-build step already. I gave "./configure" in the pre-build step. This is how I do in MinGW. I got the following message on the output window
--------------------------------------------------------------
Running project pre-build steps
./configure
Execution of './configure' in 'D:\projects\ffmpeg\test_app' failed.
Nothing to be done.
--------------------------------------------------------------
Is this the right way to do?


oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

How do you run ./configure on windows?
Or do you use msys or cygwin ?
C::B runs its pre- and postbuildsteps in windows shell and as far as I know whether a script can be executed or not depends on the file-ending or is the script called configure.bat or configure.cmd ?

raj

Where is your ./configure script?

configure file is in the same folder as Makefile.

raj

"How do you run ./configure on windows?
Or do you use msys or cygwin ?
C::B runs its pre- and postbuildsteps in windows shell and as far as I know whether a script can be executed or not depends on the file-ending or is the script called configure.bat or configure.cmd ?"


I didnt give any commands other than ./configure in the pre-build step. As you said, windows may not be recognizing this step as it is neither .cmd nor .bat. But even after executing ./configure seperately using MinGW, codeblocks compilation using Makefile is failing. The message shown is
make.exe: *** virtual memory exhausted.  Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings

This doesnt look like a virtual memory problem. I have 4GB virtual memory. It shows the same message even after increasing to 6GB


This does nt