FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Linking problem with SourceView

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
Mitu



Joined: 22 Sep 2009
Posts: 59
Location: Poland

PostPosted: Mon Dec 14, 2009 7:46 am    Post subject: Linking problem with SourceView Reply with quote

Hello. I'm trying to compile the program using SorceView, but it ends up like this:

http://pastebin.com/d78f5772

What should I do?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Mon Dec 14, 2009 1:09 pm    Post subject: Reply with quote

The first few errors would suggest the main function is missing.

And i see a few lines like this:
Quote:
mitu@kubuntu-desktop:~/Pulpit$ dmd main.d


If you are calling dmd directly you will heve to tell it where it can find the source of gtk/gtksourceview and which libraries to link with.
You will end up with something like this:

Quote:
dmd main.d -Ipath/to/src -Ipath/to/srcsv -L-Lpath/to/libs -L-lgtkd -L-lgtkdsv -L-ldl


It's possible that the line i saw is not you calling dmd directly, because i find it odd it tries to link the app while it can't compile it, since it cant find the souce for gtksourceview.
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Mon Dec 14, 2009 1:12 pm    Post subject: Reply with quote

Quote:
main.d(2): Error: module SourceView cannot read file 'sv/SourceView.d'


You should import gsv.SourceView instead of sv.SourceView.
Back to top
View user's profile Send private message
Mitu



Joined: 22 Sep 2009
Posts: 59
Location: Poland

PostPosted: Tue Dec 15, 2009 8:38 am    Post subject: Reply with quote

Well, I've put all these paths into the dmd.conf file.

The log I've put is a bit wrong, first ~20 lines shouldn't be there (they're from previous tries)

The log seems to be removed from server, I'm pasting it again (but now it's correct):

http://pastebin.com/d130321a8

It looks like the SourceView can't find the rest od gtkD files...
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Dec 15, 2009 12:58 pm    Post subject: Reply with quote

Try changing the order the libraries are listed in in the config file.
Put gtkdsv before gtkd.
Back to top
View user's profile Send private message
Mitu



Joined: 22 Sep 2009
Posts: 59
Location: Poland

PostPosted: Wed Dec 16, 2009 10:16 am    Post subject: Reply with quote

Cheers Smile

Thank you very much, changing the order made it work.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group