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 456 forks source link

[Bug]: CodeLite is unbuildable on Windows #3316

Closed yunkot closed 7 months ago

yunkot commented 7 months ago

What happened?

I usually use CodeLite on Linux, so this is first time trying to build it on Windows since the monthly build is 4-5 months old now.

I'm using instructions from https://docs.codelite.org/build/build_from_sources. The part of building "wx-config.exe" fails with this:

-- Install configuration: "Release"
CMake Error at src/cmake_install.cmake:49 (file):
  file cannot create directory: C:/Program Files (x86)/wx-config-msys2/bin.
  Maybe need administrative privileges.
Call Stack (most recent call first):
  cmake_install.cmake:42 (include)

mingw32-make: *** [Makefile:99: install] Error 1

A better approach would be to put "wx-config.exe" somewhere, where no administrative privileges are required, but instructions say nothing about this. I've manually copied it to the path it wanted to install, added that path to PATH environment variable on Windows. I also noticed that CodeLite itself comes with "wx-config-msys2" submodule, so maybe these steps are no longer necessary?

Instructions also never mention that you have to install "InnoSetup", which seems to also be required. Now, when running CMake command with CodeLite, I'm getting these errors:

CMake Deprecation Warning at CMakeLists.txt:41 (cmake_policy):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is Clang 17.0.6
-- The CXX compiler identification is Clang 17.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/msys64/clang64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/msys64/clang64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_INSTALL_PREFIX is set to D:/msys64/home/ynkot/codelite/build-release/install
CMake Deprecation Warning at cmake/Modules/OSXInstall.cmake:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  cmake/Modules/UtilsHelper.cmake:5 (include)
  CMakeLists.txt:96 (include)

-- Found SQLite3: D:/msys64/clang64/include (found version "3.45.1")
-- BUILD_DIRECTORY is set to D:/msys64/home/ynkot/codelite/build-release
-- OS name WIN
-- CL_INSTALL_BIN is set to D:/msys64/home/ynkot/codelite/build-release/install
-- PLUGINS_DIR is set to D:/msys64/home/ynkot/codelite/build-release/install/plugins
CMake Deprecation Warning at cmake/Modules/OSXInstall.cmake:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  CMakeLists.txt:344 (include)

-- LIBSSH_LIB is set to D:/msys64/clang64/lib/libssh.dll.a
-- WXWIN is set to D:/msys64/home/ynkot/root
-- WXCFG is set to clang_x64_dll/mswu
-- wxWidgets_USE_FILE is set to:
-- PLUGINS_DIR is set to D:/msys64/home/ynkot/codelite/build-release/install/plugins
-- Using custom Notebook
-- Building in Release mode
-- CMAKE_INSTALL_DO_STRIP is TRUE
-- Executables will be written into D:/msys64/home/ynkot/codelite/build-release/bin
-- Shared Objects will be written into D:/msys64/home/ynkot/codelite/build-release/lib
-- Adding -DNDEBUG to definitions
-- OS_CODENAME is set to unknown
-- ARCH 64
-- ARCH_NAME AMD64
-- USE_SFTP is set to 1
CMake Warning (dev) at sdk/wxsqlite3/CMakeLists.txt:7 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at sdk/wxshapeframework/CMakeLists.txt:7 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at sdk/databaselayer/CMakeLists.txt:7 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at yaml-cpp/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at CodeLite/CMakeLists.txt:5 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Plugin/CMakeLists.txt:7 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PCH/CMakeLists.txt:5 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at cc-wrapper/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at cc-wrapper/tinyjson/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at wx-config-msys2/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at wx-config-msys2/src/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- CMAKE_CURRENT_LIST_DIR=D:/msys64/home/ynkot/codelite/wx-config-msys2/src
-- INSTALL_PATH => D:/msys64/home/ynkot/codelite/build-release/install/bin
CMake Warning (dev) at abbreviation/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Gizmos/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Debugger/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at UnitTestCPP/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at QmakePlugin/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cppchecker/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at wxformbuilder/CMakeLists.txt:13 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakePlugin/CMakeLists.txt:16 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cscope/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at EOSWiki/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at ContinuousBuild/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at AutoSave/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CodeLiteDiff/CMakeLists.txt:12 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at git/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Outline/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CodeFormatter/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Copyright/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at DatabaseExplorer/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at ExternalTools/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at SnipWiz/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Subversion2/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at ZoomNavigator/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found libhunspell: D:/msys64/clang64/lib/libhunspell.dll.a, D:/msys64/clang64/include/hunspell
CMake Warning (dev) at SpellChecker/CMakeLists.txt:46 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Tail/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at EditorConfigPlugin/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PHPLint/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PHPRefactoring/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at codelite_vim/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Docker/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at LanguageServer/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Rust/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at SFTP/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Remoty/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at wxdap/dap/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- WXWIN is set to D:/msys64/home/ynkot/root
-- WXCFG is set to clang_x64_dll/mswu
-- wxWidgets_USE_FILE is set to:
CMake Warning (dev) at wxdap/dap/CMakeLists.txt:30 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at DebugAdapterClient/CMakeLists.txt:9 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at codelitephp/CMakeLists.txt:13 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

