News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CB and ubuntu

Started by bluekid, April 22, 2006, 08:00:40 AM

Previous topic - Next topic

bluekid

I try use C::B under ubuntu 5.1
but I getting a error :(
Quote
Exception: An exception has been raised!
The application encountered an error at configmanager.cpp, on line 553.
The error message is: The Configuration key İNACTİVE_CAPTİON_COLOR (child of node "app" in namespace "app") does not meet the standard for variable naming. Variables names are required to start with a letter.
Code::Blocks Version revision 2343 (gcc 4.0.2, build: Apr 13 2006 20:49:45)
what can I do
What is blue ? Blue is the invisible becoming visible.

sethjackson

Quote from: bluekid on April 22, 2006, 08:00:40 AM
Quote
Code::Blocks Version revision 2343 (gcc 4.0.2, build: Apr 13 2006 20:49:45)
what can I do

Try a newer SVN revision? Maybe not use GCC 4.0.2...... I don't think the compiler would have too much impact on this though......

thomas

QuoteTry a newer SVN revision?
It is not the program's fault.

QuoteİNACTİVE_CAPTİON_COLOR
Just wondering... are you being serious?

You changed the substring INACTIVE_CAPTION_COLOR inside environmentsettingsdlg.cpp to İNACTİVE_CAPTİON_COLOR. Note the diacritic marks on top of the 'I' letters.

Not only is there absolutely no reason to do that, but this would also result in invalid xml and thus cause all configuration to be corrupted.
The program is behaving 100% correctly by not letting you do such things.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

bluekid

QuoteYou changed the substring INACTIVE_CAPTION_COLOR inside environmentsettingsdlg.cpp to İNACTİVE_CAPTİON_COLOR
No I dont change But I use Ubuntu at turkish languages
and for turkish  from lower case to upper case
i -> İ
ı -> I
i new in linux where can i found "environmentsettingsdlg.cpp" file ?

What is blue ? Blue is the invisible becoming visible.

thomas

Uh... that's annoying. So I have to apologise, if toupper does that, then it is indeed the program's fault (kind of).

This means that all calls to toupper have to be replaced with a custom function to make it work with Turkish.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

thomas

Try updating to the newest revision, it is ugly, but it should work now.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

bluekid

where can i get corrected revision or how can i correct my deb packages ?
What is blue ? Blue is the invisible becoming visible.

thomas

If you want to stick with the .deb package, you have to wait until Michael made a new one (usually happens nearly every day).

Otherwise, you can of course simply checkout from svn and build your own, it is not hard.

Something like this should do just nicely:
sudo apt-get install libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx-common
mkdir cb && cd cb
svn checkout svn://svn.berlios.de/codeblocks/trunk
cd src
./bootstrap && ./configure && make && sudo make install


It might be that you need to install gcc or automake, too, if those are not on your system (but normally they should be).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Michael

#8
Quote from: thomas on April 24, 2006, 03:54:42 PM
If you want to stick with the .deb package, you have to wait until Michael made a new one (usually happens nearly every day).

I will build a new one today around 20:00, depending on the commits :). So it should be ready around 22:00-22:30.

Quote from: thomas on April 24, 2006, 03:54:42 PM
Otherwise, you can of course simply checkout from svn and build your own, it is not hard.

I fully agree :).

Quote from: thomas on April 24, 2006, 03:54:42 PM
Something like this should do just nicely:
sudo apt-get install libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx-common
mkdir cb && cd cb
svn checkout svn://svn.berlios.de/codeblocks/trunk
cd src
./bootstrap && ./configure && make && sudo make install


An alternative would be to check out the SVN sources and then build them with C::B directly (do not forget to run ./update). This is how I do for my C::B builds.

Quote from: thomas on April 24, 2006, 03:54:42 PM
It might be that you need to install gcc or automake, too, if those are not on your system (but normally they should be).

It seems (for what I have read in some Linux forums) that Ubuntu does not come with gcc installed by default :?. Therefore you should install the package build-essential with e.g., Synaptic (or sudo apt-get install build-essential).

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

bluekid

there is no internet connection in my ubuntu installed computer   :( so i must be wait for deb packages
thanks
What is blue ? Blue is the invisible becoming visible.

Michael

Quote from: bluekid on April 24, 2006, 04:27:51 PM
there is no internet connection in my ubuntu installed computer   :( so i must be wait for deb packages
thanks

Hello,

I have built package for rev2374. It is just a temporary package to let you try if it works for you now. I will build the "official" build for today tomorrow, when I will know the rev number :).

You can find the package here:

http://www.savefile.com/projects.php?pid=547711

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

bluekid

I download  package rev2374 now . I try this evening
so I wil write result tomorrow.
thanks
What is blue ? Blue is the invisible becoming visible.

bluekid

#12
I tryed yesterday night
Exception continues another places but same manner  :(

QuoteException: An exception has been raised!
The application encountered an error at configmanager.cpp, on line 568.
The error message is:
The Configuration key ı18N (child of node "app" in namespace "app") does not mee t the standard for variable naming.
Variables names are required to start with a letter.

Code::Blocks Version revision 2374 (gcc 4.0.2, build: Apr 24 2006 20:53:58)
What is blue ? Blue is the invisible becoming visible.

thomas

Quoteı18N
What's that, lowercase 'i' without dot? So it seems that it also transforms 'I' to 'ı' in tolower()... sigh.

I'll hardcode that function too, then it should work (hopefully).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

bluekid

i hope so too
but why are you using -tolower-toupper- ?
as you can shown in my problem "tolower" and "toupper" function change with language,
you can solve problem for Turkish but for other language may be cause same problem for other letter.
So in my opinion dont use these function or write new tolower,toupper
What is blue ? Blue is the invisible becoming visible.