eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.13k stars 455 forks source link

codelite.exe fails to execute after successfull compile and link #3441

Open noeldiviney opened 1 month ago

noeldiviney commented 1 month ago

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)
eranif commented 1 month ago

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

noeldiviney commented 1 month ago

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

Jarod42 commented 1 month ago

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)

noeldiviney commented 1 month ago

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

Jarod42 commented 1 month ago

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.

noeldiviney commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Where is the checkout tag 3737245c5195d84f0c788e650c6ad7992eec03d7 obtained from? Noel

Jarod42 commented 1 month ago

Some trivial investigation:

And finally test that commit.

noeldiviney commented 1 month ago

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

Cheers Noell

Jarod42 commented 1 month ago

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