-- CL_SRC_ROOT is set to D:/msys64/home/ynkot/codelite
CMake Warning (dev) at WordCompletion/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at HelpPlugin/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at WebTools/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at SmartCompletion/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CallGraph/CMakeLists.txt:10 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Building wxCrafter as codelite plugin
-- Generating makefile for wxCrafter
CMake Warning (dev) at wxcrafter/CMakeLists.txt:29 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

-- wxCrafter - Done
CMake Error at codelite_make/CMakeLists.txt:5 (include):
  include called with wrong number of arguments.  include() only takes one
  file.

CMake Error at TestDir/CMakeLists.txt:2 (include):
  include called with wrong number of arguments.  include() only takes one
  file.

CMake Error at codelite-generate-themes/CMakeLists.txt:5 (include):
  include called with wrong number of arguments.  include() only takes one
  file.

CMake Warning (dev) at ctagsd/CMakeLists.txt:17 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at LiteEditor/CMakeLists.txt:7 (include):
  include() given empty file name (ignored).
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at cmake/Modules/OSXInstall.cmake:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  cmake/Modules/UtilsHelper.cmake:5 (include)
  LiteEditor/CMakeLists.txt:8 (include)

-- Generating post_install.cmake script
-- Including plugin.cmake module
-- CMAKE_SOURCE_DIR is set to D:/msys64/home/ynkot/codelite
-- CL_INSTALL_BIN is set to D:/msys64/home/ynkot/codelite/build-release/install
-- InnoSetup compiler is set to: C:/Program Files (x86)/Inno Setup 6/ISCC.exe
-- Configuring incomplete, errors occurred!

It's difficult to judge due a flood of deprecation warnings, but a wild guess tells that wxWidgets is probably not being found correctly, but I have no idea how to fix it.

Version

Self compiled

Operating system

Windows 10

Steps to reproduce

No response

Relevant log output

No response

eranif commented 7 months ago

I have updated the instructions:

yunkot commented 7 months ago

Unfortunately, I wasn't able to add "$HOME/root/bin" to PATH: msys2 system simply ignores Windows environment PATH variable and uncommenting MSYS2_PATH_TYPE=inherit in msys2.ini doesn't work.

As a workaround for "wx-config-msys", I've used the following command: cmake .. -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local

Also, in instructions for building wxWidgets, the make command should be: mingw32-make -j$(nproc) install ("install" was missing)

After above changes, CodeLite gets built successfully, however, it doesn't run. Initially, when trying to execute it, it complains for missing DLLs such as "wxmsw330u_clang_custom.dll", "libssh.dll", "libc++.dll", etc. After copying these DLLs from corresponding msys2 folders to "bin" folder of CodeLite, there are no more complains, but after running it - nothing happens. As far as I can tell, no log file is generated anywhere, and there is no error message.

P.S. I'm running on Windows 10 22H2, using "UCRT64" version of "msys2".

yunkot commented 7 months ago

By the way, I don't seem to have option to re-open this issue. :(

eranif commented 7 months ago

Maybe it isn't clear enough from the docs, but: You should build CodeLite from a MSYS terminal on Windows, not from CMD.

After successfully call to:

mingw32-make -j$(nproc) install

You should run it from the install directory, a one liner should be:

 (mingw32-make -j$(nproc) install && cd install && ./codelite -d /home/$USER/cache)

Note: the -d /home/$USER/cache tells CodeLite to read the settings from a different location instead of using the deafult %appdata%\CodeLite

eranif commented 7 months ago

The install target copies all the missing DLLs you mentioned into the install folder:

