Can't Build My Projects

General questions regarding the usage of CodeLite
User avatar
ColleenKobe
CodeLite Expert
Posts: 130
Joined: Wed Mar 30, 2016 4:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

Can't Build My Projects

Post by ColleenKobe »

I have a CodeLite workspace with two C-language projects, and one C++ wxWidgets GUI project. I use MinGW.

My builds have worked fine for years, but recently I did something terrible. I don't know what it was, but now CodeLite won't build, and I don't know how to fix it.

Last week, I started getting the following error messages when I tried to Rebuild the workspace:

Code: Select all

C:\WINDOWS\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  "Background.mk"  MakeIntermediateDirs && C:/MinGW/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  "Background.mk"  all
----------Building project:[ Background - Debug ]----------
C:/MinGW/bin/g++.exe -shared -fPIC -o C:/PF/IRT/UHSD/v3.g/UHSD_bg.dll @"Background.txt" -LC:\PF\IRT\UHSD\v3.g -L../Resources  -lFTD3XX
g++.exe: error: ECHO: No such file or directory
g++.exe: error: is: No such file or directory
g++.exe: error: off.: No such file or directory
mingw32-make.exe: *** [C:/PF/IRT/UHSD/v3.g/UHSD_bg.dll] Error 1
Background.mk:80: recipe for target 'C:/PF/IRT/UHSD/v3.g/UHSD_bg.dll' failed
====0 errors, 0 warnings====
C:\WINDOWS\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  "Behind_the_Scenes.mk"  MakeIntermediateDirs && C:/MinGW/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  "Behind_the_Scenes.mk"  all
----------Building project:[ Behind_the_Scenes - Debug ]----------
C:/MinGW/bin/g++.exe -shared -fPIC -o C:/PF/IRT/UHSD/v3.g/UHSD_bts.dll @"Behind_the_Scenes.txt" -LC:/PF/IRT/UHSD/v3.g -L../Resources  -lftd3xx -luhsd_bg
g++.exe: error: ECHO: No such file or directory
g++.exe: error: is: No such file or directory
g++.exe: error: off.: No such file or directory
mingw32-make.exe: *** [C:/PF/IRT/UHSD/v3.g/UHSD_bts.dll] Error 1
Behind_the_Scenes.mk:83: recipe for target 'C:/PF/IRT/UHSD/v3.g/UHSD_bts.dll' failed
====0 errors, 0 warnings====
C:\WINDOWS\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  "Main.mk"  MakeIntermediateDirs && C:/MinGW/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  "Main.mk"  all
----------Building project:[ Main - Debug ]----------
C:/MinGW/bin/g++.exe -o C:/PF/IRT/UHSD/v3.g/UHSD-v3.g.exe @"Main.txt" -L. -LC:/PF/IRT/UHSD/v3.g -LF:\SBIR_Phase_II\Resources  -luhsd_bg -luhsd_bts -lftd3xx   -mthreads -Lc:/wxWidgets/lib/gcc_dll -lwxmsw31ud_richtext -lwxmsw31ud_xrc -lwxmsw31ud_aui -lwxmsw31ud_html -lwxmsw31ud_adv -lwxmsw31ud_core -lwxbase31ud_xml -lwxbase31ud_net -lwxbase31ud -lwxscintillad -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  -mwindows
g++.exe: error: ECHO: No such file or directory
g++.exe: error: is: No such file or directory
g++.exe: error: off.: No such file or directory
mingw32-make.exe: *** [C:/PF/IRT/UHSD/v3.g/UHSD-v3.g.exe] Error 1
Main.mk:81: recipe for target 'C:/PF/IRT/UHSD/v3.g/UHSD-v3.g.exe' failed
====0 errors, 0 warnings====

I can see the g++ error messages all come from "ECHO is off." which is displayed when a batch file contains the command "echo off".

After the failed build, the file Background.txt contains:

Code: Select all

ECHO is off.

The file Behind_the_Scenes.txt contains:

Code: Select all

ECHO is off.

The file Main.txt contains:

Code: Select all

ECHO is off.

But I don't know why those files contain that text, and I don't know what's supposed to be there instead, or how to get whatever text is supposed to be in there, IN there.

I have tried uninstalling and reinstalling MinGW, wxWidgets, and CodeLite, and I still get these error messages.

Suggestions?

Thank you!

Colleen

User avatar
ColleenKobe
CodeLite Expert
Posts: 130
Joined: Wed Mar 30, 2016 4:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Can't Build My Projects

Post by ColleenKobe »

Never mind, I found the problems and fixed them.

In CodeLite, Settings, Environment Variables, I had:

Code: Select all

CodeLiteDir=C:\CodeLite
WXCFG=gcc_dll/mswud
WXWIN=c:\wxWidgets\

I changed them to:

Code: Select all

CodeLiteDir=C:\CodeLite
WXCFG=gcc_dll\mswud
WXWIN=c:\wxWidgets

(Changed the forward slash in WXCFG to a backward slash, AND
deleted the second backslash in WXWIN)

and now it builds normally.

I hope this helps someone else.

Colleen

Post Reply