Newbie Cannot configure CodeLite to run...

CodeLite installation/troubleshooting forum
zeroptr
CodeLite Curious
Posts: 4
Joined: Wed Oct 14, 2015 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Newbie Cannot configure CodeLite to run...

Post by zeroptr »

Hi all,

I'm a newbie to whole C++ world.. At my new project I decided to use crossplatform capable enviroment I looking aroud qt for 2 weeks and most of the users warn me about licencing issues and I'm trying to do sth with Codelite and wxwidgets...

I'm using a Windows 10 64 bit system.. I downloaded the whole stuff... I compiled wxwidgets just like wxwiki says..(I tried the pre compiled package bur compiler complained about versions is not match)

I get back to codelite and make a new enviroment and a project simple helloworld gui wit wxcraft I couldn't compile and run the sample..

I watched lots of videos and found that I must write sth to enviroment variables, so I changed them like this..

Code: Select all

CodeLiteDir=C:\Program Files\CodeLite
WXWIN=C:\wxWidgets-3.0.2
WXCFG=gcc_dll\mswu
PATH=C:\wxWidgets-3.0.2\lib\gcc_dll;$PATH
but my compiler still says

Code: Select all

C:\WINDOWS\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ Dene - Debug ]----------"

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.
mingw32-make.exe[1]: Entering directory 'C:/Users/Burak/Desktop/DENEME/Deneme/Dene'
C:/TDM-GCC-64/bin/g++.exe -o ./Debug/Dene @"Dene.txt" -L.   wx-config Error: No valid setup.h of wxWidgets has been found at location: C:/wxWidgets-3.0.2/lib/gcc_dll\mswud/wx/setup.h -mwindows
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: No: No such file or directory
g++.exe: error: valid: No such file or directory
g++.exe: error: setup.h: No such file or directory
g++.exe: error: of: No such file or directory
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: has: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: location:: Invalid argument
g++.exe: error: C:/wxWidgets-3.0.2/lib/gcc_dll\mswud/wx/setup.h: No such file or directory
mingw32-make.exe[1]: *** [Debug/Dene] Error 1
Dene.mk:81: recipe for target 'Debug/Dene' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/Burak/Desktop/DENEME/Deneme/Dene'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====
and I tried what compiler says
"or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)"

I'm near to give up, what I'm doing wrong, I spend the whole day with reading reading and reading I've got nothing !

Please Help...

PS: Can I compile wxwidgets samples with codelite??
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Newbie Cannot configure CodeLite to run...

Post by eranif »

Do you have wx built in debug version?

Code: Select all

 wx-config Error: No valid setup.h of wxWidgets has been found at location: C:/wxWidgets-3.0.2/lib/gcc_dll\mswud/wx/setup.h -mwindows
As you can see, wx-config is producing the correct output for the compiler, however, I don't think that you have wxWidgets built in Debug mode (I could be wrong here...)

Try compile the "Release" configuration and see if it is compiled.
The wiki page also specifies how to build wxWidgets in Debug mode

Eran
Make sure you have read the HOW TO POST thread
zeroptr
CodeLite Curious
Posts: 4
Joined: Wed Oct 14, 2015 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Newbie Cannot configure CodeLite to run...

Post by zeroptr »

Hi Eran,

I make clean install this morning...
The system is
Codelite 9 64 bit
TDM 64 bit
wxwidgets 3.0.2
Windows 10 64 bit

All are of them are fresh downloads

To compile wxwidgets I use this from the wiki

mingw32-make -j8 -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=release VENDOR=cl CXXFLAGS="-fno-keep-inline-dllexport -std=c++11" MONOLITHIC=1

successfully compiles

I change the enviroment variables ..
CodeLiteDir=C:\Program Files\CodeLite
WXWIN=C:\wxWidgets-3.0.2
WXCFG=gcc_dll\mswu
PATH=C:\wxWidgets-3.0.2\lib\gcc_dll;$PATH

but compiler still says
C:\WINDOWS\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f Makefile
"----------Building project:[ Dene - Debug ]----------"

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.
mingw32-make.exe[1]: Entering directory 'C:/Users/Burak/Desktop/DENEME/Deneme/Dene'
C:/TDM-GCC-64/bin/g++.exe -o ./Debug/Dene @"Dene.txt" -L. wx-config Error: No valid setup.h of wxWidgets has been found at location: C:/wxWidgets-3.0.2/lib/gcc_dll\mswud/wx/setup.h -mwindows
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: No: No such file or directory
g++.exe: error: valid: No such file or directory
g++.exe: error: setup.h: No such file or directory
g++.exe: error: of: No such file or directory
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: has: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: location:: Invalid argument
g++.exe: error: C:/wxWidgets-3.0.2/lib/gcc_dll\mswud/wx/setup.h: No such file or directory
mingw32-make.exe[1]: *** [Debug/Dene] Error 1
Dene.mk:81: recipe for target 'Debug/Dene' failed
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory 'C:/Users/Burak/Desktop/DENEME/Deneme/Dene'
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====


sorry about my English I'm not native..

Should I download the 32 bit versions instead of 64 bit ones ?


Thanks for your interest..
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Newbie Cannot configure CodeLite to run...

Post by eranif »

1. Please use code tags before pasting large amount of text
2. You are still not compiling wxWidgets in debug build. Please re-read the wiki page for how to compile it.
3. Try what I suggested on the previous post

Eran
Make sure you have read the HOW TO POST thread
zeroptr
CodeLite Curious
Posts: 4
Joined: Wed Oct 14, 2015 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Newbie Cannot configure CodeLite to run...

