WeakRef updated to better support Tango -- and a question
Jason House
jason.james.house at gmail.com
Tue Mar 25 15:27:56 PDT 2008
Sean Kelly wrote:
> But I'll admit to being a bit surprised that the
> Tango build process is painful. It amounts to running one script, at
> least for the base lib.
Ok, so here's my latest experience *after* learning about
http://dsource.org/projects/tango/wiki/PreviousReleases... I clocked
myself at 45 minutes to do it (with recornding my steps here). After
breaking my system completely at a few points, I'm now back where I
started, with the two linker errors from the other day :( Did I do
anything wrong? Any *other* ideas what could be going wrong?
1. http://dsource.org/projects/tango/wiki/PreviousReleases, poke around
2. http://dsource.org/projects/tango/wiki/0_99_4_GdcDownloads
(for binary releases -- to make my life easier, right?)
3. Download Tango-only
4. tar -xzf ...
5. ls, etc
6. examine install script (I'm always suspect of Tango installers)
7. sudo ./install-gdc.sh
-> You must uninstall your old copy of Tango before
installing a new one.
8. re-examine install script
9. sudo ./install-gdc.sh --uninstall
-> Done!
10. sudo ./install-gdc.sh
Copying files...
`libgphobos.a' ->
`/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libgphobos.a'
cp: cannot stat `../object.di': No such file or directory
Failed to copy source
11. re-examine install script
12. locate object.di
13. cp /path/to/random/object.di ..
14. sudo ./install-gdc.sh
-> You must uninstall your old copy of Tango before
installing a new one.
15. sudo ./install-gdc.sh --uninstall
-> Done!
16. sudo ./install-gdc.sh
Copying files...
`libgphobos.a' ->
`/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libgphobos.a'
`../object.di' ->
`/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/../include/d/4.1.3/object.d'
Done!
17. Rebuild my project
-> 6585 linking errors
18. Back to web, download source only from
http://dsource.org/projects/tango/wiki/0_99_4_download
19. tar -xzf ...
20. Copy proper object.di to binary only package
21. sudo ./install-gdc.sh --uninstall
22. sudo ./install-gdc.sh
23. rebuild project (make clean, make)
-> 6585 linking errors
24. Lookup your NG instructions
25. cd lib; ./build-gdc.sh
26. ./build-tango.sh
-> Error
27. Examine help
28. ./build-tango.sh gdc
29. sudo ./install-gdc.sh
You must uninstall your old copy of Tango before installing a new one.
30. sudo ./install-gdc.sh --uninstall
Done!
31. sudo ./install-gdc.sh
Copying files...
`libgphobos.a' ->
`/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libgphobos.a'
`../object.di' ->
`/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/../include/d/4.1.3/object.d'
Done!
32. Rebuild my project
-> Two linking errors
All said and done, I took 45 minutes and am now back to where I started. I
still have two linker errors...
rt_attachDisposeEvent
rt_detachDisposeEvent
More information about the Digitalmars-d
mailing list