CodeLite 5, Can't compile

CodeLite installation/troubleshooting forum
Wolftein
CodeLite Curious
Posts: 5
Joined: Mon Feb 11, 2013 11:31 am
Genuine User: Yes
IDE Question: C++
Contact:

CodeLite 5, Can't compile

Post by Wolftein » Mon Feb 11, 2013 11:33 am

I just downloaded CodeLite + MinGW for Windows 7. I did all the steps to configurate MinGW and when i try to build my project i get this:

Code: Select all

"----------Building project:[ Voxelify - Debug ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/Administrador/Desktop/Voxelify
/Voxelify'
g++ -o ./Debug/Voxelify @"Voxelify.txt" -L.
g++: error: ECHO: No such file or directory
g++: error: está: No such file or directory
g++: error: desactivado.: No such file or directory
Voxelify.mk:76: recipe for target `Debug/Voxelify' failed
mingw32-make.exe[1]: *** [Debug/Voxelify] Error 1
mingw32-make.exe[1]: Leaving directory `C:/Users/Administrador/Desktop/Voxelify/
Voxelify'
Engine_wsp.mk:4: recipe for target `All' failed
mingw32-make.exe: *** [All] Error 2
Last edited by Wolftein on Tue Feb 12, 2013 1:19 am, edited 1 time in total.

User avatar
eranif
CodeLite Plugin
Posts: 6091
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5, Can't compile

Post by eranif » Mon Feb 11, 2013 12:56 pm

Try disabling the 'pass objects to linker via file' from:
settings -> build settings -> compilers -> g++ -> advanced -> pass objects list to the linker via file

It should work with this option disabled.
Eran
Make sure you have read the HOW TO POST thread

Wolftein
CodeLite Curious
Posts: 5
Joined: Mon Feb 11, 2013 11:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5, Can't compile

Post by Wolftein » Mon Feb 11, 2013 1:11 pm

Hello!, i got this error now :(.

Code: Select all

"----------Building project:[ Voxelify - Debug ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/Administrador/Desktop/Voxelify
/Voxelify'
g++ -o ./Debug/Voxelify   -L.
g++: fatal error: no input files
compilation terminated.
Voxelify.mk:76: recipe for target `Debug/Voxelify' failed
mingw32-make.exe[1]: *** [Debug/Voxelify] Error 1
mingw32-make.exe[1]: Leaving directory `C:/Users/Administrador/Desktop/Voxelify/
Voxelify'
Engine_wsp.mk:4: recipe for target `All' failed
mingw32-make.exe: *** [All] Error 2
I'm building from cmd.exe since if i build from CodeLite i get "Failed to start build process, command:

Code: Select all

 \COMMAND.COM /c "mingw32-make.exe -e -f  "Engine_wsp.mk"", process terminated with exit code: 0\COMMAND.COM /c "mingw32-make.exe -e -f  "Engine_wsp.mk" build"
.

The command line i'm using is

Code: Select all

mingw32-make.exe -e -f Engine_wsp.mk
Last edited by Wolftein on Tue Feb 12, 2013 1:19 am, edited 1 time in total.

User avatar
eranif
CodeLite Plugin
Posts: 6091
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5, Can't compile

Post by eranif » Mon Feb 11, 2013 1:37 pm

Its basically the same error
This is why the previous command failed.

It seems like your object list is empty, can you perform a *rebuild* and print the *entire* build output here?

Also: Please use code tags - its easier to read your 'build' output

Eran
Make sure you have read the HOW TO POST thread

Wolftein
CodeLite Curious
Posts: 5
Joined: Mon Feb 11, 2013 11:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5, Can't compile

Post by Wolftein » Tue Feb 12, 2013 12:45 am

When i click rebuild i get this

Code: Select all

Failed to start clean process, command: \COMMAND.COM /c "mingw32-make.exe -e -f  "Engine_wsp.mk" clean", process terminated with exit code: 0\COMMAND.COM /c "mingw32-make.exe -e -f  "Engine_wsp.mk""
If i use command line clean is working

Code: Select all

