View previous topic :: View next topic |
Author |
Message |
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Thu Nov 16, 2006 2:22 pm Post subject: Building on Mac OS X |
|
|
Here is how far it got on Mac OS X, with GDC unstable (r20)
Code: |
# make -f Makefile.gdc.posix
cd dsss_build && \
make -f Makefile.gdc
gdmd -op -release -inline -version=BuildVerbose -ofdsss_build build.d util/pathex.d source_bn.d util/str.d build_bn.d util/booltype.d source.d util/fdt.d util/fileex.d util/linetoken.d util/macro.d util/file2.d
./dsss_build/dsss_build -Idsss_build sss/main.d -Tdsss
gdc: unrecognized option `-rdynamic'
ld: unknown flag: --start-group
make: *** [dsss] Error 1
|
Seems a few of those "Posix" linker flags to GDC needs porting... |
|
Back to top |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Thu Nov 16, 2006 2:33 pm Post subject: |
|
|
Patching out the above flags, it seems that "Librarian" is missing a friend:
Code: |
+ /Users/afb/D/dsss-0.3/dsss_build/dsss_build -I/Users/afb/D/dsss-0.3/inst/include/d -LIBPATH=/Users/afb/D/dsss-0.3/inst/lib -LIBPATH=. -g -Idsss_build -LIBPATH=dsss_build sss/main.d -Tdsss
ld: warning -L: directory name (/Users/afb/D/dsss-0.3/inst/lib) does not exist
ld: archive: ./libSDG-sss.a has no table of contents, add one with ranlib(1) (can't load from it)
ld: archive: dsss_build/libSbudutil.a has no table of contents, add one with ranlib(1) (can't load from it)
|
Suggest adding a "PostLibrarian" that would call ranlib on the libfoo.a library ? |
|
Back to top |
|
|
Gregor
Joined: 05 May 2006 Posts: 72 Location: Portland, OR
|
Posted: Fri Nov 17, 2006 12:56 pm Post subject: |
|
|
ranlib doesn't hurt anywhere (that uses ld), so this is now default in latest SVN. |
|
Back to top |
|
|
Gregor
Joined: 05 May 2006 Posts: 72 Location: Portland, OR
|
Posted: Fri Nov 17, 2006 12:56 pm Post subject: |
|
|
Erm, I should also mention:
I also made the other changes necessary for it to work on OS X |
|
Back to top |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Sun Nov 19, 2006 4:55 am Post subject: |
|
|
Testing... |
|
Back to top |
|
|
sylverpyro
Joined: 23 May 2006 Posts: 28
|
Posted: Sat Jul 28, 2007 4:53 pm Post subject: Has anyone built this successfully? |
|
|
So has anyone gotten DSSS to build on OS X? |
|
Back to top |
|
|
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Sat Jul 28, 2007 6:29 pm Post subject: |
|
|
Just build? As in getting "make -f Makefile.gdc.posix" to work? Yeah, latest gdc svn rev and latest dsss svn rev. As in actually using it, sorry, I haven't tried. |
|
Back to top |
|
|
sylverpyro
Joined: 23 May 2006 Posts: 28
|
Posted: Tue Jul 31, 2007 9:42 am Post subject: |
|
|
Confirmed that dsss 0.68 builds on OS X with gdc 0.23 |
|
Back to top |
|
|
|