Building codelite from Git sources

General questions regarding the usage of CodeLite
tootall79@gmail.com
CodeLite Curious
Posts: 8
Joined: Tue Dec 02, 2014 12:48 pm
Genuine User: Yes
IDE Question: c++
Contact:

Building codelite from Git sources

Post by tootall79@gmail.com »

Hi, thanks for the great IDE! It works nicely, using windows 7 laptop, binary download of 6.1.1, followed instructions from http://codelite.org/Developers/Windows about building codelite using binaries and Git src.

Any pointers will be appreciated!

There is no project called LiteEditor, I selected the closest one, CodeLiteIDE, and built it. Many things compiled with no errors.

Attempting to following the wiki instructions, using binaries for codelite 6.1.1, at the end you see this
flex --noline --batch --outfile=CxxLexer.cpp CxxScanner.l
followed by errors. flex: unknown flag '-'. For usage, try
flex --help

Here is the entire build output, thanks!

C:\Windows\system32\cmd.exe /c "C:/MinGW-4.8.1/bin/mingw32-make.exe -j2 SHELL=cmd.exe -e -f Makefile"
"----------Building project:[ PCH - Release ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/PCH'
mingw32-make.exe[1]: 'precompiled_header_release.h.gch' is up to date.
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/PCH'
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/PCH'
mingw32-make.exe[1]: Nothing to be done for 'all'.
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/PCH'
"----------Building project:[ sqlite3 - Common ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sqlite3'
mingw32-make.exe[1]: Nothing to be done for 'all'.
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sqlite3'
"----------Building project:[ wxsqlite3 - WinReleaseUnicode ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sdk/wxsqlite3'
mingw32-make.exe[1]: '../../PCH/precompiled_header_release.h.gch' is up to date.
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sdk/wxsqlite3'
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sdk/wxsqlite3'
mingw32-make.exe[1]: Nothing to be done for 'all'.
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sdk/wxsqlite3'
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sdk/wxsqlite3'
Executing Post Build commands ...
copy ..\..\lib\gcc_lib\libwxsqlite3u.dll ..\..\Runtime
1 file(s) copied.
Done
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sdk/wxsqlite3'
"----------Building project:[ databaselayer_sqlite - WinReleaseUnicode ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sdk/databaselayer'
mingw32-make.exe[1]: '../../PCH/precompiled_header_release.h.gch' is up to date.
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sdk/databaselayer'
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sdk/databaselayer'
mingw32-make.exe[1]: Nothing to be done for 'all'.
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sdk/databaselayer'
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sdk/databaselayer'
Executing Post Build commands ...
copy ..\..\lib\gcc_lib\libdatabaselayersqliteu.dll ..\..\Runtime
1 file(s) copied.
Done
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sdk/databaselayer'
"----------Building project:[ wxshapeframework - WinReleaseUnicode ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sdk/wxshapeframework'
mingw32-make.exe[1]: '../../PCH/precompiled_header_release.h.gch' is up to date.
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sdk/wxshapeframework'
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sdk/wxshapeframework'
mingw32-make.exe[1]: Nothing to be done for 'all'.
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sdk/wxshapeframework'
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/sdk/wxshapeframework'
Executing Post Build commands ...
copy ..\..\lib\gcc_lib\libwxshapeframeworku.dll ..\..\Runtime
1 file(s) copied.
Done
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/sdk/wxshapeframework'
"----------Building project:[ libCodeLite - WinReleaseUnicode ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CL/Git/codelite/CodeLite'
flex --noline --batch --outfile=CxxLexer.cpp CxxScanner.l
flex: unknown flag '-'. For usage, try
flex --help
mingw32-make.exe[1]: *** [CxxLexer.cpp] Error 1
mingw32-make.exe: *** [All] Error 2
libCodeLite.mk:113: recipe for target 'CxxLexer.cpp' failed
mingw32-make.exe[1]: Leaving directory 'C:/CL/Git/codelite/CodeLite'
Makefile:4: recipe for target 'All' failed
1 errors, 0 warnings
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building codelite from Git sources

Post by eranif »

You need a newer version of flex
See this question on the GitHub (unless its you...):

https://github.com/eranif/codelite/issues/605

Eran
Make sure you have read the HOW TO POST thread
tootall79@gmail.com
CodeLite Curious
Posts: 8
Joined: Tue Dec 02, 2014 12:48 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Building codelite from Git sources

Post by tootall79@gmail.com »

eranif wrote:You need a newer version of flex
See this question on the GitHub (unless its you...):

https://github.com/eranif/codelite/issues/605

Eran
Hi Eran, thanks for the replies! Yes it was me on github. I agree it is odd the file is being generated since it is already there. I will try
git reset --hard
Cheers!
Tim
tootall79@gmail.com
CodeLite Curious
Posts: 8
Joined: Tue Dec 02, 2014 12:48 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Building codelite from Git sources

Post by tootall79@gmail.com »

Did a reset, but no changes. I do not think I edited anything.

There are several copies of flex on my PC, is there somewhere in codelite where I can look at the path it uses? One of the flex is probably the correct version, or I can build an up-to-date one. I will locate or build an up-to-date one and put that one in the front of the path and try again.

Thanks
Tim

TimToomay@E6500_100119 /c/CL/Git/codelite (master)
$ git reset --hard
HEAD is now at 4a3ea93 Fixed harmless error messages from the 'Trace' tab
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building codelite from Git sources

Post by eranif »

Try 'touch' the generated file (the makefile will trigger a flex command only if the scanner file ( CxxScanner.l ) is newer than the generated file ( CxxLexer.cpp )
Eran
Make sure you have read the HOW TO POST thread
tootall79@gmail.com
CodeLite Curious
Posts: 8
Joined: Tue Dec 02, 2014 12:48 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Building codelite from Git sources

Post by tootall79@gmail.com »

Hi Eran

I read post instructions, I will get it more as I go along.

I built the 6.1 version fine! Thanks for the great product.

You said flex 2.5.4 version is required, I have that version. Anyway, I 'fixed' the flex problem by running flex in the cmd line,and changing the command syntax to match the help, but even then it said unrecognized option 'reentrant'.

I got past that by commenting out the option, but of course that causes downstream problems. That is when I gave up on the
git repository and built the project from the 6.1 tar download. That one DOES have a LiteEditor project and all is good and works like you said.

Maybe I downloaded the wrong git repository.

I am continuing on to next USE the freshly built codelite IDE.

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

Re: Building codelite from Git sources

Post by eranif »

tootall79@gmail.com wrote:You said flex 2.5.4 version is required, I have that version
I did?
The version needed is 2.5.34 and later
tootall79@gmail.com wrote:That one DOES have a LiteEditor project and all is good and works like you said
In git master, the project LiteEditor is now called "CodeLiteIDE"
Can you point me to the location where you read the instructions to use "LiteEditor" project?
Thanks
Eran
Make sure you have read the HOW TO POST thread
Gibbon1
CodeLite Expert
Posts: 167
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building codelite from Git sources

Post by Gibbon1 »

It's on the Wiki page

http://codelite.org/Developers/Windows

'Make sure that the project LiteEditor is the active one (marked in bold)'
Post Reply