Cannot build wxd w/ dmd latest stable release

wxD
Liquid D
2007-10-28
2013-05-22
  • Liquid D
    Liquid D
    2007-10-28

    I've tested with wxd 0.10 and 0.11 with wxWidgets 2.6.4 and 2.8.6

    I get no error building wxWidgets with dmc. (SET PATH=c:\dm\bin;%PATH%)

    I've lastest stable releases of DMD & DMC. No bud/build/rebuild/dsss/etc. (Absolutely clean, just decompressed under Windows Vista)

    But when building wxd:

    PATH=c:\dmd\bin;%PATH%
    WXDIR=C:\dmd\tools\wxWidgets-2.6.4
    WXWIDGETS=c:\dmd\tools\wxWidgets-2.6.4
    WXWIN=C:\dmd\tools\wxWidgets-2.6.4

    everything goes ok until:
    cd ..
    cd wx
    make
    Error on line 181: unrecognized target '26'

    I've wxc.lib in wxd root folder. This error message also appears when trying to build any sample provided by wxd. (error is not in the same line, of course)

    When trying to build wxd with wxWidgets 2.8.6 (Changing WXDIR, WXWIDGETS and WXWIN) i get the same error even changing the wxd/makefile file arround line 175 from:

    WX_RELEASE_NODOT = 26
    WX_VERSION = 2.6.4

    to:

    WX_RELEASE_NODOT = 28
    WX_VERSION = 2.8.6

    It still says "unrecognized target '26'" (not 28).

    Any help would be appreciated.

     
    • torhu
      torhu
      2007-10-29

      You need to put this in a file called config.mak, in the wxd root dir:

      WX_VERSION = 2.6.4
      PLATFORM = WXMSW
      ENCODING = ANSI

      I can't quite recall where I got that file from, though.  Maybe it's supposed to be autogenerated, but somehow that didn't work.

      I can't remember if I had to fix anything else to make it build.  I think the DM make build was the only one I got working, the bud and rebuild build stuff doesn't work.

       
    • Thomas Demmer
      Thomas Demmer
      2007-11-05

      It is an error in wxd/wxc/Makefile

      From line 222 on you see
      $(MAKESTUB): wx-release.exe wx-version.exe wx-platform.exe wx-encoding.exe
              +wx-release.exe >$@
              +wx-version.exe -v >>$@
              +wx-platform.exe -v >>$@
              +wx-encoding.exe -v >>$@

      which should really read
      $(MAKESTUB): wx-release.exe wx-version.exe wx-platform.exe wx-encoding.exe
              +wx-release.exe -v >$@
              +wx-version.exe -v >>$@
              +wx-platform.exe -v >>$@
              +wx-encoding.exe -v >>$@

      Ciao
      Tom

       
      • Fixed in CVS now.

         
    • Liquid D
      Liquid D
      2007-11-16

      Hi again, im sorry for not being here since too long but I was busy.

      Thank you guys but after doing what u both told me, i still have some errors:

      C:\dmd\tools\wxd>make
      cd wxc
      make
      Target 'all' is up to date

      cd ..
      cd wx
      make
      dmd -version=wx26 -version=__WXMSW __ -version=ANSI -I.. -O -g -c -ofAccelerator
      .obj Accelerator.d
      Error: multiple source files, but only one .obj name

      --- errorlevel 1

      --- errorlevel 1

      I had an existing config.mak file which dunno why it had the number 26 at the beginning of it. Also, I've replaced that lines in the wxd/wxc/makefile file. I'm sorry for being so toublesome but it still gives me that errors =(

      Thanks,