[erlang-patches] Re: Fixes for building erlang under windows

Davide Marquês <>
Mon Sep 28 12:06:57 CEST 2009


Hi Mazen,
Simply going through the steps in README.win32 doesn't seem to be enough for
configure to pick up the wxWidgets installation/libraries.

These were the steps I took:
- run the wxWidgets-2.8.10 installer;
- edit <wxWidgets dir>/include/wx/msw/setup.h and enable:
- wxUSE_GLCANVAS
- wxUSE_POSTSCRIPT
- wxUSE_GRAPHICS_CONTEXT
- open <wxWidgets dir>/build/msw/wx.dsw (letting VC convert the projects)
- build the "Unicode Release" and "Unicode Debug" configurations
- open <wxWidgets dir>/contrib/build/stc/stc.dsw (letting VC convert the
projects)
- build the "Unicode Release" and "Unicode Debug" configurations
After which the C:\Program Files\wxWidgets-2.8.10\lib\vc_lib folder contais
195MB of .lib goodness (wxbase28d.lib, wxbase28u.lib, wxbase28d_net.lib,
wxbase28u_net.lib, ...).

This is the relevant part of the configure output:

> checking for debug build of WxWidgets... checking for wx-config... no

checking for standard build of WxWidgets... checking for wx-config...
> (cached) no

configure: WARNING:

                wxWidgets must be installed on your system.


>                 Please check that wx-config is in path, the directory

                where wxWidgets libraries are installed (returned by

                'wx-config --libs' or 'wx-config --static --libs' command)

                is in LD_LIBRARY_PATH or equivalent variable and

                wxWidgets version is 2.8.0 or above.

checking GL/gl.h usability... no

checking GL/gl.h presence... yes

configure: WARNING: GL/gl.h: present but cannot be compiled

configure: WARNING: GL/gl.h:     check for missing prerequisite headers?

configure: WARNING: GL/gl.h: see the Autoconf documentation

configure: WARNING: GL/gl.h:     section "Present But Cannot Be Compiled"

configure: WARNING: GL/gl.h: proceeding with the preprocessor's result

configure: WARNING: GL/gl.h: in the future, the compiler will take
> precedence

configure: WARNING:     ## ------------------------------------------ ##

configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##

configure: WARNING:     ## ------------------------------------------ ##

checking for GL/gl.h... yes

checking OpenGL/gl.h usability... no

checking OpenGL/gl.h presence... no

checking for OpenGL/gl.h... no

checking if wxwidgets have opengl support... no

checking for GLintptr... no

checking for GLintptrARB... no

checking for GLchar... no

checking for GLcharARB... no

checking for GLhalfARB... no

checking for GLint64EXT... no

checking GLU Callbacks uses Tiger Style... no

checking for wx/stc/stc.h... no

configure: WARNING: Can not find wx/stc/stc.h

checking if we can link wxwidgets programs... no

configure: WARNING: Can not link wx program are all developer packages
> installed?

configure: creating i686-pc-cygwin/config.status

config.status: creating config.mk

config.status: creating c_src/Makefile


The wx-config didn't exist at this point. As there was a wx-config.in file I
ran configure to create it. But that didn't help much.

Here are some of its outputs:

VC2008: wxWidgets-2.8.10 $ ./wx-config --libs-L/c/Progra~1/wxWidgets-2.8.10/lib
  -lwx_msw_richtext-2.8 -lwx_msw_aui-2.8 -lwx_msw_xrc-2.8 -lwx_msw_qa-2.8
-lwx_msw_html-2.8 -lwx_msw_adv-2.8 -lwx_msw_core-2.8 -lwx_base_xml-2.8
-lwx_base_net-2.8 -lwx_base-2.8

VC2008: wxWidgets-2.8.10 $ ./wx-config --static --libs

  Warning: No config found to match: ./wx-config --static --libs
           in /c/Progra~1/wxWidgets-2.8.10/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


VC2008: wx $ wx-config --unicode --debug=yes  Warning: No config found to
match: /c/Progra~1/wxWidgets-2.8.10/wx-config --unicode --debug=yes
           in /c/Progra~1/wxWidgets-2.8.10/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


The configure fails after this last check:

checking for debug build of WxWidgets... checking for wx-config...
/c/Progra~1/wxWidgets-2.8.10/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode --debug=yes)... no
checking for standard build of WxWidgets... checking for wx-config...
(cached) /
c/Progra~1/wxWidgets-2.8.10/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode --debug=no)... no
configure: WARNING:
                wxWidgets must be installed on your system.

                Please check that wx-config is in path, the directory
                where wxWidgets libraries are installed (returned by
                'wx-config --libs' or 'wx-config --static --libs' command)
                is in LD_LIBRARY_PATH or equivalent variable and
                wxWidgets version is 2.8.0 or above.


I'm obviously clueless. Any tips? :)

Cheers,
:Davide


More information about the erlang-patches mailing list