Vala and Genie programming

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#381 Post by nikobordx »

caleb72 wrote:I'm having trouble compiling Valide 0.5 and NicoEdit.

For both, it gets to this:

Checking for glib-2.0 >= 2.16.0 :
error: the configuration failed (see '/root/my-documents/valide-0.5.0/_build_/config.log')

It's complaining about my version of glib it seems - but I don't know exactly what I need to do to fix it.

I've tried installing libglib libraries etc.. but it must be more than that. Can anyone give me any guidance on how to troubleshoot this and fix it?

Regards
Caleb
Hi Caleb,

Do you have the same problem with NicoEdit ?
Probably, you need to update glib to version 2.20, no ?

Nicolas.

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#382 Post by nikobordx »

Hi,

Version 2 beta 7 !

News:
Fix a problem with temporary file
Add "Find Prev" (F2) and "Find Next" (F3)
Added "Find entire word only"
When finding, go to the top of the text when bottom has reached
When finding, go to the bottom of the text when top has reached

Yes i know, i don't include the "find and replace" lol
I try to include it tomorrow !

Nicolas.
Attachments
NicoEdit.tar.gz
(126.69 KiB) Downloaded 873 times

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#383 Post by caleb72 »

nikobordx wrote:
Hi Caleb,

Do you have the same problem with NicoEdit ?
Probably, you need to update glib to version 2.20, no ?

Nicolas.
That's what is confusing me.
libglib-2.0.so and libglib-2.0.so.0 are both linking to
libglib-2.0.so.0.2000.1

Regards
Caleb

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#384 Post by nikobordx »

caleb72 wrote: That's what is confusing me.
libglib-2.0.so and libglib-2.0.so.0 are both linking to
libglib-2.0.so.0.2000.1

Regards
Caleb
I don't know what to do.
Problably deleting all file related to glib and reinstall it.

Do you have this problem when you build NicoEdit with bk_compile ?

Nicolas.

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#385 Post by caleb72 »

nikobordx wrote: Do you have this problem when you build NicoEdit with bk_compile ?

Nicolas.
Can you tell me how I would try to build with bk_compile?
There's only instructions for waf.

Regards
Caleb

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#386 Post by nikobordx »

Hi Caleb72,
caleb72 wrote: Can you tell me how I would try to build with bk_compile?
Go to the puppy directory, and as root ./bk_compile, then ./bk_install.
caleb72 wrote: There's only instructions for waf.
There is also instruction for building in puppy, see README
And of course use the last version (2.0 beta 7)

Nicolas.

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#387 Post by caleb72 »

nikobordx wrote:Hi Caleb72,
caleb72 wrote: Can you tell me how I would try to build with bk_compile?
Go to the puppy directory, and as root ./bk_compile, then ./bk_install.
caleb72 wrote: There's only instructions for waf.
There is also instruction for building in puppy, see README
And of course use the last version (2.0 beta 7)

Nicolas.
OK found bk_compile.
So far I'm getting a different problem related to gtksourceview.

Code: Select all

Package gtksourceview-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtksourceview-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtksourceview-2.0' found
If I echo $PKG_CONFIG_PATH, I get:

Code: Select all

# echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig:/usr/X11R7/lib/pkgconfig:/opt/qt4/lib/pkgconfig:/opt/mozilla.org/lib/pkgconfig
Does gtksourceview's .pc file get placed anywhere in particular - or will I need to search for it. I installed a package from:

http://distro.ibiblio.org/pub/linux/dis ... -2.4.2.pet

Regards
Caleb

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#388 Post by BarryK »

caleb72,
What version of Puppy are you running?

If 4.x, then get PET packages from pet_packages-4 in ibiblio, it has gtksourceview-2.4.2-pup4.pet.
[url]https://bkhome.org/news/[/url]

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#389 Post by caleb72 »

BarryK wrote:caleb72,
What version of Puppy are you running?

If 4.x, then get PET packages from pet_packages-4 in ibiblio, it has gtksourceview-2.4.2-pup4.pet.
Thanks for that. I'll give it a go tonight.
When people refer to the official repositories I always think they're referring to the package manager - I didn't realise that my first point of call should be ibiblio. Will look there first from now on.

Regards
Caleb

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#390 Post by caleb72 »

No luck unfortunately. After installing the gtksourceview from ibiblio I still get:

Code: Select all

Package gtksourceview-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtksourceview-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtksourceview-2.0' found
Regards
Caleb

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#391 Post by MU »

