Building codelite from sources (Windows)

CodeLite installation/troubleshooting forum
zzz7net

Re: Building CodeLite - Last Hope

Post by zzz7net »

stahta01 wrote: Tue Aug 03, 2021 6:47 pm

The OP might be using CLang instead of MinGW64 GCC to build CodeLite; does anyone know if this works?
Correction the OP has CLang installed; but, is using GCC in images.

Tim S.

I can try to compile CodeLite with Clang but I don't even know if this is possible.
Furthermore I rely on CodeLite Workspace file provided by Eran. So
I think to compile the whole workspace you need to change Project Settings
for each of the folder it contains.

stahta01
CodeLite Enthusiast
Posts: 39
Joined: Thu Dec 29, 2011 10:07 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite - Last Hope

Post by stahta01 »

zzz7net wrote: Tue Aug 03, 2021 6:59 pm
stahta01 wrote: Tue Aug 03, 2021 6:47 pm

The OP might be using CLang instead of MinGW64 GCC to build CodeLite; does anyone know if this works?
Correction the OP has CLang installed; but, is using GCC in images.

Tim S.

I can try to compile CodeLite with Clang but I don't even know if this is possible.
Furthermore I rely on CodeLite Workspace file provided by Eran. So
I think to compile the whole workspace you need to change Project Settings
for each of the folder it contains.

No! Do not do that!

But, what compiler are you using to Compile wxWidgets and CodeLite?
64 Bit MinGW64 from MSys2 version 10.3 or what?

Tim S.

zzz7net

Re: Building CodeLite - Last Hope

Post by zzz7net »

stahta01 wrote: Tue Aug 03, 2021 6:59 pm

And, you used the cmake build directions of wxWidgets 3.1 git?
I have not done that way; I will see if it works for me.
Could easily be a day for me to build wxWidgets using cmake since I have never done it that way.

Tim S.

I have downloaded the source files from wxWidget github:
wxWidgest-3.1.5.zip
Then I had used this instruction on the CodeLite wiki.

Also I've tried a slightly newer instruction from CodeLite site.

The only thing I don't understand is why the compiler reports:

mingw32-make[1]: *** No rule to make target '../PCH/precompiled_header_release.h', needed by '../PCH/precompiled_header_release.h.gch'. Stop.

if both of these files are in the same folder .

You do not have the required permissions to view the files attached to this post.
zzz7net

Re: Building CodeLite - Last Hope

Post by zzz7net »

But, what compiler are you using to Compile wxWidgets and CodeLite?
64 Bit MinGW64 from MSys2 version 10.3 or what?

Exactly so. You can get all you need by typing the following strings in MSYS:

pacman -S mingw-w64-x86_64-toolchain
pacman -S mingw-w64-x86_64-cmake
pacman -S unzip
pacman -S git

stahta01
CodeLite Enthusiast
Posts: 39
Joined: Thu Dec 29, 2011 10:07 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite - Last Hope

Post by stahta01 »

From where did you get the CodeLite IDE you are using?
What version of CodeLite are you trying to build?
codelite git or codelite version x.x.x?

You have actually gotten farther than I have using the IDE if you are building codelite git.

Tim S.

zzz7net

Re: Building CodeLite - Last Hope

Post by zzz7net »

stahta01 wrote: Tue Aug 03, 2021 8:00 pm

From where did you get the CodeLite IDE you are using?
What version of CodeLite are you trying to build?
codelite git or codelite version x.x.x?

Clone CodeLite for the sources:

Download and install CodeLite for Windows (64 bit) from our Download Page:
Open the workspace CodeLiteIDE.workspace (located in the CodeLite's folder)
Make sure that the project CodeLiteIDE is selected (the active project uses bold font)
Select the Win_x64_Release build configuration and click F7

stahta01
CodeLite Enthusiast
Posts: 39
Joined: Thu Dec 29, 2011 10:07 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite - Last Hope

Post by stahta01 »

If you do an "git log -1" I will try the same git commit you are using; I get a error about "flex" that is way earlier than your error.
Maybe you are using a better commit to try. I think the codelite git is broken for GUI builds on Windows 7 64 bit.

I am going to try building my cmake build of CodeLite on windows and see it that can build the normal way using that IDE.
It never worked in the past; but, I only tried once or twice.

Tim S.

zzz7net

Re: Building CodeLite - Last Hope

Post by zzz7net »

log is done

You do not have the required permissions to view the files attached to this post.
zzz7net

Re: Building CodeLite - Last Hope

Post by zzz7net »

Now I'm gonna:
1) uninstall Codelite 15.0.0
2) install Codelite 15.0.6
3) reinstall MSYS2 with all compilers in it
4) maybe rebuild wxWidgets one more time

And try all over again.

I don't want to give up. Because I like CodeLite and If I will be able to build it
for the Windows, it becomes a great alternative to the MS Visual Studio.

Last edited by zzz7net on Wed Aug 04, 2021 9:18 am, edited 2 times in total.
stahta01
CodeLite Enthusiast
Posts: 39
Joined: Thu Dec 29, 2011 10:07 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite - Last Hope

Post by stahta01 »

I think I got your error building version 15.0.3 of CodeLite. I built it using CodeLite IDE 15.0.0.

Not sure if I will try 15.0.2 or 15.0.4 next. Edit: Trying 15.0.2 next. Edit3: Cancelled 15.0.2, starting 15.0.4.

My guess of the fix is to change

Code: Select all

PreCompiledHeader="../PCH/precompiled_header_release.h"

to
Edit4a: This one worked

Code: Select all

PreCompiledHeader="../../PCH/precompiled_header_release.h"

or to

Edit4b: The one below failed to work.

Code: Select all

PreCompiledHeader="$(WorkspacePath)/PCH/precompiled_header_release.h"

I did not see the solution till after I started building 15.0.2.
I am not sure where in the IDE GUI control gives you the location to change the above.

Tim S.

Code: Select all

"----------Building project:[ PHPPlugin - Win_x64_Release ]----------"
mingw32-make[1]: Entering directory 'C:/src/codelite/codelitephp/php-plugin'
mingw32-make[1]: *** No rule to make target '../PCH/precompiled_header_release.h', needed by '../PCH/precompiled_header_release.h.gch'.  Stop.
mingw32-make[1]: Leaving directory 'C:/src/codelite/codelitephp/php-plugin'
mingw32-make: *** [Makefile:51: All] Error 2
====0 errors, 389 warnings, total time: 01:30:38 seconds====
Post Reply