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

Building duit programs and so on.

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



Joined: 29 Apr 2006
Posts: 14

PostPosted: Mon Jun 05, 2006 3:03 am    Post subject: Building duit programs and so on. Reply with quote

Hello. I'd like to know how to build DUIT, but maybe the question should be more general. I'd like to know how the compiler works. When I compile a .cpp and I need some libraries, I would do like this:

g++ myfile.cpp -o myfile -lmylibrary

Do I have to do exactly the same thing for dmd? Or I also need the source files ?

And would you let me do a suggestion? If the name for the binding is finally going to be gtkD (what I'd REALLY like to) I think the sooner this is changed, the better. I mean the API and so on. Because if people start working now with DUIT and then have to change its code, it will be annoying for them. Thanks for your time.
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Mon Jun 05, 2006 3:54 pm    Post subject: Re: Building duit programs and so on. Reply with quote

he-man wrote:
Hello. I'd like to know how to build DUIT, but maybe the question should be more general. I'd like to know how the compiler works. When I compile a .cpp and I need some libraries, I would do like this:

g++ myfile.cpp -o myfile -lmylibrary

Do I have to do exactly the same thing for dmd? Or I also need the source files ?

And would you let me do a suggestion? If the name for the binding is finally going to be gtkD (what I'd REALLY like to) I think the sooner this is changed, the better. I mean the API and so on. Because if people start working now with DUIT and then have to change its code, it will be annoying for them. Thanks for your time.

You need the source files (as you need the header files for C++ - they are read from the default include directory).

Maybe the best is to use build (from dsource).

I don't think it will be a big problem changing from Duit to whatever will be the final name - but you're right, I have to make the decision.

Ant
Back to top
View user's profile Send private message
he-man



Joined: 29 Apr 2006
Posts: 14

PostPosted: Mon Jun 05, 2006 4:31 pm    Post subject: Re: Building duit programs and so on. Reply with quote

Ant wrote:
he-man wrote:
Hello. I'd like to know how to build DUIT, but maybe the question should be more general. I'd like to know how the compiler works. When I compile a .cpp and I need some libraries, I would do like this:

g++ myfile.cpp -o myfile -lmylibrary

Do I have to do exactly the same thing for dmd? Or I also need the source files ?

And would you let me do a suggestion? If the name for the binding is finally going to be gtkD (what I'd REALLY like to) I think the sooner this is changed, the better. I mean the API and so on. Because if people start working now with DUIT and then have to change its code, it will be annoying for them. Thanks for your time.

You need the source files (as you need the header files for C++ - they are read from the default include directory).

Maybe the best is to use build (from dsource).

I don't think it will be a big problem changing from Duit to whatever will be the final name - but you're right, I have to make the decision.

Ant


This is the output. But take care, it seems that the error is a different line every time I execute leds and always in increasing line number.

Loaded lib = libgtk-x11-2.0.so
Loaded lib = libglib-2.0.so
Loaded lib = libatk-1.0.so
Loaded lib = libgobject-2.0.so
Loaded lib = libgdk-x11-2.0.so
Loaded lib = libgthread-2.0.so
Loaded lib = libpango-1.0.so
Loaded lib = libscintilla.so
failed (libglib-2.0.so) g_atomic_int_inc
failed (libglib-2.0.so) g_atomic_int_dec_and_test
failed (libglib-2.0.so) g_module_supported
failed (libglib-2.0.so) g_module_build_path
failed (libglib-2.0.so) g_module_open
failed (libglib-2.0.so) g_module_symbol
failed (libglib-2.0.so) g_module_name
failed (libglib-2.0.so) g_module_make_resident
failed (libglib-2.0.so) g_module_close
failed (libglib-2.0.so) g_module_error
failed (libglib-2.0.so) g_ascii_isalnum
failed (libglib-2.0.so) g_ascii_isalpha
failed (libglib-2.0.so) g_ascii_iscntrl
failed (libglib-2.0.so) g_ascii_isdigit
failed (libglib-2.0.so) g_ascii_isgraph
failed (libglib-2.0.so) g_ascii_islower
failed (libglib-2.0.so) g_ascii_isprint
failed (libglib-2.0.so) g_ascii_ispunct
failed (libglib-2.0.so) g_ascii_isspace
failed (libglib-2.0.so) g_ascii_isupper
failed (libglib-2.0.so) g_ascii_isxdigit
failed (libglib-2.0.so) g_win32_error_message
failed (libglib-2.0.so) g_win32_getlocale
failed (libglib-2.0.so) g_win32_get_package_installation_directory
failed (libglib-2.0.so) g_win32_get_package_installation_subdirectory
failed (libglib-2.0.so) g_win32_get_windows_version
failed (libglib-2.0.so) g_win32_locale_filename_from_utf8
failed (libgthread-2.0.so) g_mutex_new
failed (libgthread-2.0.so) g_mutex_lock
failed (libgthread-2.0.so) g_mutex_trylock
failed (libgthread-2.0.so) g_mutex_unlock
failed (libgthread-2.0.so) g_mutex_free
failed (libgthread-2.0.so) g_cond_new
failed (libgthread-2.0.so) g_cond_signal
failed (libgthread-2.0.so) g_cond_broadcast
failed (libgthread-2.0.so) g_cond_wait
failed (libgthread-2.0.so) g_cond_timed_wait
failed (libgthread-2.0.so) g_cond_free
failed (libgthread-2.0.so) g_private_new
failed (libgthread-2.0.so) g_private_get
failed (libgthread-2.0.so) g_private_set
failed (libgthread-2.0.so) g_thread_supported
failed (libgthread-2.0.so) g_thread_create
failed (libgthread-2.0.so) g_thread_yield
failed (libgthread-2.0.so) g_static_mutex_lock
failed (libgthread-2.0.so) g_static_mutex_trylock
failed (libgthread-2.0.so) g_static_mutex_unlock
failed (libgthread-2.0.so) g_static_mutex_get_mutex
failed (libpango-1.0.so) script_engine_list
failed (libpango-1.0.so) script_engine_init
failed (libpango-1.0.so) script_engine_exit
failed (libpango-1.0.so) script_engine_create
Using home = /home/he-man/.leds2
Using data = /home/he-man/.leds2_data


(leds:30360): Gtk-WARNING **: Mixing deprecated and non-deprecated GtkToolbar API is not allowed
FileException: /home/he-man/.leds2/openedFiles1.leds: 2

I tried to create a /home/he-man/.leds2/openedFiles1.leds and now it doesn't throw an exception but it freezes and doesn't run at all when launching it from a terminal.
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Mon Jun 05, 2006 10:23 pm    Post subject: Re: Building duit programs and so on. Reply with quote

he-man wrote:

FileException: /home/he-man/.leds2/openedFiles1.leds: 2

I tried to create a /home/he-man/.leds2/openedFiles1.leds and now it doesn't throw an exception but it freezes and doesn't run at all when launching it from a terminal.

ah!
this is a new thing: XML preferences file.
I can fix this, but not today (too tired)
here is a simple openedFiles1.leds
Code:
<?xml version="1.0">
<workspace name="main">
   <openedFiles />
   <view tabsPosition="right" />
</workspace>

(don't try to fix it, it works like that for now)

Ant
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Tue Jun 06, 2006 10:34 am    Post subject: Re: Building duit programs and so on. Reply with quote

Once you pass all the problems don't give up on the project setup.
The UI is unfriendly but you need to deal with it once by project/target

follow instruction from
http://leds.sourceforge.net/userManualProj.html

it's not up to date, there is a new base src directory you need to fill.

DON'T FORGET to click the top right icon on the target!

I really need to review the target panel.

Ant
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