settings wrong after manul installation ?

General questions regarding the usage of CodeLite
darious
CodeLite Curious
Posts: 2
Joined: Fri Feb 03, 2012 5:28 pm
Genuine User: Yes
IDE Question: c++
Contact:

settings wrong after manul installation ?

Post by darious »

Hello, experts!
I'm a newbie,

I have manually installed the codelite and it's components on my win xp:
codelite-3.5.5377.exe,
mingw-get-inst-20111118.exe,
wxMSW-Setup-2.9.3.exe
and after read the documents which on the official site and some tips in this forum and setting my codelite like these:
CTag Settings:

Code: Select all

C:\DevTools\MinGW\include
C:\DevTools\MinGW\lib\gcc\mingw32\4.6.1\include
C:\DevTools\MinGW\lib\gcc\mingw32\4.6.1\include\c++
C:\DevTools\MinGW\lib\gcc\mingw32\4.6.1\include\c++\backward
C:\DevTools\MinGW\lib\gcc\mingw32\4.6.1\include\c++\mingw32
C:\DevTools\MinGW\lib\gcc\mingw32\4.6.1\include-fixed
C:\DevTools\wxWidgets-2.9.3\include
Environment Variabls:

Code: Select all

CodeLiteDir=C:\DevTools\CodeLite
MinGWDir=C:\DevTools\MinGW
WXWIN=C:\DevTools\wxWidgets-2.9.3
PATH=$(CodeLiteDir);$(MinGWDir)\bin;$(WXWIN)\lib\gcc_dll;$(PATH)
WXCFG=gcc_dll\mswu
It was allright to compile a sample c or c++ program without wxWidgets, but when I code a program with wxWidgets, when compile the program, the codelite builder output the errors messages:

Code: Select all

----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe"  -j 1 -f "wxTetris_wsp.mk""
----------Building project:[ wxTetris - Debug ]----------

Please use the --prefix flag (as in wx-config --prefix=C:\wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:\wxWidgets)
to specify where is your installation of wxWidgets.

Please use the --prefix flag (as in wx-config --prefix=C:\wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:\wxWidgets)
to specify where is your installation of wxWidgets.

Please use the --prefix flag (as in wx-config --prefix=C:\wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:\wxWidgets)
to specify where is your installation of wxWidgets.
mingw32-make.exe[1]: Entering directory `C:/DevTools/CodeLite/wxTetris/wxTetris'
g++: error: wx-config: No such file or directory
g++: error: Error:: Invalid argument
g++: error: wxWidgets: No such file or directory
g++: error: hasn't: No such file or directory
g++: error: been: No such file or directory
g++: error: found: No such file or directory
g++: error: installed: No such file or directory
g++: error: at: No such file or directory
g++: error: 'C:\DevTools\wxWidgets-2.9.3'.: Invalid argument
mingw32-make.exe[1]: *** [Debug/gui.o.d] Error 1
mingw32-make.exe[1]: Leaving directory `C:/DevTools/CodeLite/wxTetris/wxTetris'
mingw32-make.exe: *** [All] Error 2
----------Build Ended----------
0 errors, 0 warnings
Also under directory 'wxWidgets-2.9.3', the file 'lib\gcc_dll' does not found when I go to check it!

:roll:
Please let me know how to fix this, did I missed something?

Regards!
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: settings wrong after manul installation ?

Post by DavidGH »

Hi,
I have manually installed the codelite and its components on my win xp:
...
wxMSW-Setup-2.9.3.exe
It sounds as if you downloaded the wxMSW source package from the wx site. That's fine, but as it says there:
Windows installer: exe (notice that the installer only sets up the sources but you still need to build the library before using it).
Did you do so?

Regards,

David
darious
CodeLite Curious
Posts: 2
Joined: Fri Feb 03, 2012 5:28 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: settings wrong after manul installation ?

Post by darious »

yes I download the file from the url:
http://sourceforge.net/projects/wxwindows/files/2.9.3/

By keep doing read the documents via the official site and googling, I found the problem, that's I need to build the library,
nwo while I'm trying to build it, which through the official site -- The "Do-It-Yourself" way :
http://codelite.org/WxWidgets/GettingRe ... derWindows

build command:

Code: Select all

c:\DevTools\bin\mingw32-make -f makefile.gcc UNICODE=1 SHARED=1 MONOLITHIC=1 BUILD=debug
and it prompted next errors:

Code: Select all

if not exist gcc_mswuddll mkdir gcc_mswuddll
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
if not exist ..\..\lib\gcc_dll\mswud mkdir ..\..\lib\gcc_dll\mswud
if not exist ..\..\lib\gcc_dll\mswud\wx mkdir ..\..\lib\gcc_dll\mswud\wx
if not exist ..\..\lib\gcc_dll\mswud\wx\setup.h copy ..\..\include\wx\msw\setup.
h ..\..\lib\gcc_dll\mswud\wx\setup.h
        1 file(s) copied.
if not exist ..\..\lib\gcc_dll\mswud\wx\msw mkdir ..\..\lib\gcc_dll\mswud\wx\msw

gcc -E "..\..\include\wx\msw\genrcdefs.h" > "..\..\lib\gcc_dll\mswud\wx\msw\rcde
fs.h"
'gcc' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make: *** [..\..\lib\gcc_dll\mswud\wx\msw\rcdefs.h] Error 1
and run the command again it became some short:

Code: Select all

gcc -c -o gcc_mswuddll\wxregex_regcomp.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDE
BUG -I..\..\include -I..\..\lib\gcc_dll\mswud -D__WXMSW__  -D_UNICODE   -MTgcc_m
swuddll\wxregex_regcomp.o -MFgcc_mswuddll\wxregex_regcomp.o.d -MD -MP ../../src/
regex/regcomp.c
gcc: error: CreateProcess: No such file or directory
mingw32-make: *** [gcc_mswuddll\wxregex_regcomp.o] Error 1
Here I didn't set codelite & MinGW to the windows wide globle environment path.

Any comment ?
thanx
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: settings wrong after manul installation ?

Post by DavidGH »

I'm no expert on MSWin, but I think you need to tell it where your mingw installation is.

Either add it permanently to the MSWin environment's PATH (and reboot), or write a batch file that does something like:

Code: Select all

set PATH=C:\DevTools\MinGW\bin;%PATH%

mingw32-make -f makefile.gcc UNICODE=1 SHARED=1 MONOLITHIC=1 BUILD=debug
Post Reply