[solved] CodeLite can't find makedir

CodeLite installation/troubleshooting forum
Svensational
CodeLite Curious
Posts: 3
Joined: Thu Jan 16, 2014 11:49 am
Genuine User: Yes
IDE Question: C++
Contact:

[solved] CodeLite can't find makedir

Post by Svensational »

Hi. On my new System (Windows 8.1 Pro 64bit) I first installed TDM-GCC 4.8 (32/64 bit) and then CodeLite 5.4 (without wxWidgets or gcc).
I tried to compile one of my old projects and the build fails because the system isn't able to find makedir. So I added "C:\dev\CodeLite" to my PATH and makedir can be found from everywhere, but when I try to build with CodeLite the exact same error remains (new created Projects have the same problem). If I run mingw32-make on the created makefile from the shell everything works without any Problems.
In CodeLite there is a environment variable defined as "CodeLiteDir=C:\dev\CodeLite" by default, but this doesn't really help.
Am I missing something? Do I have to change any settings in CodeLite? Any help is appreciated ^^

Here is the build output from codelite, but the specific line is in german (probably forwarded from the OS) and reads "The command 'makedir' is eather written wrong or can't be found"

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f  Makefile"
"----------Building project:[ test - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/dev/CodeLite/codelitetest'
Der Befehl "makedir" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
mingw32-make.exe[1]: *** [Debug/.d] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
test.mk:85: recipe for target 'Debug/.d' failed
<built-in>:0:0: fatal error: opening dependency file ./Debug/main.o.d: No such file or directory
compilation terminated.
mingw32-make.exe[1]: *** [Debug/main.o.d] Error 1
mingw32-make.exe: *** [All] Error 2
test.mk:96: recipe for target 'Debug/main.o.d' failed
mingw32-make.exe[1]: Leaving directory 'C:/dev/CodeLite/codelitetest'
Makefile:4: recipe for target 'All' failed
0 errors, 0 warnings
Last edited by Svensational on Fri Jan 17, 2014 2:50 pm, edited 1 time in total.
Greetings, Sven
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite can't find makedir

Post by eranif »

Svensational wrote: So I added "C:\dev\CodeLite" to my PATH and makedir can be found from everywhere, but when I try to build with CodeLite the exact same error remains
This means that you have altered the PATH from within codelite

Please paste here the content of your:
settings -> environment variables

Also, the content of your project settings -> common settings -> environment

Eran
Make sure you have read the HOW TO POST thread
Svensational
CodeLite Curious
Posts: 3
Joined: Thu Jan 16, 2014 11:49 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite can't find makedir

Post by Svensational »

I haven't altered the Path in CodeLite, I just altered my user path in windows:

settings -> environment variables:

Code: Select all

CodeLiteDir=C:\dev\CodeLite
UNIT_TEST_PP_SRC_DIR=C:\UnitTest++-1.3
project settings -> common settings -> environment
empty, I created a new workspace and simple executable (g++) project

Windows user path:

Code: Select all

C:\dev\TDM-GCC-64\bin;C:\dev\CodeLite
Greetings, Sven
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite can't find makedir

Post by eranif »

Svensational wrote:I haven't altered the Path in CodeLite, I just altered my user path in windows:
This is strange.

What happens if you alter the PATH within codelite by adding this line (settings -> environment variables):

Code: Select all

PATH=C:\dev\TDM-GCC-64\bin;C:\dev\CodeLite;$PATH
Eran
Make sure you have read the HOW TO POST thread
Svensational
CodeLite Curious
Posts: 3
Joined: Thu Jan 16, 2014 11:49 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite can't find makedir

Post by Svensational »

Ok, I tested it.
Sadly it changed nothing. I also tried to add the line to the projects additional environment variables, but that also changed nothing.
I don't get it, as far as I understand CodeLite simply runs mingw32-make on the created makefile, and doing so manually works. :/

Edit:
I just tried to run make with the exact same parameters as CodeLite (earlier i just run it without any), and then nearly the same thing happens:

Code: Select all

C:\dev\CodeLite\codelitetest>mingw32-make.exe -j 4 -e -f Makefile
"----------Building project:[ test - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/dev/CodeLite/codelitetest'
<built-in>:0:0: fatal error: opening dependency file ./Debug/main.o.d: No such f
ile or directory
compilation terminated.
test.mk:98: recipe for target 'Debug/main.o.d' failed
mingw32-make.exe[1]: *** [Debug/main.o.d] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe[1]: Leaving directory 'C:/dev/CodeLite/codelitetest'
Makefile:4: recipe for target 'All' failed
mingw32-make.exe: *** [All] Error 2

Code: Select all

C:\dev\CodeLite\codelitetest>mingw32-make
"----------Building project:[ test - Debug ]----------"
mingw32-make[1]: Entering directory 'C:/dev/CodeLite/codelitetest'
g++  -c  "C:/dev/CodeLite/codelitetest/main.cpp" -g -O0 -Wall  -o ./Debug/main.o
 -I. -I.
g++ -o ./Debug/test @"test.txt" -L.
mingw32-make[1]: Leaving directory 'C:/dev/CodeLite/codelitetest'

C:\dev\CodeLite\codelitetest>Debug\test.exe
hello world
Edit 2:
Stupid me, I indeed changed the PATH variable in CodeLite and simply didn't thought about it.
In Build Settings -> Compilers -> gnu g++ -> Tools I added the compilers bin folder to the path variable, which overrides the PATH variable completely. I added the CodeLite folder and now everything works. Sry for the bother ^^"
Greetings, Sven
Post Reply