[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#392 Post by caleb72 »

That sorted things - to a degree.

I managed to compile NicoEdit with bk_compile - but the first time it complained about many things so I thought I probably needed the dev of glib as well. So I hunted that down and regressed all my runtime glib to 2.18 like the dev available at ibiblio.

I then got a successful build with only one warning:

Code: Select all

nicoedit.gs:877.32-877.35: warning: Argument 1: Cannot pass null to non-null parameter type
        buf = new SourceBuffer(null)
However, no syntax highlighting when running the application.

I still can't build either Valide or NicoEdit using waf. It's no longer complaining about my glib version (thank god). Now it's complaining about my gtk2 version.

Code: Select all

Checking for gtk+-2.0 >= 2.16.0             :
 error: the configuration failed (see '/root/my-documents/valide-0.5.0/_build_/config.log')
I don't see a version of gtk2 >= 2.16.0 in ibiblio. Is this something I'm going to have to find elsewhere?

Regards
Caleb

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#393 Post by nikobordx »

Hi Caleb,

For the warning, it is not important.

You do not have syntax highlighting with all files you loaded with NicoEdit ?

Nicolas.

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#394 Post by caleb72 »

nikobordx wrote:Hi Caleb,

For the warning, it is not important.

You do not have syntax highlighting with all files you loaded with NicoEdit ?

Nicolas.
So far I haven't had any syntax regardless of file loaded or just by specifying the highlighting I want in the view menu.

I also notice that sometimes NicoEdit recognises what syntax highlighting it should use - but still doesn't.

Eg. if I load C source, it recognises the file as C and selects that highlighting - but there actually is no highlighting.
However, .vala files are recognised as C and .gs files are recognised as Text.

So far I've tried syntax highlighting for .vala, .gs, .c, .h, .sh, .htm and .html files. No highlighting on any.

I've guessing this is a gtksourceview issue - just don't know what I'm supposed to do about it.

Regards
Caleb

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#395 Post by caleb72 »

OK - not sure if this helps - but I ran from the command line so that I could see what was being output when I changed syntax highlighting (incidentally this happens with Medit as well so it's not specific to NicoEdit).

When I select genie as a language in either app I get this:

(medit:24664): Moo-WARNING **: Failed to load '/usr/share/moo/language-specs/genie.lang': style override used with wildcard context reference in language 'genie' in ref 'def:line-continue'

NicoEdit makes exactly the same complaint but for language files loaded in a different location. Also the complaint is the same whether you select any of the languages in the list or if you load a file of a particular language.

Perhaps this brings the answer closer to the surface?

Regards
Caleb

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#396 Post by nikobordx »

Hi Caleb,

Does the .lang correctly installed ?
If not, try to reinstall gtksourceview !

Nicolas.

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#397 Post by caleb72 »

OK - some more info:

When I run Medit from the command line I get the following critical failures on start-up.

Code: Select all

(medit:20487): Moo-WARNING **: moooutputfilterregex.c:647: PCRE library is compiled without UTF8 properties support

(medit:20487): GLib-CRITICAL **: PCRE library is compiled without UTF8 properties support

(medit:20487): GLib-CRITICAL **: g_regex_match_full: assertion `regex != NULL' failed
I see that PCRE is for regular expressions. I'm not sure if this can explain problems with syntax highlighting because I'm guessing at its core that a syntax highlighter would make extensive use of regular expressions.

However, when I run NicoEdit, I'm not getting these errors in start-up - although I am getting the following:

Code: Select all

** (nicoedit:22558): CRITICAL **: nico_edit_open_file: assertion `filename != NULL' failed

(nicoedit:22558): GtkSourceView-CRITICAL **: gtk_source_language_manager_get_language: assertion `id != NULL' failed
The .lang files seem to be there where it's trying to source both for nicoedit and for medit - but neither can seem to understand them properly or something.

I might try to do all of this on another 4.2 puppy I have set up and see if there's just something weird in my setup somewhere.

Regards
Caleb

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#398 Post by nikobordx »

Hi Caleb,

For:

Code: Select all

** (nicoedit:22558): CRITICAL **: nico_edit_open_file: assertion `filename != NULL' failed
It is not important, i have also this error, it's because no file are loaded when you load NicoEdit, if you use NicoEdit via command line (eg: nicoedit yourfile.txt) the message disappear.

For:

Code: Select all

(nicoedit:22558): GtkSourceView-CRITICAL **: gtk_source_language_manager_get_language: assertion `id != NULL' failed
It is not normal !
You must reinstall gtksourceview or use a newer version.

Nicolas.

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#399 Post by nikobordx »

[Message deleted]

See newer message !
Last edited by nikobordx on Sun 13 Sep 2009, 17:08, edited 1 time in total.

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#400 Post by nikobordx »

[Message deleted]

See newer message !
Last edited by nikobordx on Fri 04 Sep 2009, 21:42, edited 1 time in total.

Post Reply