C:\Users\Administrador\Desktop\Voxelify\Voxelify>mingw32-make.exe -e -f Voxelify
.mk clean
rm -f ./Debug/src_CPlugin.o
rm -f ./Debug/src_CPlugin.o.d
rm -f ./Debug/src_CPlugin.o.i
rm -f ./Debug/src_CPluginLua.o
rm -f ./Debug/src_CPluginLua.o.d
rm -f ./Debug/src_CPluginLua.o.i
rm -f ./Debug/src_CPluginManager.o
rm -f ./Debug/src_CPluginManager.o.d
rm -f ./Debug/src_CPluginManager.o.i
rm -f ./Debug/src_ProtocolBuffer.o
rm -f ./Debug/src_ProtocolBuffer.o.d
rm -f ./Debug/src_ProtocolBuffer.o.i
rm -f ./Debug/src_ScriptEngine.o
rm -f ./Debug/src_ScriptEngine.o.d
rm -f ./Debug/src_ScriptEngine.o.i
rm -f ./Debug/Voxelify
rm -f ./Debug/Voxelify.exe
rm -f "../.build-debug/Voxelify"
Build isn't

Code: Select all

C:\Users\Administrador\Desktop\Voxelify\Voxelify>mingw32-make.exe -e -f Voxelify
.mk
g++ -o ./Debug/Voxelify   -L.
g++: fatal error: no input files
compilation terminated.
Voxelify.mk:76: recipe for target `Debug/Voxelify' failed
mingw32-make.exe: *** [Debug/Voxelify] Error 1

User avatar
eranif
CodeLite Plugin
Posts: 6091
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5, Can't compile

Post by eranif » Tue Feb 12, 2013 12:59 am

Can you upload the makefile?
The interesting part is that codelite is using \COMMAND.COM
which means that you don't have the environment variable 'COMSPEC' set in your system (first time I have seen this...)

Can you please set COMSPEC environment variable (make it pointing to cmd.exe, usually its under C:\Windows\System32\cmd.exe)


On my WIndows 7:

Code: Select all

C:\src\codelitegit\build-release>echo %COMSPEC%
C:\Windows\system32\cmd.exe
Which OS are you using? (i.e. which windows version)

Eran
Make sure you have read the HOW TO POST thread

Wolftein
CodeLite Curious
Posts: 5
Joined: Mon Feb 11, 2013 11:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5, Can't compile

Post by Wolftein » Tue Feb 12, 2013 1:16 am

Eran, i'm using Windows 7 and %COMSPEC% was already in the system.

Code: Select all

C:\Users\Administrador>echo %COMSPEC%
C:\Windows\system32\cmd.exe

User avatar
eranif
CodeLite Plugin
Posts: 6091
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5, Can't compile

Post by eranif » Tue Feb 12, 2013 9:17 am

Wolftein wrote:Failed to start clean process, command: \COMMAND.COM /c "mingw32-make.exe -e -f  "Engine_wsp.mk" clean", process terminated with exit code: 0\COMMAND.COM /c "mingw32-make.exe -e -f  "Engine_wsp.mk""
This line suggests otherwise...

Did you modify it somehow in codelite's environment variables settings?

Eran
Make sure you have read the HOW TO POST thread

Wolftein
CodeLite Curious
Posts: 5
Joined: Mon Feb 11, 2013 11:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 5, Can't compile

Post by Wolftein » Tue Feb 12, 2013 10:48 am

I followed this instruction (http://codelite.org/LiteEditor/InstallingMinGW). Then i executed the IDE, create a new project and try to build it. I didn't change anything, i did what you told me, and still nothing :(.

Workspace makefile:

Code: Select all

.PHONY: clean All

All:
	@echo "----------Building project:[ Voxelify - Debug ]----------"
	@cd "Voxelify" && $(MAKE) -f  "Voxelify.mk"
clean:
	@echo "----------Cleaning project:[ Voxelify - Debug ]----------"
	@cd "Voxelify" && $(MAKE) -f  "Voxelify.mk" clean
Project makefile:

Code: Select all

##
## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased      
##
## Debug
ProjectName            :=Voxelify
ConfigurationName      :=Debug
WorkspacePath          := "C:\Users\Administrador\Desktop\Voxel"
ProjectPath            := "C:\Users\Administrador\Desktop\Voxel\Voxelify"
IntermediateDirectory  :=./Debug
OutDir                 := $(IntermediateDirectory)
CurrentFileName        :=
CurrentFilePath        :=
CurrentFileFullPath    :=
User                   :=Administrador
Date                   :=11/02/2013
CodeLitePath           :="C:\Program Files (x86)\CodeLite"
LinkerName             :=g++
SharedObjectLinkerName :=g++ -shared -fPIC
ObjectSuffix           :=.o
DependSuffix           :=.o.d
PreprocessSuffix       :=.o.i
DebugSwitch            :=-gstab
IncludeSwitch          :=-I
LibrarySwitch          :=-l
OutputSwitch           :=-o 
LibraryPathSwitch      :=-L
PreprocessorSwitch     :=-D
SourceSwitch           :=-c 
OutputFile             :=$(IntermediateDirectory)/$(ProjectName)
Preprocessors          :=
ObjectSwitch           :=-o 
ArchiveOutputSwitch    := 
PreprocessOnlySwitch   :=-E 
ObjectsFileList        :="Voxelify.txt"
PCHCompileFlags        :=
MakeDirCommand         :=makedir
RcCmpOptions           := 
RcCompilerName         :=windres
LinkOptions            :=  
IncludePath            :=  $(IncludeSwitch). $(IncludeSwitch). 
IncludePCH             := 
RcIncludePath          := 
Libs                   := 
ArLibs                 :=  
LibPath                := $(LibraryPathSwitch). 

##
## Common variables
## AR, CXX, CC, CXXFLAGS and CFLAGS can be overriden using an environment variables
##
AR       := ar rcus
CXX      := g++
CC       := gcc
CXXFLAGS :=  -g -O0 -Wall $(Preprocessors)
CFLAGS   :=  -g -O0 -Wall $(Preprocessors)


##
## User defined environment variables
##
CodeLiteDir:=C:\Program Files (x86)\CodeLite
UNIT_TEST_PP_SRC_DIR:=C:\Program Files (x86)\UnitTest
PATH:=$(PATH);c:\Program Files (x86)\MinGW\bin\
Objects0=$(IntermediateDirectory)/main$(ObjectSuffix) 

Objects=$(Objects0) 

##
## Main Build Targets 
##
.PHONY: all clean PreBuild PrePreBuild PostBuild
all: $(OutputFile)

$(OutputFile): $(IntermediateDirectory)/.d $(Objects) 
	@$(MakeDirCommand) $(@D)
	@echo "" > $(IntermediateDirectory)/.d
	@echo $(Objects0)  > $(ObjectsFileList)
	$(LinkerName) $(OutputSwitch)$(OutputFile) $(Objects) $(LibPath) $(Libs) $(LinkOptions)

$(IntermediateDirectory)/.d:
	@$(MakeDirCommand) "./Debug"

PreBuild:


##
## Objects
##
$(IntermediateDirectory)/main$(ObjectSuffix): main.cpp $(IntermediateDirectory)/main$(DependSuffix)
	$(CXX) $(IncludePCH) $(SourceSwitch) "C:/Users/Administrador/Desktop/Voxel/Voxelify/main.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/main$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/main$(DependSuffix): main.cpp
	@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main$(ObjectSuffix) -MF$(IntermediateDirectory)/main$(DependSuffix) -MM "main.cpp"

$(IntermediateDirectory)/main$(PreprocessSuffix): main.cpp
	@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main$(PreprocessSuffix) "main.cpp"


-include $(IntermediateDirectory)/*$(DependSuffix)
##
## Clean
##
clean:
	$(RM) $(IntermediateDirectory)/main$(ObjectSuffix)
	$(RM) $(IntermediateDirectory)/main$(DependSuffix)
	$(RM) $(IntermediateDirectory)/main$(PreprocessSuffix)
	$(RM) $(OutputFile)
	$(RM) $(OutputFile).exe
	$(RM) "../.build-debug/Voxelify"



Post Reply