Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jenriquez on August 07, 2006, 06:56:54 pm

Title: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: jenriquez on August 07, 2006, 06:56:54 pm
Hi, I installed CB today, I'm using yesterday's CB build (the .deb package).

The problem I have is that CB is treating warnings as errors, and when I hit F9 the program won't run if it finds some warning messages. A program that shows 3 warning messages will give this output in the Build messages window:

Note: "aviso" = "warning" (my system is in Spanish).

ahorcado.cpp:103: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:129: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:137: aviso: comparación entre expresiones enteras signed y unsigned
:: === Build finished: 3 errors, 0 warnings ===

As you can see, it's not counting the messages as warnings but as errors :?.

Another small problem is when creating a new project, in the "New from template" window, if I switch the "View as" option, the icons don't update and nothing is drawn to the window (icons "disappear").

Regards,
JJ Enríquez.
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: tiwag on August 07, 2006, 07:05:09 pm
the parsing of compiler output works at the moment only with english compiler messages ...  :shock:
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: jenriquez on August 07, 2006, 07:09:42 pm
Oh, that's the problem :P.

Thanks for letting me know, hope it works with other languages soon :).
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: mandrav on August 07, 2006, 07:13:22 pm
Go to "Settings->Compiler and debugger->Other" press "Advanced options" and edit the strings in the output regular expressions to match your language.
Or, use a shell script to launch C::B. Something like this:

Code
export LC_MESSAGES=en_US
codeblocks
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: jenriquez on August 08, 2006, 05:40:37 am
Thanks mandrav, that did the trick ;).

Quote
:: === Ahorcado, Debug ===
ahorcado.cpp:112: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:138: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:147: aviso: comparación entre expresiones enteras signed y unsigned
:: === Build finished: 0 errors, 3 warnings ===

Keep up the good work!

Regards,
José Jorge Enríquez.
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: sethjackson on August 08, 2006, 07:41:22 pm
Thanks mandrav, that did the trick ;).

Quote
:: === Ahorcado, Debug ===
ahorcado.cpp:112: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:138: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:147: aviso: comparación entre expresiones enteras signed y unsigned
:: === Build finished: 0 errors, 3 warnings ===

Keep up the good work!

Regards,
José Jorge Enríquez.

Why is the last line in English and not Spanish????
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: Der Meister on August 08, 2006, 08:59:30 pm
It looks like he uses an english version of Code::Blocks but a spanish version of his compiler.  :)
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: sethjackson on August 08, 2006, 09:00:51 pm
It looks like he uses an english version of Code::Blocks but a spanish version of his compiler.  :)

Ok that makes sense. :)
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: jenriquez on August 09, 2006, 05:29:04 am
Where can I find the Spanish version of CB?

Thanks,
JJ Enríquez.
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: Ceniza on August 09, 2006, 06:22:49 am
Someone was working in the Spanish translation of Code::Blocks and he was about to release the file, but I haven't heard of him lately.

I just checked in Launchpad and the Spanish translation is about 50% done...

BTW, you could help with the translation too :)
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: jenriquez on August 13, 2006, 05:10:57 am
I've found that X.Cyclop is the one working on the translation, I know him! (from a Spanish speaking programming forum) :P. I'll try to contact him about it.

Best wishes,
JJ Enríquez.
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: Ceniza on August 13, 2006, 06:23:11 am
I decided to help with the Spanish translation and there're only two things left to translate: the GPL's and the wxWidgets' licenses.

It still needs to be "tested" and get some improvements (specially the translation of "watches"), but it should be usable by now.

The link for the translation is https://launchpad.net/products/codeblocks

How to use it... I have no idea :P
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: jenriquez on August 13, 2006, 10:19:15 pm
Thanks, I've downloaded the .mo file, however, I don't know where to place it so that CB can load it. I've tried going to Settings->Environment->Internationalization, but I could only find a Chinese option (which does not work, by the way).

Regards,
JJ Enríquez.
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: jenriquez on August 13, 2006, 11:44:26 pm
I've finally made it work in Ubuntu :). Here's the process:


In the case of Windows, I guess you should place the codeblocks.mo file within YOUR_CB_INSTALL_DIR/share/CodeBlocks/locale/YOUR_LANG/

YOUR_CB_INSTALL_DIR would be something like C:\Program Files\CodeBlocks\

I've attached a screenshot, it seems there are still some untranslated strings, but I guess those are not in the original template file since at the launchpad site it indicates there are just 2 strings left.

About the GPL license, you can find unofficial translations at http://www.gnu.org/licenses/translations.html

PS: Thanks to all people who helped with the Spanish translation, as listed at Launchpad:
#  AlejandroLeon
# Almorca
# Ceniza
# JacK-DuRdEn_
# Juan
# Mario Palomo Torrero

Best wishes,
JJ Enríquez.

[attachment deleted by admin]
Title: Re: Small issues when trying to build and run in Linux (Ubuntu 6.06)
Post by: Leo.J90 on August 15, 2006, 02:34:11 am
Sorry, i lost the file that i was translating to spanish. :x

I'll try to translate it from Launchpad.

Thanks jenriquez.;)