[Gambas-devel] Translations for Gambas3

David Villalobos Cambronero david_villalobos_c at ...7...
Mon May 12 14:32:02 CEST 2008


Hi, that's what I get on make:

n.c' || echo './'`gbx_extern.c
gbx_extern.c: En la función ‘EXTERN_call’:
gbx_extern.c:381: error: expected expression before ‘else’
make[4]: *** [gbx3-gbx_extern.o] Error 1
make[4]: se sale del directorio `/home/alumno/Gambas/3/trunk/main/gbx'
make[3]: *** [all-recursive] Error 1
make[3]: se sale del directorio `/home/alumno/Gambas/3/trunk/main'
make[2]: *** [all] Error 2
make[2]: se sale del directorio `/home/alumno/Gambas/3/trunk/main'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/alumno/Gambas/3/trunk'
make: *** [all] Error 2


----- Original Message ----
From: Benoit Minisini <gambas at ...1...>
To: mailing list for gambas developers <gambas-devel at lists.sourceforge.net>
Sent: Sunday, May 11, 2008 12:07:48 PM
Subject: Re: [Gambas-devel] Translations for Gambas3

On dimanche 11 mai 2008, Benoit Minisini wrote:
> On dimanche 11 mai 2008, Benoit Minisini wrote:
> > On dimanche 11 mai 2008, David Villalobos Cambronero wrote:
> > > Hi, OK here it is:
> > >
> > > Usually I try to find some new strings to be
> > > translated in the Gambas 3 IDE
> > > (../trunk/app/src/gambas3), the project opens OK but
> > > when I go to the menu: Project/Translate, to
> > > translate, the FTranslate form just doesn't open. In
> > > the status bar appears a message: “compiling project
> > > gambas3...” and that's all.
> > >
> > > But if I save the Gambas 3 IDE in another place, for
> > > example my /home directory, then the  FTranslate
> > > windows opens.
> > >
> > > The problem is that Translate Dialog doesn't appears
> > > when I'm working in the /src directory, but if I'm
> > > working in other one then the dialog appears.
> > >
> > > Here's why (I found the error, but no sure if it is
> > > mine):
> > >
> > > In the source directory (../trunk/app/src/gambas3) the
> > > file: “.startup” file belongs to root, as well as the
> > > group, that's why “If Project.Compile() Then Return
> > > (Fmain:614)” returns true and the FTranslate window
> > > never opens.
> > >
> > > And when I save the project in another place, the
> > > file: “.startup” belongs to the current user, and then
> > > everything goes fine.
> > >
> > > Now I have tow problems:
> > >
> > > 1 Why this file belongs to root if I download the
> > > sources from svn repository as normal user?
> > >
> > > 2 I never see the error message: “gbc: ERROR: Cannot
> > > create .startup file”. I'm supposed to see it just in
> > > debug mode or it should appear in the status bar?
> > >
> > > Can someone help please?
> > >
> > > Best regards...
> > >
> > > David
> >
> > You found the trick.
> >
> > During the "make install" process, all Gambas projects located in the
> > sources are compiled, and so their .startup files are created as root.
> >
> > The other problem is that you don't get the error message from the IDE,
> > which is a shame.
> >
> > Note that the compiler generate other files, so your problems exists for
> > other part of the IDE.
> >
> > This is actually a design flaw in the build process. Gambas projects
> > should be compiled during the "make" step, not the "make install". But
> > this is impossible at the moment as the compilation of Gambas projects
> > need the libraries installed during "make install". This is a chicken-egg
> > story...
> >
> > I have no real solution at the moment.
> >
> > Maybe just make the project read-only when .startup is detected as non
> > writable?
>
> Finally, I have a solution: when the compiler creates a new file, it will
> try to set the owner and group of this file to the owner and group of
> the ".project" file.
>
> That solves all the problems, doesn't it?.
>
> Regards,

The feature has been implemented in revision #1369. Please tell me if it 
solves the trick for you!

-- 
Benoit Minisini

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gambas-devel mailing list
Gambas-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




More information about the Devel mailing list