View previous topic :: View next topic |
Author |
Message |
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Sun Apr 02, 2006 6:21 am Post subject: Build and Duit |
|
|
I'm trying to build Duit on linux using build, but the process fails because ../build/duit.d try to import ../lib/lib.d which is not in the repository. If I remove the import, ar seems to complete successfully, but I suspect that some object files will be missing.
Is lib.d missing, or is it an extranous line in duit.d? |
|
Back to top |
|
|
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Sun Apr 02, 2006 6:40 am Post subject: |
|
|
oh, and demos ain't linuxified... DUIT.LIB is referenced directly in demo.brf
Hmm, and for some reason only ../ is searched thus gtk/Version.d ain't found. TestWindow.a is built if -I.. is removed from demo.brf, but how is that one supposed to be used further?
Just wondering, I'll probably look into this myself later. |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Sun Apr 02, 2006 9:29 am Post subject: Re: Build and Duit |
|
|
larsivi wrote: | I'm trying to build Duit on linux using build, but the process fails because ../build/duit.d try to import ../lib/lib.d which is not in the repository. If I remove the import, ar seems to complete successfully, but I suspect that some object files will be missing.
Is lib.d missing, or is it an extranous line in duit.d? |
duit.d is build automatically but evidently poorly tested
(I use leds for all my D development).
lib/lib.d does NOT exist
missing in duit.d: lib.Loader and lib.paths (maybe built was smart enough to find these 2 modules by it self)
also lines:
"\n version (Windows) pragma (target, \"DUIT.lib\" );"
"\n version (linux) pragma (target, \"libDUIT.a\" );"
should contain "Duit" not "DUIT".
I just commited these changes to the svn repository (139).
(still not tested - I have yet to install build)
Ant |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Sun Apr 02, 2006 9:42 am Post subject: |
|
|
larsivi wrote: | oh, and demos ain't linuxified... DUIT.LIB is referenced directly in demo.brf
Hmm, and for some reason only ../ is searched thus gtk/Version.d ain't found. TestWindow.a is built if -I.. is removed from demo.brf, but how is that one supposed to be used further?
Just wondering, I'll probably look into this myself later. |
TestWindow is the main for DuitTests. it shuld be compiled to an exec renamed "DuitTests".
I'll see about providing a compilation script.
Ant |
|
Back to top |
|
|
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Sun Apr 02, 2006 1:33 pm Post subject: |
|
|
Hmm, you added an extranous d to the imports, so the compilation failed with a rather confusing error message
If you dare giving me access to the repository, I might help you fix minor issues here and there. |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Sun Apr 02, 2006 6:54 pm Post subject: |
|
|
larsivi wrote: | Hmm, you added an extranous d to the imports, so the compilation failed with a rather confusing error message
If you dare giving me access to the repository, I might help you fix minor issues here and there. |
Ok I'm going to install 'build' so I can test the build.d before releasing it.
I'm going to ask Brad to add you to the DUI members.
please notice (almost) every thing under the 'src' branch is generated automatically, there is not point changing things there.
Ant |
|
Back to top |
|
|
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Mon Apr 03, 2006 3:20 am Post subject: |
|
|
dmd v.0.150 removed the std.c.stdio dependency, so the debug version won't compile, the "import std.c.stdio" must be changed to "import std.stdio".
I don't really understand the conversion/wrapping stuff, so I don't see where this should be changed. |
|
Back to top |
|
|
|