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.09k stars 448 forks source link

Pull/build issues #3275

Open yzazik opened 8 months ago

yzazik commented 8 months ago

Hello, I have a couple of issues to report building the latest source code.

First is github pull of submodules. I guess, since github switched naming main branch as master many old repos that were pulled with the default name (main) now have to be pulled with branch name specified explicitly. A couple of modules in .gitmodules that are missing (now non-default) main branch name are wx-config-msys2 and cc-wrapper:

[submodule "wx-config-msys2"] path = wx-config-msys2 url = https://github.com/eranif/wx-config-msys2.git branch = main [submodule "cc-wrapper"] path = cc-wrapper url = https://github.com/eranif/cc-wrapper branch = main

Without branch name those submodules are not getting pulled.

Second is dependency on sqlite3, specifically, if installed sqlite3 has been found in the system, still SQLite3_INCLUDE_DIR is not used anywhere in cmake files resulting in a build failure of sdk/databaselayer/src/dblayer/SqliteDatabaseLayer.cpp with "fatal error: sqlite3.h: No such file or directory".

Not sure where would be the right place to place it but on my side this worked (sdk/databaselayer/CMakeLists.txt:10):

include_directories(./include/wx/dblayer/include src/sqlite3 ${SQLite3_INCLUDE_DIR})

similarly how it's done in sdk/wxsqlite3/CMakeLists.txt but the variable there is SQLite3_INCLUDE_DIRS, not sure is that's a typo or by intent.

Thanks you.

Version

Self compiled

Operating system

Linux

Steps to reproduce

No response

Relevant log output

No response