The BAsic CONverter Forum
« bacon -x ./*.bac not working [SOLVED] »

Welcome Guest. Please Login or Register.
May 20, 2013, 9:28pm




The BAsic CONverter Forum :: General :: Troubleshooting area :: bacon -x ./*.bac not working [SOLVED]
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: bacon -x ./*.bac not working [SOLVED] (Read 278 times)
l18l
New Member
*
member is offline

[avatar]



Joined: Mar 2011
Gender: Male
Posts: 44
Karma: 0
 bacon -x ./*.bac not working [SOLVED]
« Thread Started on Apr 28, 2011, 10:05am »

Hi Peter,

Having installed wary and quirkybaby latest pets (see comments Posted on 12 Apr 2011 and later ) in barryk's blog
I have seen that there is no pot file generated anymore.

Not sure if it is specific to puppy
so my direct question here:

Could you confirm with another system that a pot file is generated, please?
Code:
OPTION INTERNATIONAL TRUE
PRINT INTL$("hello world")

If confirmed the bug has to be searched in puppy.

Thanks in advance
« Last Edit: Apr 28, 2011, 6:51pm by l18l »Link to Post - Back to Top  IP: Logged
Pjot
Administrator
*****
member is offline

[avatar]

[icq]
[homepage]

Joined: Apr 2010
Gender: Male
Posts: 938
Location: The Hague, The Netherlands
Karma: 9
 Re: bacon -x ./*.bac not working with latest BaCon
« Reply #1 on Apr 28, 2011, 2:54pm »

Hi l18l,

Works fine for me:


Quote:

peter@host:~$ bacon -v

BaCon version 1.0 build 22 beta - (c) Peter van Eerten - GPL v3.

peter@host:~$
peter@host:~$ cat l18l.bac
OPTION INTERNATIONAL TRUE
PRINT INTL$("hello world")
peter@host:~$
peter@host:~$
peter@host:~$ bacon -x l18l.bac
Starting conversion... done.
Executing xgettext... done.
Starting compilation... done.
Program 'l18l' ready.
peter@host:~$ cat l18l.pot
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-04-28 15:51+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: l18l.bac.c:30
msgid "hello world"
msgstr ""


Best regards
Peter
Link to Post - Back to Top  IP: Logged
l18l
New Member
*
member is offline

[avatar]



Joined: Mar 2011
Gender: Male
Posts: 44
Karma: 0
 Re: bacon -x ./*.bac not working with latest BaCon
« Reply #2 on Apr 28, 2011, 5:43pm »

Thank you Peter,

the simple example is working for me too now.... ???
it seems my own code is the culprit. ::)

So am now compiling again my actual project sfsget and t2sfsget a formerly saved part of it
Code:
# bacon -x t2sfsget.bac
Starting conversion... done.
Executing xgettext... done.
Starting compilation... done.
Program 't2sfsget' ready.
# ls -l t2sfsget*
-rwxr-xr-x 1 root root 87109 2011-04-28 16:41 t2sfsget
-rw-r--r-- 1 root root 26203 2011-04-27 19:01 t2sfsget.bac
-rw-r--r-- 1 root root 2840 2011-04-28 16:41 t2sfsget.pot
#
#
# bacon -x ./sfsget.bac
Starting conversion... done.
Executing xgettext... done.
Starting compilation... done.
Program './sfsget' ready.
# ls -l sfsget*
-rwxr-xr-x 1 root root 89232 2011-04-28 16:41 sfsget
-rw-r--r-- 1 root root 28587 2011-04-28 12:25 sfsget.bac
-rwxr--r-- 1 root root 9967 2011-04-28 11:36 sfsget.sh
#

This is making clear that the culprit must be my code :'(

Need to dig deeper into...

an error message (Executing xgettext...but NO new potfile) would have been fine 8-)

« Last Edit: Apr 28, 2011, 5:52pm by l18l »Link to Post - Back to Top  IP: Logged
l18l
New Member
*
member is offline

[avatar]



Joined: Mar 2011
Gender: Male
Posts: 44
Karma: 0
 Re: bacon -x not working [SOLVED]
« Reply #3 on Apr 28, 2011, 6:28pm »


Apr 28, 2011, 5:43pm, l18l wrote:

This is making clear that the culprit must be my code :'(

Need to dig deeper into...

an error message (Executing xgettext...but NO new potfile) would have been fine 8-)


Did not have to dig very deep...
Code:
#bacon -x sfsget.bac
Starting conversion... done.
Executing xgettext... done.
Starting compilation... done.
Program 'sfsget' ready.
# ls -l sfsget*
-rwxr-xr-x 1 root root 89676 2011-04-28 17:17 sfsget
-rw-r--r-- 1 root root 28684 2011-04-28 17:16 sfsget.bac
-rw-r--r-- 1 root root 3104 2011-04-28 17:17 sfsget.pot
-rwxr--r-- 1 root root 9967 2011-04-28 11:36 sfsget.sh
#
Code:
IMPORT "gtk_widget_set_tooltip_text(long,char*)" FROM "libgtk-x11-2.0.so" TYPE void
was missing. I had been thinking "don't use any tooltip" so I had deleted this line.
Compiling and testing did not make a different result but the pot file was missing.

Now everything is fine again. :)

Peter, could you make above mentioned error message display in red? I know you can but would you do so?
« Last Edit: Apr 28, 2011, 6:50pm by l18l »Link to Post - Back to Top  IP: Logged
Pjot
Administrator
*****
member is offline

[avatar]

[icq]
[homepage]

Joined: Apr 2010
Gender: Male
Posts: 938
Location: The Hague, The Netherlands
Karma: 9
 Re: bacon -x ./*.bac not working [SOLVED]
« Reply #4 on Apr 28, 2011, 7:05pm »


Quote:

Peter, could you make above mentioned error message display in red?

Well, in red, no (not all terminals are ANSI compliant) - but the error message "WARNING: catalog file not created!" was added.

Regards
Peter
Link to Post - Back to Top  IP: Logged
l18l
New Member
*
member is offline

[avatar]



Joined: Mar 2011
Gender: Male
Posts: 44
Karma: 0
 Re: bacon -x ./*.bac not working [SOLVED]
« Reply #5 on Apr 28, 2011, 7:16pm »

Code:
Starting conversion... done.
Executing xgettext... done.
Starting compilation... done.
WARNING: catalog file not created!

Yes, that will attract attention also all in default color of terminal.
Thank you
« Last Edit: Apr 28, 2011, 8:26pm by l18l »Link to Post - Back to Top  IP: Logged
   [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile