Codelite on Ubuntu 11.10

CodeLite installation/troubleshooting forum
gaspode
CodeLite Curious
Posts: 8
Joined: Fri Aug 03, 2012 10:39 am
Genuine User: Yes
IDE Question: C++
Contact:

Codelite on Ubuntu 11.10

Post by gaspode »

Hello,
I can install codelite_4.0.5589-ubuntu0-11.10_i386.deb package one my Ubuntu 11.10 system but I have a build break when I try compile codelite source. The compilation error is:

Code: Select all

sdk/wxsqlite3/src/wxsqlite3.cpp:1208:20: error: prototype for ‘wxSQLite3ResultSet wxSQLite3Statement::ExecuteQuery()’ does not match any in class ‘wxSQLite3Statement’
/usr/include/wx-2.8/wx/wxsqlite3.h:1248:22: error: candidate is: wxSQLite3ResultSet wxSQLite3Statement::ExecuteQuery(bool)
sdk/wxsqlite3/src/wxsqlite3.cpp:1533:6: error: prototype for ‘void wxSQLite3Database::Open(const wxString&, const wxString&)’ does not match any in class ‘wxSQLite3Database’
/usr/include/wx-2.8/wx/wxsqlite3.h:1745:8: error: candidates are: void wxSQLite3Database::Open(const wxString&, const wxMemoryBuffer&, int)
/usr/include/wx-2.8/wx/wxsqlite3.h:1732:8: error:                 void wxSQLite3Database::Open(const wxString&, const wxString&, int)
sdk/wxsqlite3/src/wxsqlite3.cpp:1545:6: error: prototype for ‘void wxSQLite3Database::Open(const wxString&, const wxMemoryBuffer&)’ does not match any in class ‘wxSQLite3Database’
/usr/include/wx-2.8/wx/wxsqlite3.h:1745:8: error: candidates are: void wxSQLite3Database::Open(const wxString&, const wxMemoryBuffer&, int)
/usr/include/wx-2.8/wx/wxsqlite3.h:1732:8: error:                 void wxSQLite3Database::Open(const wxString&, const wxString&, int)
sdk/wxsqlite3/src/wxsqlite3.cpp:1583:6: error: prototype for ‘bool wxSQLite3Database::IsOpen()’ does not match any in class ‘wxSQLite3Database’
/usr/include/wx-2.8/wx/wxsqlite3.h:1752:8: error: candidate is: bool wxSQLite3Database::IsOpen() const
sdk/wxsqlite3/src/wxsqlite3.cpp:1623:6: error: prototype for ‘void wxSQLite3Database::Rollback()’ does not match any in class ‘wxSQLite3Database’
/usr/include/wx-2.8/wx/wxsqlite3.h:1887:8: error: candidate is: void wxSQLite3Database::Rollback(const wxString&)
sdk/wxsqlite3/src/wxsqlite3.cpp:1653:6: error: prototype for ‘bool wxSQLite3Database::TableExists(const wxString&)’ does not match any in class ‘wxSQLite3Database’
/usr/include/wx-2.8/wx/wxsqlite3.h:1942:8: error: candidates are: bool wxSQLite3Database::TableExists(const wxString&, wxArrayString&)
/usr/include/wx-2.8/wx/wxsqlite3.h:1934:8: error:                 bool wxSQLite3Database::TableExists(const wxString&, const wxString&)
sdk/wxsqlite3/src/wxsqlite3.cpp:1690:5: error: prototype for ‘int wxSQLite3Database::ExecuteUpdate(const char*)’ does not match any in class ‘wxSQLite3Database’
/usr/include/wx-2.8/wx/wxsqlite3.h:2039:7: error: candidates are: int wxSQLite3Database::ExecuteUpdate(const char*, bool)
sdk/wxsqlite3/src/wxsqlite3.cpp:1685:5: error:                 int wxSQLite3Database::ExecuteUpdate(const wxSQLite3StatementBuffer&)
sdk/wxsqlite3/src/wxsqlite3.cpp:1678:5: error:                 int wxSQLite3Database::ExecuteUpdate(const wxString&)
I have libwxsqlite3-2.8-dev in 2.1.2-1 version installed. What version of this package should I have to compile codelite? My system is updated and upgraded and I have checked by using "apt-cache show libwxsqlite3-2.8-dev" that there is no other version available. So, I cannot upgrade or downgrade this package. If version of package is wrong maybe more depedencies check should be added to autotools scripts and DEBIAN/control file too. ;)

If libwxsqlite3-2.8-dev is OK, what else should I do to compile the codelite?
Thanks you.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite on Ubuntu 11.10

Post by eranif »

gaspode wrote:What version of this package should I have to compile codelite?
None.

You should un-install it - and it will build fine.
codelite comes with its own version and there is probably a bug in the generated makefiles so that the package you installed takes precedence over codelite's one

Eran
Make sure you have read the HOW TO POST thread
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite on Ubuntu 11.10

Post by DavidGH »

Hi,
I have libwxsqlite3-2.8-dev in 2.1.2-1 version installed.
...and presumably it's conflicting with CodeLite's built-in wxsqlite3. Can you uninstall it, or is it needed for something else?

If it can't uninstall it, I suggest you create your own wxWidgets build, passing the additional configure option --prefix=$(pwd), then point to that build's wx-config when compiling CodeLite. (I'll give more detailed instructions if necessary ;) )

Regards,

David
gaspode
CodeLite Curious
Posts: 8
Joined: Fri Aug 03, 2012 10:39 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite on Ubuntu 11.10

Post by gaspode »

I have removed this package and it works now.
Thank you. :)
Post Reply