[help]setup codelite-2.5.2.4031.tar.gz on ubuntu

CodeLite installation/troubleshooting forum
wgf08062000
CodeLite Enthusiast
Posts: 10
Joined: Mon May 31, 2010 9:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: [help]setup codelite-2.5.2.4031.tar.gz on ubuntu

Post by wgf08062000 »

Hi :
I attached the build output log file.Please have a check,
Thanks in advanced.
By the way,i installed the wxwidget2.8.10 in unicode mode,why did you said
"the link errors suggests that you are linking against release-ansi version of wxwidgets"?
please give me reason and how to judge that
[ste@VM4:...p/codelite-2.5.2.4031] $> wx-config --selected-config
gtk2-unicode-release-2.8
[ste@VM4:...p/codelite-2.5.2.4031] $
[ste@VM4:...p/codelite-2.5.2.4031] $> wx-config --version
2.8.10
[ste@VM4:...p/codelite-2.5.2.4031] $>
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [help]setup codelite-2.5.2.4031.tar.gz on ubuntu

Post by eranif »

wgf08062000 wrote:By the way,i installed the wxwidget2.8.10 in unicode mode,why did you said
"the link errors suggests that you are linking against release-ansi version of wxwidgets"?
*All* of the functions not found had wchar_t this may suggest that the compilation stage was done using Unicode header files, while the linker picked the ANSI libraries.

BTW: you need to perform a full rebuild, since I cant see the compilation lines, only the linker command.

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: [help]setup codelite-2.5.2.4031.tar.gz on ubuntu

Post by DavidGH »

Yes,in my pc ,once the wxwidget2.6 is in existence,then for installing the codelite,i installed the wxwidget2.8.
Oh. In theory, that should be safe. In practice, people often report conflicts.
[ste@VM4:...p/codelite-2.5.2.4031] $> wx-config --universal
You don't want or need universal.
Also.i did not config LD_LIBRARY_PATH ,do i need config LD_LIBRARY_PATH ?
Not at the moment, anyway. That won't help linking, but if you're still using /usr/local, you might need it for running an app.
try running which wx-config and see if it is the one you just installed (if you did not change the default value, you installed /usr/local/bin/wx-config) if you get something like /usr/bin/wx-config while you installed /usr/local/bin/wx-config, it means there is another version of wxWidgets installed somewhere else, probably installed by the system. You can quickly get it out the way with a hacky command like sudo mv /usr/bin/wx-config /usr/bin/wx-config-old1.
----------------------------------------
according to instruction above,i check my wxwidget,the result is below:
[ste@VM4:...p/codelite-2.5.2.4031] $> which wx-config
/usr/local/bin/wx-config
[ste@VM4:...p/codelite-2.5.2.4031] $>
It depends on your $PATH. If /usr/local is in your PATH, and it's before /usr, then /usr/local/bin/wx-config will be the first wx-config to be found. That may or may not be what you want.

Your situation is confusing and unstable.How to solve this depends on why you're using ubuntu and CodeLite.
Are you developing an app on ubuntu? If so, will you release it to other people?
wgf08062000
CodeLite Enthusiast
Posts: 10
Joined: Mon May 31, 2010 9:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: [help]setup codelite-2.5.2.4031.tar.gz on ubuntu

Post by wgf08062000 »

Hi eranif :
According to your request,i rebuild again,and attached the log file named log.tar.gz.
Please have a check and make a qucik response.
Thanks in advanced.
By the way,can you tell me how you make the judgement about [the compilation stage was done using Unicode header files, while the linker picked the ANSI libraries.]?
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [help]setup codelite-2.5.2.4031.tar.gz on ubuntu

Post by eranif »

The compilation phase looks OK to me, the problem is that we dont know which libraries are picked up during link (I noticed that you have multiple versions of wxWidgets).

You can try this:

Run this from the command line:

Code: Select all

 nm -e /usr/lib/libwx_baseud-2.8.so.0 | grep InitWith | xargs c++filt
If the signature you get is

Code: Select all

wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)
it means that the debug version is correct (it contains InitWith() method with the correct signature)

So re-run codelite's configure like this

Code: Select all

./configure --enable-debug
(this will create a makefiles to build codelite in debug version)

and rebuild codelite (make clean all) .

If the output of the command does not match the signature I pasted above, then I suggest that you remove all previous wxWidgets installation you got on your box, and re-install wx from synaptic:

Code: Select all

sudo apt-get install libwxget2.8-dev
-- for the release version of wxWidgets

Code: Select all

sudo apt-get install libwxget2.8-dbg
-- for the debug version of wxWidgets

and rebuild codelite
Eran
Make sure you have read the HOW TO POST thread
wgf08062000
CodeLite Enthusiast
Posts: 10
Joined: Mon May 31, 2010 9:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: [help]setup codelite-2.5.2.4031.tar.gz on ubuntu

Post by wgf08062000 »

Hi:
In my pc ,there have libwx_baseu-2.8.so.0 and libwx_base-2.8.so.0,no libwx_baseud-2.8.so.0

root@VM4:/temp# nm -e /usr/local/lib/libwx_baseu-2.8.so.0 | grep InitWith | xargs c++filt
000a90d0
T
wxStringBase::InitWith(char const*, unsigned int, unsigned int)root@VM4:/temp# nm -e /usr/local/lib/libwx_base-2.8.so.0 | grep InitWith | xargs c++filt
000a90c0
T
wxStringBase::InitWith(char const*, unsigned int, unsigned int)
root@VM4:/temp#
how can i remove all wxwiget? give me instruction
wgf08062000
CodeLite Enthusiast
Posts: 10
Joined: Mon May 31, 2010 9:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: [help]setup codelite-2.5.2.4031.tar.gz on ubuntu

Post by wgf08062000 »

HI:
Firstly,thanks for your help,now the codelite can be worked fine,
the install is successful.
Now ,because i have installed many wxwidgets ,so i want to uninstall and remove wxwidgets.
How can i do that?what are instructions be used?please give me some help.
Thanks in advanced.
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: [help]setup codelite-2.5.2.4031.tar.gz on ubuntu

Post by DavidGH »

Firstly,thanks for your help,now the codelite can be worked fine,
the install is successful.
Good :) . Out of interest, what was the successful method?
Now ,because i have installed many wxwidgets ,so i want to uninstall and remove wxwidgets.
For the package wxGTKs, use the same method that you used to install them e.g. synaptic, or 'sudo apt-get remove' or 'sudo dpkg -r'.

For the wxGTK that you built: if you still have the installation directory with the makefile, cd to it and do 'sudo make uninstall'. If not, you'll need to remove the wx packages by hand, carefully!, using 'sudo rm -f'

I don't know what your plans are for wx and CodeLite. If you want to create packages of your app that other people can use in ubuntu, I suggest that, once you have removed the current wxGTKs, you install the standard ubuntu wxGTK (sudo apt-get install libwxgtk2.8-dev). You can use this both for development and for packaging.

If you also want more flexibility without any chance of conflicts e.g. if you want to have both a debug and a release wx build, or if you want to test your app on different wx versions, I strongly suggest that you create 'local' wx installs. See http://wxforum.shadonet.com/viewtopic.php?p=97200#97200
Post Reply