@Zdrobot new PKGBUILD pushed - please try again - the wxgtk3 was updated and renamed to wxwidget-gtk3 this night - also its wx-config script was renamed
Search Criteria
Package Details: codelite 16.0.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/codelite.git (read-only, click to copy) |
---|---|
Package Base: | codelite |
Description: | Cross platform IDE for C, C++, Rust, Python, PHP and Node.js written in C++ |
Upstream URL: | http://www.codelite.org/ |
Keywords: | C++ Editor IDE |
Licenses: | GPL |
Conflicts: | codelite-unstable |
Submitter: | None |
Maintainer: | uffe |
Last Packager: | uffe |
Votes: | 172 |
Popularity: | 0.033237 |
First Submitted: | 2008-08-01 09:11 (UTC) |
Last Updated: | 2022-08-02 10:04 (UTC) |
Dependencies (19)
- clang (clang8, llvm-minimal-git, clang-git, llvm-git)
- ctags (vim-jp-ctags, guile-emacs-git, ctags_as3_haxe, ctags-git, uctags-git)
- hunspell (hunspell-git)
- libedit
- libssh (libssh-git, libssh-gnutls)
- lldb (llvm-git)
- mariadb-libs (mariadb-libs-git, libmysqlclient)
- ncurses (ncurses-nohex, ncurses-git)
- uchardet (uchardet-git)
- webkit2gtk (webkit2gtk-wpe-bin, webkit2gtk-imgpaste)
- wxwidgets-gtk3 (wxwidgets-gtk3-light)
- clang (clang8, llvm-minimal-git, clang-git, llvm-git) (make)
- cmake (cmake-git) (make)
- pkgconfig (pkg-config-git, pkgconf-git, pkgconf) (make)
- clang (clang8, llvm-minimal-git, clang-git, llvm-git) (optional) – compiler
- gcc (fastgcc, gccrs-git, gcc-git) (optional) – compiler
- gdb (gdb-git) (optional) – debugger
- graphviz (optional) – callgraph visualization
- valgrind (valgrind-git) (optional) – debugger
Required by (3)
- unreal-engine (optional)
- unreal-engine-4 (optional)
- unreal-engine-git (optional)
Sources (2)
Latest Comments
uffe commented on 2022-07-15 10:40 (UTC)
Zdrobot commented on 2022-07-15 09:08 (UTC) (edited on 2022-07-15 09:08 (UTC) by Zdrobot)
Failed to compile:
which: no wx-config-gtk3 in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
CMake Error at CMakeLists.txt:131 (message):
No functional wx_config script was found in your PATH.
Is the wxWidgets development package installed?
-- Configuring incomplete, errors occurred!
See also "/home/archie/.cache/yay/codelite/src/codelite-16.0.0-1/_build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
Aborting...
-> error making: codelite
pogojotz commented on 2022-03-21 14:19 (UTC)
Does not compile with GCC 11:
/home/jotz/dev/arch/codelite/src/codelite-15.0.2/sdk/codelite_cppcheck/cli/cppcheckexecutor.cpp:297:22: error: size of array ‘mytstack’ is not an integral constant-expression
297 | static char mytstack[MYSTACKSIZE]= {0}; // alternative stack for signal handler
| ^~~~~~~~~~~
The upstream fix works for me: https://github.com/eranif/codelite/commit/3a2073d76f5c9f45699c5910d07bdf43f7d6298e
juxuanu commented on 2021-06-02 11:23 (UTC) (edited on 2021-06-02 11:27 (UTC) by juxuanu)
Why does this depen on python2? I can't see it being a requirement in the Readme.md of Codelite's Github repo.
Also, pacman -Rsdd python2 from my system doesn't seem to affect CodeLite.
nfs commented on 2021-01-11 22:49 (UTC)
It would help if you could update the PKGBUILD to make the dependency 'wxgtk2' instead of 'wxgtk'. When I tried to use 'pacman -Suy' today, it refused to update wxgtk2, because it broke codelite's dependency on 'wxgtk'. When I uninstalled codelite, I was able to update 'wxgtk2', but then I couldn't install codelite until I edited the PKGBUILD dependency to read 'wxgtk2'.
uffe commented on 2020-09-17 16:55 (UTC)
@aviallon: regarding the mysql include problem - thanks for the suggestion
I'm not crazy about recommending users to modify mysql system include files. So I've disabled codelite dblayer support for mysql - for now - it is my impression that most users do not use the dbbrowsing feature in codelite anyway.
Those who use/need it - will have to modify PKGBUILD and change -DWITH_MYSQL=0
uffe commented on 2020-09-16 14:36 (UTC) (edited on 2020-09-16 14:37 (UTC) by uffe)
@aviallon: apologies - there was a typo in the wx-config name (wx-config-gtk2 is/was a homemade clone) - it should be fixed now - thanks for notifying :-)
aviallon commented on 2020-09-15 13:45 (UTC)
If the package fails to build, try to change the header files like described in https://bugs.archlinux.org/task/67896
aviallon commented on 2020-08-24 00:47 (UTC)
No functional wx_config script was found in your PATH.
Message got both on normal Arch PC and inside clean container.
uffe commented on 2020-07-27 18:24 (UTC)
To those that are interested: I have added new "codelite-unstable" package to AUR that follows the weekly/latest builds from the codelite project (currently v14.0.2)
uffe commented on 2020-05-13 16:15 (UTC) (edited on 2020-05-13 16:16 (UTC) by uffe)
@AirMH: this a system specific customization - and that is not something that should be hardcoded into individual packages. It would for sure totally kill one of my older laptops - and for another of my systems -j 128 would be more suitable - you'll never find a setting that fits all :-) You should put that kind of system specific customizations into your local makepkg.conf
Try:
man makepkg
man makepkg.conf
AirMH commented on 2020-05-13 15:58 (UTC) (edited on 2020-05-13 15:59 (UTC) by AirMH)
In function build()
, use make -j4
instead of make
for faster build speed.
ryanw commented on 2020-05-03 06:12 (UTC)
@uffe: yes, full upgraded. Thanks, it works
uffe commented on 2020-04-29 09:32 (UTC)
@ryanw: I just did a rebuild of codelite without any problems. Is your system fully upgraded ?
MySql is only needed for the Database Explorer plugin - rest of CodeLite will work without it... An an experiment you could try to take out MySql by editing PKGBUILD - look for "-DWITH_MYSQL=1"
ryanw commented on 2020-04-29 03:12 (UTC) (edited on 2020-05-03 06:04 (UTC) by ryanw)
I got Error when making codelite Any suggestion to fix ?
Scanning dependencies of target databaselayersqlite
[ 10%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/DatabaseErrorReporter.cpp.o
[ 10%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/BitmapShape.cpp.o
[ 10%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/DatabaseLayer.cpp.o
[ 10%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkcondition.cpp.o
[ 10%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/BitmapShapeXml.cpp.o
[ 10%] Building CXX object codelitephp/CMakeFiles/PHPParser.dir/PHPParser/php_workspace.cpp.o
[ 10%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/CanvasHistory.cpp.o
[ 10%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/DatabaseQueryParser.cpp.o
[ 11%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkexceptionsafety.cpp.o
[ 11%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/CanvasState.cpp.o
[ 11%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkfunctions.cpp.o
[ 11%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/DatabaseResultSet.cpp.o
[ 11%] Building CXX object codelitephp/CMakeFiles/PHPParser.dir/PHPParser/phpexecutor.cpp.o
[ 11%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkinternal.cpp.o
[ 11%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkio.cpp.o
[ 11%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/DatabaseStringConverter.cpp.o
[ 11%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/CircleArrow.cpp.o
[ 11%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/PreparedStatement.cpp.o
[ 11%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/CircleShape.cpp.o
[ 11%] Linking CXX static library ../lib/libPHPParser.a
[ 11%] Built target PHPParser
[ 11%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/SqliteDatabaseLayer.cpp.o
[ 11%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkleakautovar.cpp.o
[ 11%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkmemoryleak.cpp.o
[ 11%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/CommonFcn.cpp.o
[ 11%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/SqlitePreparedStatement.cpp.o
[ 11%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checknullpointer.cpp.o
[ 11%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/ControlShape.cpp.o
[ 11%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkother.cpp.o
[ 11%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/SqliteResultSet.cpp.o
[ 11%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/SqliteResultSetMetaData.cpp.o
[ 12%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/CurveShape.cpp.o
[ 12%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/DiagramManager.cpp.o
[ 12%] Building CXX object sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/MysqlDatabaseLayer.cpp.o
[ 12%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/DiamondArrow.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkpostfixoperator.cpp.o
In file included from /home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:5:
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:27:17: error: ISO C++ forbids declaration of ‘my_bool’ with no type [-fpermissive]
27 | typedef my_bool (STDCALL *MysqlAutoCommitType)(MYSQL*, my_bool);
| ^
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:27:9: error: typedef ‘my_bool’ is initialized (use decltype instead)
27 | typedef my_bool (STDCALL *MysqlAutoCommitType)(MYSQL*, my_bool);
| ^~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:27:27: error: ‘MysqlAutoCommitType’ was not declared in this scope
27 | typedef my_bool (STDCALL *MysqlAutoCommitType)(MYSQL*, my_bool);
| ^~~~~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:28:17: error: ISO C++ forbids declaration of ‘my_bool’ with no type [-fpermissive]
28 | typedef my_bool (STDCALL *MysqlCommitType)(MYSQL*);
| ^
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:28:9: error: typedef ‘my_bool’ is initialized (use decltype instead)
28 | typedef my_bool (STDCALL *MysqlCommitType)(MYSQL*);
| ^~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:28:27: error: ‘MysqlCommitType’ was not declared in this scope; did you mean ‘MysqlInitType’?
28 | typedef my_bool (STDCALL *MysqlCommitType)(MYSQL*);
| ^~~~~~~~~~~~~~~
| MysqlInitType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:29:17: error: ISO C++ forbids declaration of ‘my_bool’ with no type [-fpermissive]
29 | typedef my_bool (STDCALL *MysqlRollbackType)(MYSQL*);
| ^
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:29:9: error: typedef ‘my_bool’ is initialized (use decltype instead)
29 | typedef my_bool (STDCALL *MysqlRollbackType)(MYSQL*);
| ^~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:29:27: error: ‘MysqlRollbackType’ was not declared in this scope
29 | typedef my_bool (STDCALL *MysqlRollbackType)(MYSQL*);
| ^~~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:37:17: error: ISO C++ forbids declaration of ‘my_bool’ with no type [-fpermissive]
37 | typedef my_bool (STDCALL *MysqlStmtFreeResultType)(MYSQL_STMT*);
| ^
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:37:9: error: typedef ‘my_bool’ is initialized (use decltype instead)
37 | typedef my_bool (STDCALL *MysqlStmtFreeResultType)(MYSQL_STMT*);
| ^~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:37:27: error: ‘MysqlStmtFreeResultType’ was not declared in this scope; did you mean ‘MysqlStmtExecuteType’?
37 | typedef my_bool (STDCALL *MysqlStmtFreeResultType)(MYSQL_STMT*);
| ^~~~~~~~~~~~~~~~~~~~~~~
| MysqlStmtExecuteType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:38:17: error: ISO C++ forbids declaration of ‘my_bool’ with no type [-fpermissive]
38 | typedef my_bool (STDCALL *MysqlStmtCloseType)(MYSQL_STMT*);
| ^
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:38:9: error: typedef ‘my_bool’ is initialized (use decltype instead)
38 | typedef my_bool (STDCALL *MysqlStmtCloseType)(MYSQL_STMT*);
| ^~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:38:27: error: ‘MysqlStmtCloseType’ was not declared in this scope; did you mean ‘MysqlCloseType’?
38 | typedef my_bool (STDCALL *MysqlStmtCloseType)(MYSQL_STMT*);
| ^~~~~~~~~~~~~~~~~~
| MysqlCloseType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:46:17: error: ISO C++ forbids declaration of ‘my_bool’ with no type [-fpermissive]
46 | typedef my_bool (STDCALL *MysqlStmtBindParamType)(MYSQL_STMT*, MYSQL_BIND*);
| ^
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:46:9: error: typedef ‘my_bool’ is initialized (use decltype instead)
46 | typedef my_bool (STDCALL *MysqlStmtBindParamType)(MYSQL_STMT*, MYSQL_BIND*);
| ^~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:46:27: error: ‘MysqlStmtBindParamType’ was not declared in this scope; did you mean ‘MysqlStmtPrepareType’?
46 | typedef my_bool (STDCALL *MysqlStmtBindParamType)(MYSQL_STMT*, MYSQL_BIND*);
| ^~~~~~~~~~~~~~~~~~~~~~
| MysqlStmtPrepareType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:48:17: error: ISO C++ forbids declaration of ‘my_bool’ with no type [-fpermissive]
48 | typedef my_bool (STDCALL *MysqlStmtBindResultType)(MYSQL_STMT*, MYSQL_BIND*);
| ^
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:48:9: error: typedef ‘my_bool’ is initialized (use decltype instead)
48 | typedef my_bool (STDCALL *MysqlStmtBindResultType)(MYSQL_STMT*, MYSQL_BIND*);
| ^~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:48:27: error: ‘MysqlStmtBindResultType’ was not declared in this scope
48 | typedef my_bool (STDCALL *MysqlStmtBindResultType)(MYSQL_STMT*, MYSQL_BIND*);
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:64:3: error: ‘MysqlAutoCommitType’ does not name a type; did you mean ‘MysqlStmtInitType’?
64 | MysqlAutoCommitType GetMysqlAutoCommit() { return m_pMysqlAutoCommit; }
| ^~~~~~~~~~~~~~~~~~~
| MysqlStmtInitType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:65:3: error: ‘MysqlCommitType’ does not name a type; did you mean ‘MysqlInitType’?
65 | MysqlCommitType GetMysqlCommit() { return m_pMysqlCommit; }
| ^~~~~~~~~~~~~~~
| MysqlInitType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:66:3: error: ‘MysqlRollbackType’ does not name a type
66 | MysqlRollbackType GetMysqlRollback() { return m_pMysqlRollback; }
| ^~~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:74:3: error: ‘MysqlStmtFreeResultType’ does not name a type; did you mean ‘MysqlFreeResultType’?
74 | MysqlStmtFreeResultType GetMysqlStmtFreeResult() { return m_pMysqlStmtFreeResult; }
| ^~~~~~~~~~~~~~~~~~~~~~~
| MysqlFreeResultType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:75:3: error: ‘MysqlStmtCloseType’ does not name a type; did you mean ‘MysqlCloseType’?
75 | MysqlStmtCloseType GetMysqlStmtClose() { return m_pMysqlStmtClose; }
| ^~~~~~~~~~~~~~~~~~
| MysqlCloseType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:83:3: error: ‘MysqlStmtBindParamType’ does not name a type; did you mean ‘MysqlStmtPrepareType’?
83 | MysqlStmtBindParamType GetMysqlStmtBindParam() { return m_pMysqlStmtBindParam; }
| ^~~~~~~~~~~~~~~~~~~~~~
| MysqlStmtPrepareType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:85:3: error: ‘MysqlStmtBindResultType’ does not name a type
85 | MysqlStmtBindResultType GetMysqlStmtBindResult() { return m_pMysqlStmtBindResult; }
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:97:3: error: ‘MysqlAutoCommitType’ does not name a type; did you mean ‘MysqlStmtInitType’?
97 | MysqlAutoCommitType m_pMysqlAutoCommit;
| ^~~~~~~~~~~~~~~~~~~
| MysqlStmtInitType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:98:3: error: ‘MysqlCommitType’ does not name a type; did you mean ‘MysqlInitType’?
98 | MysqlCommitType m_pMysqlCommit;
| ^~~~~~~~~~~~~~~
| MysqlInitType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:99:3: error: ‘MysqlRollbackType’ does not name a type
99 | MysqlRollbackType m_pMysqlRollback;
| ^~~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:107:3: error: ‘MysqlStmtFreeResultType’ does not name a type; did you mean ‘MysqlFreeResultType’?
107 | MysqlStmtFreeResultType m_pMysqlStmtFreeResult;
| ^~~~~~~~~~~~~~~~~~~~~~~
| MysqlFreeResultType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:108:3: error: ‘MysqlStmtCloseType’ does not name a type; did you mean ‘MysqlCloseType’?
108 | MysqlStmtCloseType m_pMysqlStmtClose;
| ^~~~~~~~~~~~~~~~~~
| MysqlCloseType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:116:3: error: ‘MysqlStmtBindParamType’ does not name a type; did you mean ‘MysqlStmtPrepareType’?
116 | MysqlStmtBindParamType m_pMysqlStmtBindParam;
| ^~~~~~~~~~~~~~~~~~~~~~
| MysqlStmtPrepareType
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlInterface.h:118:3: error: ‘MysqlStmtBindResultType’ does not name a type
118 | MysqlStmtBindResultType m_pMysqlStmtBindResult;
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlPreparedStatement.h:18,
from /home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:6:
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/./include/wx/dblayer/include/../include/MysqlPreparedStatementParameter.h:65:3: error: ‘my_bool’ does not name a type; did you mean ‘bool’?
65 | my_bool m_bIsNull;
| ^~~~~~~
| bool
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp: In member function ‘virtual void MysqlDatabaseLayer::BeginTransaction()’:
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:248:31: error: ‘class MysqlInterface’ has no member named ‘GetMysqlAutoCommit’
248 | int nReturn = m_pInterface->GetMysqlAutoCommit()((MYSQL*)m_pDatabase, 0);
| ^~~~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp: In member function ‘virtual void MysqlDatabaseLayer::Commit()’:
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:261:31: error: ‘class MysqlInterface’ has no member named ‘GetMysqlCommit’; did you mean ‘GetMysqlInit’?
261 | int nReturn = m_pInterface->GetMysqlCommit()((MYSQL*)m_pDatabase);
| ^~~~~~~~~~~~~~
| GetMysqlInit
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:268:27: error: ‘class MysqlInterface’ has no member named ‘GetMysqlAutoCommit’
268 | nReturn = m_pInterface->GetMysqlAutoCommit()((MYSQL*)m_pDatabase, 1);
| ^~~~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp: In member function ‘virtual void MysqlDatabaseLayer::RollBack()’:
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:281:31: error: ‘class MysqlInterface’ has no member named ‘GetMysqlRollback’
281 | int nReturn = m_pInterface->GetMysqlRollback()((MYSQL*)m_pDatabase);
| ^~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:288:27: error: ‘class MysqlInterface’ has no member named ‘GetMysqlAutoCommit’
288 | nReturn = m_pInterface->GetMysqlAutoCommit()((MYSQL*)m_pDatabase, 1);
| ^~~~~~~~~~~~~~~~~~
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp: In member function ‘virtual DatabaseResultSet* MysqlDatabaseLayer::RunQueryWithResults(const wxString&)’:
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:355:25: error: ‘class MysqlInterface’ has no member named ‘GetMysqlStmtFreeResult’; did you mean ‘GetMysqlFreeResult’?
355 | m_pInterface->GetMysqlStmtFreeResult()(pMysqlStatement);
| ^~~~~~~~~~~~~~~~~~~~~~
| GetMysqlFreeResult
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:356:25: error: ‘class MysqlInterface’ has no member named ‘GetMysqlStmtClose’; did you mean ‘GetMysqlClose’?
356 | m_pInterface->GetMysqlStmtClose()(pMysqlStatement);
| ^~~~~~~~~~~~~~~~~
| GetMysqlClose
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:381:21: error: ‘class MysqlInterface’ has no member named ‘GetMysqlStmtFreeResult’; did you mean ‘GetMysqlFreeResult’?
381 | m_pInterface->GetMysqlStmtFreeResult()(pMysqlStatement);
| ^~~~~~~~~~~~~~~~~~~~~~
| GetMysqlFreeResult
/home/user/.cache/yay/codelite/src/codelite-14.0/sdk/databaselayer/src/dblayer/MysqlDatabaseLayer.cpp:382:21: error: ‘class MysqlInterface’ has no member named ‘GetMysqlStmtClose’; did you mean ‘GetMysqlClose’?
382 | m_pInterface->GetMysqlStmtClose()(pMysqlStatement);
| ^~~~~~~~~~~~~~~~~
| GetMysqlClose
make[2]: *** [sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/build.make:213: sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/src/dblayer/MysqlDatabaseLayer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1286: sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 12%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/DiamondShape.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checksizeof.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkstl.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkstring.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checktype.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkuninitvar.cpp.o
[ 12%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/EditTextShape.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkunusedfunctions.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkunusedvar.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkvaarg.cpp.o
[ 12%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/EllipseShape.cpp.o
[ 12%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/cppcheck.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/errorlogger.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/importproject.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/FixedRectShape.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/library.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/mathlib.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/path.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/FlexGridShape.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/pathmatch.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/platform.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/preprocessor.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/settings.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/GridShape.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/suppressions.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/symboldatabase.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/templatesimplifier.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/LineShape.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/MultiSelRect.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/OpenArrow.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/OrthoShape.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/timer.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/PolygonShape.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/PolygonShapeXml.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/token.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/tokenize.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/tokenlist.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/Printout.cpp.o
[ 13%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/valueflow.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/RectShape.cpp.o
[ 13%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/RoundOrthoShape.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/RoundRectShape.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/SFEvents.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/ScaledDC.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/ShapeBase.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/ShapeBaseXml.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/ShapeCanvas.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/ShapeDataObject.cpp.o
[ 14%] Linking CXX executable ../../bin/codelite_cppcheck
[ 14%] Built target codelite_cppcheck
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/ShapeDockpoint.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/ShapeHandle.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/SolidArrow.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/TextShape.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/TextShapeXml.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/Thumbnail.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/wx_pch.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/wxxmlserializer/PropertyIO.cpp.o
[ 14%] Building CXX object sdk/wxshapeframework/CMakeFiles/wxshapeframework.dir/src/wxxmlserializer/XmlSerializer.cpp.o
[ 14%] Linking CXX shared library ../../lib/libwxshapeframework.so
[ 14%] Built target wxshapeframework
make: *** [Makefile:150: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Error making: codelite
uffe commented on 2020-03-02 10:39 (UTC)
@aucunhenac: it is not a problem here. My guess is that you have a partial downloaded file - and you need to clean up that file. curl is semi intelligent and wants to continue where it last was interrupted - but the server seems to refuse that.
aucunhenac commented on 2020-02-29 16:39 (UTC)
When I try today update codelite reports this message:
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume. ==> ERROR: Failure while downloading https://github.com/eranif/codelite/archive/14.0.tar.gz Aborting... Error downloading sources: codelite
Thanks
uffe commented on 2019-10-09 22:24 (UTC) (edited on 2019-10-09 22:27 (UTC) by uffe)
Two months have gone - no official ArchLinux or upstream pango/harfbuzz have come up... I've made a temporary hack/patch that again will enable end-users to compile this codelite AUR package without hazzle.
The pkgrel will NOT be bumped - it is a deliberate choise. My change will bring no value to those of you who have managed to build the current release of codelite - and those that have failed to build codelite during the last two months will not be notified by the pkgrel bump anyway....
Please speak up if you think this is wrong :-)
b1t0 commented on 2019-10-08 22:51 (UTC)
@ryanw that's actually works for me but with another file so thank you.
ryanw commented on 2019-10-07 13:15 (UTC)
I can success build from source after edit two files /usr/include/pango-1.0/pango/pango-features.h
and /usr/include/pango-1.0/pango/pango-font.h
.
in the files change code #include <hb.h>
to #include <harfbuzz/hb.h>
settyness commented on 2019-09-16 19:12 (UTC)
Got a new computer and needed this to build, so I just made temporary symlinks in /usr/include
to all the C header files in /usr/include/harfbuzz
. It's dirty, but it works. You're gonna want to remove the symlinks when you're done or at least until you've built everything you need to that relies on this wonky pango.
uffe commented on 2019-08-14 15:24 (UTC) (edited on 2019-08-14 15:25 (UTC) by uffe)
NOTE: (2019-08-14)
Recent pango (package) releases have created a problem related to inclusion of harfbuzz/hb.h file. The problem will prevent CodeLite and other applications from compiling properly. Currently CodeLite will not compile unless the cmakefiles are hacked - but I'm still hoping for an upstream pango/harfbuzz fix...
uffe commented on 2019-04-09 14:28 (UTC)
@schnedan my comment about stable relases only relates to codelite itself - it has nothing to do with not wanting to accept a patch - which I have applied now.
schnedan commented on 2019-04-04 21:38 (UTC)
Thanks to hpmachining. Works like a charm. Hint: I needed to adjust the md5sum...
Well personally I think the maintainer comment is... lets say bullshit. The community should focus on a working system. For me the computer is a productivity tool, and a IDE especially. If we can fix it we should. Waiting for upstream to appear on my computer broke my systems to often for my taste.
so again: thanks folks for getting the work done!
jazztickets commented on 2019-04-04 15:32 (UTC)
Maybe it's time for an orphan request.
hpmachining commented on 2019-04-04 15:24 (UTC)
I'm not the maintainer, so I can't update the PKGBUILD.
jazztickets commented on 2019-04-04 15:22 (UTC)
Ah, got it. Could you update the PKGBUILD to reflect those changes? It seems to work fine for me.
hpmachining commented on 2019-04-04 14:44 (UTC)
@jazztickets see my previous comments. The patches I posted should fix that error.
hpmachining commented on 2019-01-29 17:17 (UTC)
The issue with mariadb
10.3 has been fixed upstream. Here is a patch for the fix.
mariadb_10_3.patch
diff --git a/sdk/databaselayer/CMakeLists.txt b/sdk/databaselayer/CMakeLists.txt
index b7632bc7d..23907a5ad 100644
--- a/sdk/databaselayer/CMakeLists.txt
+++ b/sdk/databaselayer/CMakeLists.txt
@@ -56,6 +56,18 @@ if ( WITH_MYSQL )
include_directories(${MYSQLCLIENT_INCLUDE})
message("-- Adding MySQL include path: ${MYSQLCLIENT_INCLUDE} ")
FILE(GLOB MYSQL_SRCS "src/dblayer/Mysql*.cpp")
+
+if(UNIX AND NOT APPLE)
+# Recent (2019) versions of debian and Arch have mariadb 10.3 which, it seems, isn't directly compatable with the included dblayer source
+# It has a necessary header file in /usr/include/mariadb/server/ so flag to #include it if it exists
+# See https://github.com/eranif/codelite/issues/2215
+ find_path(MARIADBSERVER_INCLUDE NAMES mysql.h PATH_SUFFIXES mysql/server mariadb/server)
+ if ( NOT ${MARIADBSERVER_INCLUDE} STREQUAL "MARIADBSERVER_INCLUDE-NOTFOUND" )
+ add_definitions( -DMARIADBSERVER_INCLUDE=1 )
+ message( "-- Adding MySQL server include" )
+ endif(NOT ${MARIADBSERVER_INCLUDE} STREQUAL "MARIADBSERVER_INCLUDE-NOTFOUND")
+endif(UNIX AND NOT APPLE)
+
endif ( WITH_MYSQL )
# Define the output
diff --git a/sdk/databaselayer/src/dblayer/MysqlPreparedStatementWrapper.cpp b/sdk/databaselayer/src/dblayer/MysqlPreparedStatementWrapper.cpp
index 699df3a53..3cac9b6c6 100644
--- a/sdk/databaselayer/src/dblayer/MysqlPreparedStatementWrapper.cpp
+++ b/sdk/databaselayer/src/dblayer/MysqlPreparedStatementWrapper.cpp
@@ -1,3 +1,9 @@
+#if defined(MARIADBSERVER_INCLUDE)
+// See https://github.com/eranif/codelite/issues/2215
+// (For some reason this needs to come before the other #includes)
+ #include "server/mysql.h"
+#endif
+
#include "../include/MysqlPreparedStatementWrapper.h"
#include "../include/MysqlPreparedStatementResultSet.h"
#include "../include/MysqlDatabaseLayer.h"
diff --git a/sdk/databaselayer/src/dblayer/MysqlResultSetMetaData.cpp b/sdk/databaselayer/src/dblayer/MysqlResultSetMetaData.cpp
index a22963a9a..831708d23 100644
--- a/sdk/databaselayer/src/dblayer/MysqlResultSetMetaData.cpp
+++ b/sdk/databaselayer/src/dblayer/MysqlResultSetMetaData.cpp
@@ -1,5 +1,5 @@
#include "../include/MysqlResultSetMetaData.h"
-#include "mysql_com.h"
+#include "mysql.h"
// ctor
MysqlResultSetMetaData::MysqlResultSetMetaData(MysqlInterface* pInterface, MYSQL_RES* pMetaData)
Here is a patch to update PKGBUILD
PKGBUILD.patch
diff --git a/PKGBUILD b/PKGBUILD
index 86485d9..ca19afb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@
pkgname=codelite
pkgver=12.0
-pkgrel=1
+pkgrel=2
pkgdesc="Cross platform C/C++/PHP and Node.js IDE written in C++"
arch=('i686' 'x86_64')
url="http://www.codelite.org/"
@@ -22,7 +22,7 @@ depends=('wxgtk'
'clang' 'lldb'
'libedit'
'libssh'
- 'libmariadbclient'
+ 'mariadb-libs'
'ncurses'
'xterm' 'curl'
'python2'
@@ -34,10 +34,15 @@ optdepends=('graphviz: callgraph visualization'
'valgrind: debugger'
)
-source=(https://github.com/eranif/${pkgname}/archive/${pkgver//_/-}.tar.gz http://repos.codelite.org/wxCrafterLibs/wxgui.zip)
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/eranif/${pkgname}/archive/${pkgver//_/-}.tar.gz"
+ http://repos.codelite.org/wxCrafterLibs/wxgui.zip
+ mariadb_10_3.patch
+)
md5sums=('674287c16de4744726afd5fd6521ee4f'
- '20f3428eb831c3ff2539a7228afaa3b4')
+ '20f3428eb831c3ff2539a7228afaa3b4'
+ 'd6da3b478ec7577abd05d8183d20a705')
#if [[ "$CARCH" == 'i686' ]]; then
@@ -52,6 +57,11 @@ noextract=('wxgui.zip')
pkg_name_ver="${pkgname}-${pkgver//_/-}"
+prepare() {
+ cd "${srcdir}/${pkg_name_ver}"
+ patch -p1 -i "${srcdir}"/mariadb_10_3.patch
+}
+
# 20151027: ArchLinux clang/llvm-3.7: CommandLine Error: Option 'aarch64-reserve-x18' registered more than once
# 20151027: -DENABLE_LLDB=0: ArchLinux clang/llvm-3.7: CommandLine Error: Option 'aarch64-reserve-x18' registered more than once
# 20151027: sudo chmod 000 /usr/lib/codelite/LLDBDebugger.so
hpmachining commented on 2019-01-19 15:58 (UTC) (edited on 2019-01-19 21:17 (UTC) by hpmachining)
It looks like the change from libmariadbclient 10.1.37
to mariadb-libs 10.3.12
has broken this build. I can provide the full build log if needed, but here is the error:
build/codelite/src/codelite-12.0/sdk/databaselayer/src/dblayer/MysqlPreparedStatementWrapper.cpp:97:25: error: ‘MYSQL_STMT’ {aka
‘struct st_mysql_stmt’} has no member named ‘affected_rows’; did you mean ‘prefetch_rows’?
return (m_pStatement->affected_rows);
^~~~~~~~~~~~~
prefetch_rows
make[2]: *** [sdk/databaselayer/CMakeFiles/databaselayersqlite.dir/build.make:284: sdk/databaselayer/CMakeFiles/databaselayersqlit
e.dir/src/dblayer/MysqlPreparedStatementWrapper.cpp.o] Error 1
Changing affected_rows
to prefetch_rows
does enable the build to complete, but I don't know what affected_rows
and prefetch_rows
are, so I don't know if that is an appropriate fix.
UPDATE
After some digging, I found that mariadb-libs 10.3.12
(the latest version) has 2 mysql.h
files. One in /usr/include/mysql
and one in /usr/include/mysql/server
. There was only 1 in version 10.1.37 (previous version in Arch). It looks like the one in the server
directory is the one that was used in libmariadbclient 10.1.37
.
If I change line 15 in sdk/databaselayer/include/wx/dblayer/include/MysqlPreparedStatementWrapper.h
from #include "mysql.h"
to #include "server/mysql.h"
the package will build. There are 7 other files that have #include "mysql.h"
. They are not causing the build to fail, but it does build if I change them all. So as a possible fix I added the following to the PKGBUILD.
prepare() {
cd "${srcdir}/${pkg_name_ver}"
sed -i 's%#include "mysql.h"%#include "server/mysql.h"%' $(grep -rl '#include "mysql.h"')
}
I don't know if this is the correct fix. It seems to work but I don't know how to test it properly.
mimagind commented on 2018-08-18 19:50 (UTC)
This fails to build with MySQL support enabled if libmysqlclient>=8 is installed.
sankasan commented on 2018-02-04 09:45 (UTC)
Is there a way to get an older clang version compatible as well?
Clang 5.0 doesn't cut it for all projects and codelite (and codelite-bin) now depend on it. It would be useful if clang35 (and potentially clang39) would be accepted as valid alternatives.
guzzard commented on 2017-10-27 21:22 (UTC)
jmscaramal commented on 2017-08-10 17:08 (UTC)
schnedan commented on 2017-08-02 20:01 (UTC)
uffe commented on 2017-06-12 11:49 (UTC)
zza commented on 2016-12-16 06:51 (UTC)
zerophase commented on 2016-11-17 20:15 (UTC)
duckbrain commented on 2016-11-13 14:48 (UTC)
jgmdev commented on 2016-10-02 14:13 (UTC)
jgmdev commented on 2016-10-01 18:36 (UTC)
jgmdev commented on 2016-10-01 18:27 (UTC)
uffe commented on 2016-09-26 11:43 (UTC)
uffe commented on 2016-09-26 11:42 (UTC) (edited on 2020-07-27 18:21 (UTC) by uffe)
ATTENTION: read this before flagging this package out-of-date
This package "codelite" represents the stable release of the codelite project.
I do not consider the "Weekly Builds" from http://downloads.codelite.org/ as stable releases (neither does the codelite project)
Generally speaking - this package will not be updated before the codelite release/download page (https://downloads.codelite.org/) have a new stable release published.
Please respect that - Thanks
PS: to clear up a recent misunderstanding - this does not mean that I won't accept patches that is needed for stable codelite to build against refreshed libraries etc
PS: I have added new "codelite-unstable" package to AUR that follows the weekly/latest builds from the codelite project.
Pinned Comments
uffe commented on 2016-09-26 11:42 (UTC) (edited on 2020-07-27 18:21 (UTC) by uffe)
ATTENTION: read this before flagging this package out-of-date
This package "codelite" represents the stable release of the codelite project.
I do not consider the "Weekly Builds" from http://downloads.codelite.org/ as stable releases (neither does the codelite project)
Generally speaking - this package will not be updated before the codelite release/download page (https://downloads.codelite.org/) have a new stable release published.
Please respect that - Thanks
PS: to clear up a recent misunderstanding - this does not mean that I won't accept patches that is needed for stable codelite to build against refreshed libraries etc
PS: I have added new "codelite-unstable" package to AUR that follows the weekly/latest builds from the codelite project.