codelite icon indicating copy to clipboard operation
codelite copied to clipboard

codelite.exe fails to execute after successfull compile and link

Open noeldiviney opened this issue 1 year ago • 11 comments

What happened?

This a follow on from the now closed issue #3197 Unable to build codelite on Windows 10 When double clicking build-release/bin/codelite.exe the following errors are displayed:

  1. wxmsw330u_clang_custom.dll was not found
  2. libssh.dll was not found

Codelite build instructions are from https://docs.codelite.org/build/build_from_sources/

Noel Diviney

Version

Self compiled

Operating system

Windows 10

Steps to reproduce

see  https://docs.codelite.org/build/build_from_sources/

Relevant log output

[codelite-build-log.txt](https://github.com/user-attachments/files/16465681/codelite-build-log.txt)

noeldiviney avatar Aug 02 '24 05:08 noeldiviney

Strange, I deleted the install/ folder, executed cmake followed by mingw32-make install and the files are there If you will look in the links below, you can see that the mentioned DLLs are supposed to be installed...

https://github.com/eranif/codelite/blob/master/CMakeLists.txt#L1075 https://github.com/eranif/codelite/blob/master/CMakeLists.txt#L1092

eranif avatar Aug 02 '24 19:08 eranif

Hi Eran Thank you for your prompt response. There seems to be a problem with my install of Msys2 something is missing . Current build logs and the .bashrc: : Codelite-build error.txt The-complete-build-log.txt .bashrc.txt Any Suggestions? Noel

noeldiviney avatar Aug 03 '24 07:08 noeldiviney

For the build error, WxWidgets has made an update which requires change in codebase :-/ Using WxWidgets v3.2.5 should fix that. (but cannot install codelite which requires the dll from v3.3.0 :-/ ) WxWidgets with sha1 3737245c5195d84f0c788e650c6ad7992eec03d7 works. (CI updated with #3444)

Jarod42 avatar Aug 03 '24 14:08 Jarod42

Hi Jarrod, Thank you for the update. So what are the steps I have to take to get a successful build of Codelite. Noel

noeldiviney avatar Aug 04 '24 01:08 noeldiviney

Until Codelite trunk is updated to works with latest WxWidgets, use "older" version of WxWidget:

git clone https://github.com/wxWidgets/wxWidgets
cd wxWidgets
git checkout 3737245c5195d84f0c788e650c6ad7992eec03d7
git submodule update --init

For your missing dlls, you might still have the issue though :-/ I don't know why you got missing dlls at the beginning.

Jarod42 avatar Aug 05 '24 10:08 Jarod42

Hi Jarrod, Thank you for the suggestions. In fact that was going to be my task for today. The reason for my need to to build Codelite is to add the capability to of Embedded Debugging to Codelite. Will keep you posted on this. Many thanks and best regards, Noel

noeldiviney avatar Aug 06 '24 00:08 noeldiviney

Successful Build of Codelite IDE. I had to make a smal;l change to the instructions as follows :

git clone https://github.com/wxWidgets/wxWidgets cd wxWidgets git checkout 3737245c5195d84f0c788e650c6ad7992eec03d7 git submodule update --init

Successful-Codelite-BuildLog.txt

A Big thank you for the help. Best regards, Noel Diviney.

noeldiviney avatar Aug 06 '24 12:08 noeldiviney

Where is the checkout tag 3737245c5195d84f0c788e650c6ad7992eec03d7 obtained from? Noel

noeldiviney avatar Aug 07 '24 05:08 noeldiviney

Some trivial investigation:

  • Build error is for a signature change of a virtual function (thanks to override).
  • git blame find the commit (which were the last one :-) )

And finally test that commit.

Jarod42 avatar Aug 07 '24 12:08 Jarod42

Thank you Jarrod. Now back to getting my wxPython installer GUI to setup Embedded Systems Environment up and running

Cheers Noell

noeldiviney avatar Aug 08 '24 12:08 noeldiviney

Codelite's master has been fixed. You have to use either WxWidget v2.5.x or master (as 3737245c5195d84f0c788e650c6ad7992eec03d7 is incompatible with the fix).

Jarod42 avatar Aug 09 '24 12:08 Jarod42