Page 1 of 1
importance of CL5 new dependencies?
Posted: Fri Feb 01, 2013 10:40 pm
by petah
CL5 adds new dependencies I'd rather avoid:
libgail18
libgeoclue0
libicu48
libjavascriptcoregtk-1.0-0
libwebkitgtk-1.0-0
libwebkitgtk-1.0-common
Before I embark on a custom build, how central are those to CL itself? Checking dependencies with debtree+graphiz is too noisy to draw conclusions.
I'm on Debian Wheezy x64, using the updated CL repos.
thx!
-- p
Re: importance of CL5 new dependencies?
Posted: Fri Feb 01, 2013 11:11 pm
by eranif
petah wrote:CL5 adds new dependencies I'd rather avoid:
libgail18
libgeoclue0
libicu48
libjavascriptcoregtk-1.0-0
libwebkitgtk-1.0-0
libwebkitgtk-1.0-common
Before I embark on a custom build, how central are those to CL itself? Checking dependencies with debtree+graphiz is too noisy to draw conclusions.
I'm on Debian Wheezy x64, using the updated CL repos.
thx!
-- p
My guess is that these libraries are needed because of codelite dependency with libwx29_unofficial* (which includes libwxwebview)
In order to avoid those dependecies, you will need to build codelite + wxWidgets 2.94 from sources
Eran
Re: importance of CL5 new dependencies?
Posted: Sat Feb 02, 2013 5:04 am
by petah
will do, thx a lot!
-- p
Re: importance of CL5 new dependencies?
Posted: Tue Feb 19, 2013 5:02 am
by petah
I managed to build a custom CL5 without the extra deps (Debian Wheezy x64) but had:
error: ‘wxPrintf’ was not declared in this scope
in the following files
./CodeLite/cpptoken.cpp
./CodeLite/file_logger.cpp
./Plugin/macrosdlg.cpp
./UnitTestCPP/unittestcppoutputparser.cpp
./codelite_clang/clang.cpp
which I solved by adding
#include <wx/wxcrtvararg.h>
Is this due to my wx config?
../configure --with-gtk --enable-utf8 --disable-monolithic --disable-compat28 --disable-ipv6 --disable-sound --disable-mediactrl --disable-webview --without-opengl --without-gnomeprint --disable-mdi --disable-apple_ieee --disable-mdidoc --disable-webkit --disable-webviewwebkit --disable-webviewie --enable-gif --disable-tga --without-libtiff --enable-xrc --enable-aui --enable-stl --enable-stc --without-subdirs --enable-filehistory
This is on a fresh CL from git head and happens on both "unofficial" wx 2.9.4 and wx SVN head.
Btw, it's worth mentioning that "make install" can be run as non-root on a custom build; I spent a whole while inside a qemu VM before realizing that
thx!
-- peter
Re: importance of CL5 new dependencies?
Posted: Tue Feb 19, 2013 9:16 am
by eranif
petah wrote:#include <wx/wxcrtvararg.h>
Is this due to my wx config?
perhaps, as it does not happen on any of the machines I am building on (without PCH)
petah wrote:Btw, it's worth mentioning that "make install" can be run as non-root on a custom build;
root privileges are required only if the target installation folder requires admin rights. If you use a different PREFIX - then you can install it without admin rights.
Read this it is explained in more details here:
Building codelite under linux
Eran
Re: importance of CL5 new dependencies?
Posted: Tue Feb 19, 2013 3:36 pm
by petah
can you pls post your /home/eran/devl/wx/build/wx-config so I can diff with mine?
or better yet add it to your git repository?
thx,
-- p
Re: importance of CL5 new dependencies?
Posted: Tue Feb 19, 2013 6:36 pm
by DavidGH
Hi,
can you pls post your /home/eran/devl/wx/build/wx-config so I can diff with mine?
That won't help.
wx-config will report things like what wx libs are available, or what the compilation line should be, for a particular wx build. But you already know that information for your build, and you know how it differed from a standard one.
Your missing #includes are probably due to the things you didn't build. I expect those header files themselves did
#include "wx/foo.h", and foo.h contained lines like:
Code: Select all
#if wxUSE_BAR
#include "wx/wxcrtvararg.h"
...
...
#endif
There's no easy answer to this situation; there are so many rarely-used --disable options that it's impossible to test them all.
To solve your original issue ("CL5 adds new dependencies I'd rather avoid") it's likely that building wx2.9 with a simple
../configure --with-gtk is all you need to do. If the dependencies for things like wxWebView aren't already installed, wx simply configures itself without webview support.
Regards,
David
Re: importance of CL5 new dependencies?
Posted: Tue Feb 19, 2013 9:23 pm
by petah
DavidGH wrote:
To solve your original issue ("CL5 adds new dependencies I'd rather avoid") it's likely that building wx2.9 with a simple ../configure --with-gtk is all you need to do.
Well I'll be damned, it is actually that simple
There's no easy answer to this situation; there are so many rarely-used --disable options that it's impossible to test them all.
THAT BEING SAID, wx/wxcrtvararg.h is pulled in by <wx/string.h> at line 4348:
Code: Select all
#if WXWIN_COMPATIBILITY_2_8
// lot of code out there doesn't explicitly include wx/crt.h, but uses
// CRT wrappers that are now declared in wx/wxcrt.h and wx/wxcrtvararg.h,
// so let's include this header now that wxString is defined and it's safe
// to do it:
#include "wx/crt.h"
#endif
so it may be prudent to manually add <wx/crt.h> to the above CL files.
Does my "discovery" make up for my wx-config ignorance? hardly
cheers,
-- p