2.3.0.3833 doesn't compile on Qubuntu/Hardy

CodeLite installation/troubleshooting forum
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

2.3.0.3833 doesn't compile on Qubuntu/Hardy

Post by HJarausch »

Hi,

many thanks for this new release!
Unfortunately, I couldn't compile it on Linux (Qubuntu/Hardy with wx-2.8.7.1)

There is no file wx/aui/auibar.h

Interfaces/plugin.h tries to include this one.

Thanks for looking into it.

(I'll try on bleeding edge GenToo system this afternoon)

Helmut.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: 2.3.0.3833 doesn't compile on Qubuntu/Hardy

Post by eranif »

You need WX2.8.9 for this class.

However, you may workaround it by changing this line:

From file CodeLite/cl_defs.h

Code: Select all

#    if wxABI_VERSION >= 20809
Into this:

Code: Select all

#    if wxCHECK_VERSION(2,8,9)
If this is still failing for you, change this entire line into:

Code: Select all

#    if 0
This way codelite will make use of the default wxToolBar

Eran
Make sure you have read the HOW TO POST thread
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: 2.3.0.3833 doesn't compile on Qubuntu/Hardy

Post by HJarausch »

Sorry, but it didn't help and I don't see how it could help.

First, there is no file cl_defs.h in CodeLite but only in Interfaces.

Furthermore, from Interfaces/plugin.h

#ifndef PLUGIN_H

#define PLUGIN_H



#include "imanager.h"

#include "wx/toolbar.h"

#include <wx/pen.h>

#include <wx/aui/auibar.h>


This includes auibar.h , there is no preprocessor variable here.

Thanks for looking into it,
Helmut.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: 2.3.0.3833 doesn't compile on Qubuntu/Hardy

Post by eranif »

HJarausch wrote:First, there is no file cl_defs.h in CodeLite but only in Interfaces.
Indeed, this is the file I meant
HJarausch wrote:#include <wx/aui/auibar.h>
Change this line (from plugin.h)

into:

Code: Select all

#if USE_AUI_TOOLBAR
#include <wx/aui/auibar.h>
#endif
EDIT:You should make sure that you include "cl_defs.h" before this block

This should fix it
Eran
Make sure you have read the HOW TO POST thread
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: 2.3.0.3833 doesn't compile on Qubuntu/Hardy

Post by HJarausch »

Thanks, that works just fine.

I'd like to add two items to the wish list
- on Linux configure --prefix=<PATH> isn't honored completely.
CodeLite still wants to install some libs into /usr/lib
(This was with 2.2.0, at least, but I believe with 2.3.0, as well)

- Is there any means to quiet the Update pop up window until the next
release is ready? (One would have to store the release for which this
info has been read already.)

Thanks for CodeLite,
Helmut.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: 2.3.0.3833 doesn't compile on Qubuntu/Hardy

Post by eranif »

HJarausch wrote:Is there any means to quiet the Update pop up window until the next release is ready?
'Settings -> Global Editor Preferences -> Misc'
and un-check the option: "Check for new version on startup"

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: 2.3.0.3833 doesn't compile on Qubuntu/Hardy

Post by DavidGH »

Hi Helmut,
on Linux configure --prefix=<PATH> isn't honored completely.
If you use --prefix=<FOO> you also need to do --plugins-dir=<BAR> (where FOO and BAR may be the same or different paths).

Eran, perhaps plugins-dir should default to prefix when only prefix is specified...

Regards,

David
Post Reply