win7, new install, build uses 'make' not 'mingw32-make'

CodeLite installation/troubleshooting forum
dlh
CodeLite Enthusiast
Posts: 24
Joined: Wed Oct 07, 2009 8:41 am
Genuine User: Yes
IDE Question: C++
Contact:

win7, new install, build uses 'make' not 'mingw32-make'

Post by dlh »

downloaded/installed codelite-3.0.0.5041-mingw4.4.1-wx2.9.2.exe

downloaded/extracted codelite-3.0.0.5041.tar.gz

opened command prompt

set path to c:\mingw-4.4.1\bin;%path%

started c:\program files (x86)\codelite\codelite.exe

opened c:\dev\codelite\\codelite-3.0.0.5041\LiteEditor.workspace

Attempted build

Codelite attempts to use 'make' rather than 'mingw32-make'

From 'Build Settings'/tab-'Build Systems' browsed for c:\mingw-4.4.1\bin\mingw32-make and selected, reflected in dialog field

OK'd out of dialogs, closed CodeLite, restarted.

CodeLite started with LiteEditor.workspace open

Attempted build again, but still attempting to use 'make', instead of mingw32-make.

What do I need to do to get this version of codelite to build itself? (And possibly anything else, I thought 'itself' was a good starting point.)

Thanks.

[EDIT]
(here's build log output)

Code: Select all

----------Build Started--------
MESSAGE: Entering directory `C:\dev\codelite\codelite-3.0.0.5041\'
C:\Windows\system32\cmd.exe /c "make -j 4"
----------Building project:[ LiteEditor - Unix_Make_J ]----------
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
Incorrect command line argument: -j

Syntax: MAKE [options ...] target[s]
    -B                Builds all targets regardless of dependency dates
    -Dsymbol[=string] Defines symbol [equal to string]
    -Idirectory       Names an include directory
    -K                Keeps (does not erase) temporary files created by MAKE
    -N                Increases MAKE's compatibility with NMAKE
    -Wfilename        Writes MAKE to filename updating all non-string options
    -Usymbol          Undefine symbol
    -ffilename        Uses filename as the MAKEFILE
    -a                Performs auto-dependency checks for include files
    -c                Caches auto-dependency information
    -e                Ignores redefinition of environment variable macros
    -i                Ignores errors returned by commands
    -l+               Enables use of long command lines
    -m                Displays the date and time stamp of each file
    -n                Prints commands but does not do them
    -p                Displays all macro definitions and implicit rules
    -q                Returns zero if target is up-to-date and nonzero
                      if it is not (for use in batch files)
    -r                Ignores rules and macros defined in BUILTINS.MAK
    -s                Silent, does not print commands before doing them
    -? or -h          Prints this message
      Options marked with '+' are on by default. To turn off a default
      option follow it by a '-', for example: -a-----------Build Ended----------
0 errors, 0 warnings
Last edited by dlh on Thu Oct 20, 2011 6:55 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: win7, new install, build uses 'make' not 'mingw32-make'

Post by eranif »

dlh wrote:set path to c:\mingw-4.4.1\bin;%path%
Not needed, if you installed MinGW provided by codelite, codelite does it for you

Please provide the build log

Eran
Make sure you have read the HOW TO POST thread
dlh
CodeLite Enthusiast
Posts: 24
Joined: Wed Oct 07, 2009 8:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: win7, new install, build uses 'make' not 'mingw32-make'

Post by dlh »

It is at the bottom of the original post. (I had added shortly after original post. Hmm, based on message timestamps, maybe not quick enough for you to see.)
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: win7, new install, build uses 'make' not 'mingw32-make'

Post by eranif »

You are building the wrong build configuration.

At the top of the 'Workspace' tab, make sure that you select WinReleaseUnicode and NOT 'Unix_Custom_Make'

Also, please use code tags for build logs etc - its easier to read ( I have edited your post)
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: win7, new install, build uses 'make' not 'mingw32-make'

Post by eranif »

You are building the wrong build configuration.

At the top of the 'Workspace' tab, make sure that you select WinReleaseUnicode and NOT 'Unix_Custom_Make'

Also, please use code tags for build logs etc - its easier to read ( I have edited your post)
Eran
Make sure you have read the HOW TO POST thread
dlh
CodeLite Enthusiast
Posts: 24
Joined: Wed Oct 07, 2009 8:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: win7, new install, build uses 'make' not 'mingw32-make'

Post by dlh »

OK, use code tags.

Selecting that build target addressed make issue, but still doesn't build, invalid argument '@<...>\PCH.txt', starting different thread.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: win7, new install, build uses 'make' not 'mingw32-make'

Post by eranif »

Same as before: please post the complete build log

Eran
Make sure you have read the HOW TO POST thread
benz0073
CodeLite Curious
Posts: 2
Joined: Thu Nov 17, 2011 10:11 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: win7, new install, build uses 'make' not 'mingw32-make'

Post by benz0073 »

I am having the same problem im trying to build a simple hello world.
but its not working here is the program:
------------------------------------------
#include <iostream>
using namespace std;

int main()
{
cout<<"hello world"<<endl;
return 0;
}
------------------------------------------
Here is the build:
----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "testing_wsp.mk""
'"mingw32-make.exe"' is not recognized as an internal or external command,
operable program or batch file.
----------Build Ended----------
0 errors, 0 warnings

Also
-------------------------------
Current working directory: C:\Users\Benson\Documents\c++\testing
Running program: le_exec.exe ./testing
Program exited with return code: 2686672
--------------------------------------------------

Downloaded version:codelite-3.0.0.5041.exe
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: win7, new install, build uses 'make' not 'mingw32-make'

Post by eranif »

benz0073 wrote:Downloaded version:codelite-3.0.0.5041.exe
You downloaded the IDE only, you should download the version that includes the compiler..

http://sourceforge.net/projects/codelit ... e/download

Eran
Make sure you have read the HOW TO POST thread
benz0073
CodeLite Curious
Posts: 2
Joined: Thu Nov 17, 2011 10:11 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: win7, new install, build uses 'make' not 'mingw32-make'

Post by benz0073 »

Thank for the quick reply, now it works :)
Post Reply