Post by zeroptr »

eranif wrote:1. Please use code tags before pasting large amount of text
2. You are still not compiling wxWidgets in debug build. Please re-read the wiki page for how to compile it.
3. Try what I suggested on the previous post

Eran
Hi,
Sorry for the big text. Should I compile it in DEBUG mode?
Does Codelite uses debug release of wxwidgets?

These questions could be very annoying, sorry..

Best Regards
zeroptr
CodeLite Curious
Posts: 4
Joined: Wed Oct 14, 2015 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Newbie Cannot configure CodeLite to run...

Post by zeroptr »

Hi Eran,

I tried to compile them in debug mode with no success..

I downloaded The 32 bit ones..
make clean install
I'm using this precompiled lib

wxWidgets 3.0.2 installer for Windows / wxGraphics enabled (built with MinGW TDM-GCC 4.8.1) »

I create a new wxcraft enabled project.. and when I try to build compiler says

Code: Select all

C:\WINDOWS\system32\cmd.exe /C C:/TDM-GCC-32/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ Deneme - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/Burak/Desktop/DENEWS/DENEWS/Deneme'
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/5.1.0/include/c++/type_traits:35:0,
                 from C:/wxWidgets-3.0.2/include/wx/strvararg.h:25,
                 from C:/wxWidgets-3.0.2/include/wx/string.h:46,
                 from C:/wxWidgets-3.0.2/include/wx/memory.h:15,
                 from C:/wxWidgets-3.0.2/include/wx/object.h:19,
                 from C:/wxWidgets-3.0.2/include/wx/event.h:16,
                 from C:/wxWidgets-3.0.2/include/wx/app.h:19,
                 from main.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/5.1.0/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/5.1.0/include/c++/type_traits:35:0,
                 from C:/wxWidgets-3.0.2/include/wx/strvararg.h:25,
                 from C:/wxWidgets-3.0.2/include/wx/string.h:46,
                 from C:/wxWidgets-3.0.2/include/wx/memory.h:15,
                 from C:/wxWidgets-3.0.2/include/wx/object.h:19,
                 from C:/wxWidgets-3.0.2/include/wx/gdiobj.h:14,
                 from C:/wxWidgets-3.0.2/include/wx/colour.h:15,
                 from C:/wxWidgets-3.0.2/include/wx/settings.h:14,
                 from wxcrafter.h:10,
                 from wxcrafter.cpp:7:
C:/TDM-GCC-32/lib/gcc/mingw32/5.1.0/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/5.1.0/include/c++/type_traits:35:0,
                 from C:/wxWidgets-3.0.2/include/wx/strvararg.h:25,
                 from C:/wxWidgets-3.0.2/include/wx/string.h:46,
                 from C:/wxWidgets-3.0.2/include/wx/memory.h:15,
                 from C:/wxWidgets-3.0.2/include/wx/object.h:19,
                 from C:/wxWidgets-3.0.2/include/wx/stream.h:19,
                 from C:/wxWidgets-3.0.2/include/wx/filesys.h:24,
                 from wxcrafter_bitmaps.cpp:11:
C:/TDM-GCC-32/lib/gcc/mingw32/5.1.0/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/5.1.0/include/c++/type_traits:35:0,
                 from C:/wxWidgets-3.0.2/include/wx/strvararg.h:25,
                 from C:/wxWidgets-3.0.2/include/wx/string.h:46,
                 from C:/wxWidgets-3.0.2/include/wx/memory.h:15,
                 from C:/wxWidgets-3.0.2/include/wx/object.h:19,
                 from C:/wxWidgets-3.0.2/include/wx/gdiobj.h:14,
                 from C:/wxWidgets-3.0.2/include/wx/colour.h:15,
                 from C:/wxWidgets-3.0.2/include/wx/settings.h:14,
                 from wxcrafter.h:10,
                 from MainDialog.h:3,
                 from MainDialog.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/5.1.0/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
mingw32-make.exe[1]: *** [Debug/wxcrafter_bitmaps.cpp.o.d] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
Deneme.mk:118: recipe for target 'Debug/wxcrafter_bitmaps.cpp.o.d' failed
mingw32-make.exe[1]: *** [Debug/wxcrafter.cpp.o.d] Error 1
mingw32-make.exe[1]: *** [Debug/MainDialog.cpp.o.d] Error 1
mingw32-make.exe[1]: *** [Debug/main.cpp.o.d] Error 1
mingw32-make.exe: *** [All] Error 2
Deneme.mk:110: recipe for target 'Debug/wxcrafter.cpp.o.d' failed
Deneme.mk:126: recipe for target 'Debug/MainDialog.cpp.o.d' failed
Deneme.mk:102: recipe for target 'Debug/main.cpp.o.d' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/Burak/Desktop/DENEWS/DENEWS/Deneme'
Makefile:4: recipe for target 'All' failed
====5 errors, 4 warnings====


Thanks..

PS: I'm a primary Windows user but at my virtual ubuntu Codelite 9 runs smoothly I added a screen shot :)
You do not have the required permissions to view the files attached to this post.
Last edited by zeroptr on Wed Oct 14, 2015 8:56 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Newbie Cannot configure CodeLite to run...

Post by eranif »

Code: Select all

C:/TDM-GCC-32/lib/gcc/mingw32/5.1.0/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options
This means that you should add -std=c++11 to the compilation flags. Open the project settings->compiler->c++ compiler options
and add "Enable C++11 features"

Eran
Make sure you have read the HOW TO POST thread
Post Reply