View previous topic :: View next topic |
Author |
Message |
Mengu
Joined: 21 Mar 2010 Posts: 21
|
Posted: Tue Mar 23, 2010 12:45 pm Post subject: TextView Syntax Highlight |
|
|
Hi,
I am building a programming editor with gtkD and I would like to know which path should I follow in order process syntax highlighting to the content of my text view.
Thanks. _________________ mengu.net - some kind of monster |
|
Back to top |
|
|
Mengu
Joined: 21 Mar 2010 Posts: 21
|
Posted: Tue Mar 23, 2010 1:27 pm Post subject: |
|
|
alright, i have found that i can use GtkSourceView with D so I am going to use it. however I cannot build my simple example.
i'm trying to build my simple file like this: dmd button-test.d -I~/projects/gtkD/src -I~/projects/gtkD/srcsv -L-L~/projects/gtkD/src -L-L~/projects/gtkD/srcsv -L-lgtkd -L-ldl
but this fails. i'm missing something but i don't know what is it.
edit: i have tried to compile like dmd button-test.d -I~/projects/gtkD/src -I~/projects/gtkD/srcsv -L-ldl -L-L~/projects/gtkD/src -L-L~/projects/gtkD/srcsv -L-lgtkd -L/home/mengu/projects/gtkD/libgtkdsv.a
but i got this error:
http://paste.pocoo.org/show/192989/
by the way, i have installed gtkD like this:
- download from trunk
- run make
and i am able to use all gtk features. except the sourceview. _________________ mengu.net - some kind of monster |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Mar 23, 2010 3:16 pm Post subject: |
|
|
Link gtkdsv before gtkd like so:
dmd button-test.d -I~/projects/gtkD/src -I~/projects/gtkD/srcsv -L-ldl -L-L~/projects/gtkD/src -L-L~/projects/gtkD/srcsv -L-lgtkdsv -L-lgtkd
You could also use --start-group and --end-group so ld searches the libraries recursively for dependencies, but im not sure you can pass them trough dmd. |
|
Back to top |
|
|
Mengu
Joined: 21 Mar 2010 Posts: 21
|
Posted: Tue Mar 23, 2010 5:44 pm Post subject: |
|
|
Mike Wey wrote: | Link gtkdsv before gtkd like so:
dmd button-test.d -I~/projects/gtkD/src -I~/projects/gtkD/srcsv -L-ldl -L-L~/projects/gtkD/src -L-L~/projects/gtkD/srcsv -L-lgtkdsv -L-lgtkd
You could also use --start-group and --end-group so ld searches the libraries recursively for dependencies, but im not sure you can pass them trough dmd. |
Thank you Mike, this is working great. _________________ mengu.net - some kind of monster |
|
Back to top |
|
|
Epileg
Joined: 10 Sep 2009 Posts: 77
|
Posted: Tue Mar 30, 2010 12:42 pm Post subject: |
|
|
I build periodically deb packages of gtkd. During the installation process, the package modifies the "/etc/dmd.conf" file to assure that dmd will compile correctly applications with gtkd.
But now I see that the order of the linking is important and I don't know what's the right way to do that.
Also I don't know how to correctly use "--start-group" and "--end-group".
Thanks in advance. |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Wed Mar 31, 2010 2:10 pm Post subject: |
|
|
Just make sure libgtkd is the last on the list of gtkd libraries it should be the only one that matters, since there are no dependencies between the other libraries. |
|
Back to top |
|
|
Epileg
Joined: 10 Sep 2009 Posts: 77
|
Posted: Wed Mar 31, 2010 2:47 pm Post subject: |
|
|
Ok, thanks a lot! |
|
Back to top |
|
|
|