MSYS2 master /home/eran/devl/codelite/build-release/install
$ ls -l *.dll
-rwxr-xr-x 1 eran None   4275200 Mar  4 08:44 codelite.dll
-rwxr-xr-x 1 eran None   1497600 Nov 30 17:30 libc++.dll
-rwxr-xr-x 1 eran None  56037888 Dec 28 14:44 libclang-cpp.dll
-rwxr-xr-x 1 eran None   4786176 Nov 23 23:03 libcrypto-3-x64.dll
-rwxr-xr-x 1 eran None    781824 Mar  4 08:43 libdapcxx.dll
-rwxr-xr-x 1 eran None    213504 Mar  4 08:43 libdatabaselayersqlite.dll
-rwxr-xr-x 1 eran None     38912 Oct 28  2022 libffi-8.dll
-rwxr-xr-x 1 eran None    838656 Jul 20  2023 libhunspell-1.7-0.dll
-rwxr-xr-x 1 eran None   1101312 Feb 19  2023 libiconv-2.dll
-rwxr-xr-x 1 eran None 122894848 Dec 28 14:44 libLLVM-17.dll
-rwxr-xr-x 1 eran None    201728 Nov  2 07:51 liblzma-5.dll
-rwxr-xr-x 1 eran None   8558080 Mar  5 22:09 libplugin.dll
-rwxr-xr-x 1 eran None   1831936 Nov 26 20:48 libsqlite3-0.dll
-rwxr-xr-x 1 eran None    506368 Dec 19 08:50 libssh.dll
-rwxr-xr-x 1 eran None     41984 Nov 30 17:30 libunwind.dll
-rwxr-xr-x 1 eran None     90112 Jan  1 13:33 libwinpthread-1.dll
-rwxr-xr-x 1 eran None    903168 Mar  4 08:43 libwxshapeframework.dll
-rwxr-xr-x 1 eran None    167936 Mar  4 08:43 libwxsqlite3.dll
-rwxr-xr-x 1 eran None   1430016 Dec 17 11:55 libxml2-2.dll
-rwxr-xr-x 1 eran None   1022976 Apr  5  2023 libzstd.dll
-rwxr-xr-x 1 eran None   2983134 May 30  2023 msys-2.0.dll
-rwxr-xr-x 1 eran None   1082798 Jun  6  2022 msys-iconv-2.dll
-rwxr-xr-x 1 eran None     45895 May 14  2022 msys-intl-8.dll
-rwxr-xr-x 1 eran None  18479104 Mar  4 08:42 wxmsw330u_clang_custom.dll
-rwxr-xr-x 1 eran None    110592 Aug 18  2023 zlib1.dll
yunkot commented 7 months ago

Using above steps, CodeLite installation fails at "install" target with:

-- Installing: D:/msys64/home/localuser/codelite/build-release/install/svgs/dark-theme/x-close.svg
-- Installing: D:/msys64/home/localuser/codelite/build-release/install/svgs/dark-theme/yml.svg
-- Installing: D:/msys64/home/localuser/codelite/build-release/install/svgs/dark-theme/zip.svg
-- Installing: D:/msys64/home/localuser/codelite/build-release/install/svgs/dark-theme/zoom-button.svg
CMake Error at cmake_install.cmake:108 (file):
  file INSTALL cannot find "/clang64/bin/libc++.dll": File exists.

The file does seem to exist:

$ which libc++.dll
/clang64/bin/libc++.dll

I'm using msys2 terminal.

eranif commented 7 months ago

are you running this from within an MSYS terminal?

eranif commented 7 months ago

Delete your CMakeCache.txt - run it again and try. It should work. It works on 3 different windows machines I have

yunkot commented 7 months ago

This is a fresh/new msys2 installation and before executing above I've removed and re-created the whole "build-release" folder, and yes, I'm doing everything from within MSYS terminal. Perhaps there is some extra step you are doing that is not described in instructions, which is missing in my case?

yunkot commented 7 months ago

To clarify, I'm building CodeLite as:

git clone https://github.com/eranif/codelite.git
cd codelite
git submodule update --init --recursive --progress
mkdir build-release && cd build-release
cmake .. -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" -DWXWIN=$HOME/root -Wno-dev
mingw32-make -j$(nproc) install

All executed inside MSYS terminal, and installation fails with aforementioned error.

eranif commented 7 months ago

You should have a file name build-release/msys2-environment what its content?. The content of the env variables in this file are coming from the environment variable WD To check that it exists for you, run: echo $WD (inside the MSYS terminal)

If it doesn't, try this:

WD=D:/msys64 cmake .. -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" -DWXWIN=$HOME/root -Wno-dev
mingw32-make -j$(nproc) install

Note: a good msys2-environment file should contain something like this:

export WXWIN=C:/msys64/home/eran/root
export MSYS2_HOME=C:/msys64
yunkot commented 7 months ago

After calling "cmake .. -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" -DWXWIN=$HOME/root -Wno-dev" command in an empty "build-release" folder, the contents of "msys2-environment" are:

export WXWIN=D:/msys64/home/localuser/root
export MSYS2_HOME=

"echo $WD" gives an empty string.

Edit: I also tried running "cmake .. -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" -DWXWIN=$HOME/root -DMSYS2_HOME=/d/msys64 -Wno-dev", but this gives a warning of unused variable and doesn't change content of "MSYS2_HOME". After executing "cmake" command, manually editing "msys2-environment" and specifying "MSYS2_HOME" to point to correct path still leads to the same error as above.

eranif commented 7 months ago

Set it locally to installation path of msys

yunkot commented 7 months ago

Sorry, I didn't notice "WD=D:/msys64" part before "cmake" in your previous post - this command does produce correct "msys2-environment", resulting in build and installation going successfully. After that, CodeLite can be executed normally from "install" folder, even outside of "msys2" terminal.

It seems that "WD=D:/msys64" part is crucial to enable successful build of CodeLite on Windows. I would suggest to add this to the instructions. Many thanks!

eranif commented 7 months ago

Docs updated + changed the logic in the CMake files. CodeLite now requires that you set the environment variable MSYS2_BASE in order for CMake to succeed