Author Topic: CB and ubuntu  (Read 18922 times)

Offline bluekid

  • Multiple posting newcomer
  • *
  • Posts: 57
  • What is blue ? Blue is the invisible becoming visi
CB and ubuntu
« on: April 22, 2006, 08:00:40 am »
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

  • Guest
Re: CB and ubuntu
« Reply #1 on: April 22, 2006, 03:10:22 pm »
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......

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: CB and ubuntu
« Reply #2 on: April 22, 2006, 03:40:56 pm »
Quote
Try 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."

Offline bluekid

  • Multiple posting newcomer
  • *
  • Posts: 57
  • What is blue ? Blue is the invisible becoming visi
Re: CB and ubuntu
« Reply #3 on: April 24, 2006, 08:43:39 am »
Quote
You 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.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: CB and ubuntu
« Reply #4 on: April 24, 2006, 09:24:15 am »
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."

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: CB and ubuntu
« Reply #5 on: April 24, 2006, 10:05:30 am »
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."

Offline bluekid

  • Multiple posting newcomer
  • *
  • Posts: 57
  • What is blue ? Blue is the invisible becoming visi
Re: CB and ubuntu
« Reply #6 on: April 24, 2006, 02:48:34 pm »
where can i get corrected revision or how can i correct my deb packages ?
What is blue ? Blue is the invisible becoming visible.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: CB and ubuntu
« Reply #7 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).

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."

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: CB and ubuntu
« Reply #8 on: April 24, 2006, 04:22:11 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.

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

I fully agree :).

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.

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
« Last Edit: April 24, 2006, 04:41:22 pm by Michael »

Offline bluekid

  • Multiple posting newcomer
  • *
  • Posts: 57
  • What is blue ? Blue is the invisible becoming visi
Re: CB and ubuntu
« Reply #9 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
What is blue ? Blue is the invisible becoming visible.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: CB and ubuntu
« Reply #10 on: April 24, 2006, 11:02:39 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

Offline bluekid

  • Multiple posting newcomer
  • *
  • Posts: 57
  • What is blue ? Blue is the invisible becoming visi
Re: CB and ubuntu
« Reply #11 on: April 25, 2006, 11:01:12 am »
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.

Offline bluekid

  • Multiple posting newcomer
  • *
  • Posts: 57
  • What is blue ? Blue is the invisible becoming visi
Re: CB and ubuntu
« Reply #12 on: April 26, 2006, 07:31:13 am »
I tryed yesterday night
Exception continues another places but same manner  :(

Quote
Exception: 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)
« Last Edit: April 26, 2006, 07:33:28 am by bluekid »
What is blue ? Blue is the invisible becoming visible.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: CB and ubuntu
« Reply #13 on: April 26, 2006, 10:00:01 am »
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."

Offline bluekid

  • Multiple posting newcomer
  • *
  • Posts: 57
  • What is blue ? Blue is the invisible becoming visi
Re: CB and ubuntu
« Reply #14 on: April 26, 2006, 10:30:16 am »
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.