Page 1 of 1
CodeLite doesn't start
Posted: Tue Nov 27, 2012 9:13 pm
by aka
hi everybody,
[*] OS: CentOS 6.3
[*] CodeLite 4.1 (exact package name: codelite-4.1.5770-1.fc.src)
[*] user: root
what is done:
first i downloded and installed wxWidgets-2.9.4.
then I navigated from "
http://codelite.org/" to download page and got "codelite-4.1.5770-1.fc.src.rpm " .
extracted it and did the commands below (exactly as is written in this page: "
http://codelite.org/LiteEditor/Download"):
cd codelite/
./configure
make
[Become the superuser]
make install
problem:
all was successfully done and the CodeLite icon appeared on my desktop. I double click on it, simply it dosen't start!
P.S. xterm-253-1.el6.i686 is already installed on my machine.
Thanks in advance for any help
Re: CodeLite doesn't start
Posted: Tue Nov 27, 2012 9:59 pm
by eranif
Please start it from a command line terminal, you will see an error message - paste it here
My guess:
probably clang dll is not compatible with your machine
In that case, you will need to rebuilt clang from sources by yourself as described here:
Building clang
or disable clang support in codelite (highly not recommended) by passing --without-clang to the configure script
Eran
Re: CodeLite doesn't start
Posted: Tue Nov 27, 2012 10:30 pm
by aka
Thank you very much for replying Eran;
I started it from command line and here is the error message:
codelite: error while loading shared libraries: libwx_gtk2u_aui-2.9.so.4: cannot open shared object file: No such file or directory
and after disabling clang:
codelite: error while loading shared libraries: libclang.so: cannot open shared object file: No such file or directory
i'm a little new to linux, so i couldn't rebuild clang(even after reading the manual).
Best Regards
Re: CodeLite doesn't start
Posted: Tue Nov 27, 2012 10:55 pm
by eranif
Did you compile wxWidgets yourself?
Did you ran "make install" ? (for wxwidgets build not for codelite)
It seems that you were able to compile codelite, however, the wxWidgets libraries could not be found in the path...
Do not disable clang if this is not your problem (and its not your problem from what you pasted here)
Eran
Re: CodeLite doesn't start
Posted: Tue Nov 27, 2012 11:59 pm
by aka
Thank you Eran.
here is what I've done in order to install wxWidgets:
1-downloaded and unzipped wxWidgets-2.9.4 to the path: /root/wxWidgets-2.9.4
2- ran the commands below:
>cd wxWidgets-2.9.4
> mkdir build_gtk
> cd build_gtk
> ../configure --with-gtk
> make
> make install
> ldconfig
>cd ..
and then:
>mkdir build_motif
>cd build_motif
>../configure --with-motif
>make
> make install
> ldconfig
>cd ..
and then:
>mkdir base_release
>cd base_release
> ../configure
>make
> make install
P.S. sorry if being alittle awkward
Re: CodeLite doesn't start
Posted: Wed Nov 28, 2012 12:39 pm
by DavidGH
Hi,
[*] user: root
Out of interest, why?
and then:
>mkdir build_motif
>../configure --with-motif
Really? The motif port of wx is almost entirely unused, and very little tested.
and then:
>mkdir base_release
>cd base_release
> ../configure
This probably didn't do what you think. On Linux with gtk installed, --with-gtk is the default, so this would most probably have duplicated the first build.
However if it didn't, or if you actually specified --with-base --disable-gui (IIRC), you would have just duplicated the 'base' libs that your first build already installed, while installing an extra wx-config.
As you installed all 3 to the same place, and the correct build wasn't the last to be installed, I suspect that's your problem: CodeLite is picking the wrong libs at runtime. What is the output of running, in a terminal:
wx-config --list and
wx-config --libs
Anyway, I suggest you make uninstall in 'base_release' and 'build_motif', then 'make install' again in build_gtk. Then ldconfig and rebuild CodeLite.
If for some reason you really need the wx motif/base builds, reconfigure them with --prefix=<somewhere else> and
don't run ldconfig. Or do as I do when I build wx: use --prefix=$(pwd) and don't 'make install'. This gives a 'local' build to use in that place, where it can't possibly conflict with other builds.
Regards,
David
Re: CodeLite doesn't start
Posted: Thu Nov 29, 2012 5:17 am
by aka
Thank you David,
yeah the problem was wxWidgets!
I tried some other way to get neccessary wxWidgets as below:
yum install wxGTK
yum install wxGTK-devel
yum install gtk2-devel
and it worked! I have codelite running on my machine, now.
Regards,