build with MSVC 2010 having use errors

Hi Robin, everyone else;
I've been having some build issues... been trying to build wxPython so
that I can fix/make a patch for that minor popupmenu bug I reported.
however it er ain't working one iota;
my environment:
MS Windows Vista SP2
MS VC Express 2010 (msvc10)
Python 2.7.1 (compiled with msvc10 from source tarball on python page)
wxwidgets trunk
wxPython trunk
after a few (okay a few dozen) tries I have it compiling and
installing successfully in either release or debug builds... and
running Python and importing wxPython I get this (same error in debug
and release mode except no mention about [xxxxx refs] with release ver
of course):
"D:\Games\Coding Stuff\Python\271\PCbuild\python_d.exe" -c "import
wx;wx.version()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Games\Coding
Stuff\Python\271\lib\site-packages\wx-2.9.2-msw\wx\__init__.py", line
45, in <module>
    from wx._core import *
  File "D:\Games\Coding
Stuff\Python\271\lib\site-packages\wx-2.9.2-msw\wx\_core.py", line 4,
in <module>
    import _core_
ImportError: DLL load failed: The specified module could not be found.
[18408 refs]

I'm building via
"D:\Games\Coding Stuff\Python\271\PCbuild\python_d.exe"
build-wxpython.py --install --debug
and then
D:\Games\Coding Stuff\wxPython>"D:\Games\Coding
Stuff\Python\271\PCbuild\python_d.exe" -u ./setup.py build --debug
install UNICODE=1 BUILD_BASE=build

...
anyone know what I'm doing wrong and or how to fix it?
(let me know if you need more info of course)
thanks;
Nick

Hi Robin, everyone else;
I've been having some build issues... been trying to build wxPython so
that I can fix/make a patch for that minor popupmenu bug I reported.
however it er ain't working one iota;
my environment:
MS Windows Vista SP2
MS VC Express 2010 (msvc10)
Python 2.7.1 (compiled with msvc10 from source tarball on python page)
wxwidgets trunk
wxPython trunk
after a few (okay a few dozen) tries I have it compiling and
installing successfully in either release or debug builds... and
running Python and importing wxPython I get this (same error in debug
and release mode except no mention about [xxxxx refs] with release ver
of course):
"D:\Games\Coding Stuff\Python\271\PCbuild\python_d.exe" -c "import
wx;wx.version()"
Traceback (most recent call last):
   File "<string>", line 1, in<module>
   File "D:\Games\Coding
Stuff\Python\271\lib\site-packages\wx-2.9.2-msw\wx\__init__.py", line
45, in<module>
     from wx._core import *
   File "D:\Games\Coding
Stuff\Python\271\lib\site-packages\wx-2.9.2-msw\wx\_core.py", line 4,
in<module>
     import _core_
ImportError: DLL load failed: The specified module could not be found.
[18408 refs]

Load the _core__d.pyd file into the DependencyWalker tool and see what it thinks is the missing DLL.

···

On 6/2/11 5:17 PM, Nick W wrote:

I'm building via
"D:\Games\Coding Stuff\Python\271\PCbuild\python_d.exe"
build-wxpython.py --install --debug
and then
D:\Games\Coding Stuff\wxPython>"D:\Games\Coding
Stuff\Python\271\PCbuild\python_d.exe" -u ./setup.py build --debug
install UNICODE=1 BUILD_BASE=build

...
anyone know what I'm doing wrong and or how to fix it?
(let me know if you need more info of course)

--
Robin Dunn
Software Craftsman

well now I feel dense what a super easy fix... thanks
(I was operating under the assumption that the install arg to
build-wxpython.py would copy the wxwidgets dlls to the install dir but
I guess not - just had to manually copy and paste that)
thanks again;
Nick

···

On 6/2/11, Robin Dunn <robin@alldunn.com> wrote:

Load the _core__d.pyd file into the DependencyWalker tool and see what
it thinks is the missing DLL.

I thought it would too. Must be a bit of a bug there...

···

On 6/3/11 11:57 PM, Nick W wrote:

On 6/2/11, Robin Dunn<robin@alldunn.com> wrote:

Load the _core__d.pyd file into the DependencyWalker tool and see what
it thinks is the missing DLL.

well now I feel dense what a super easy fix... thanks
(I was operating under the assumption that the install arg to
build-wxpython.py would copy the wxwidgets dlls to the install dir but
I guess not

--
Robin Dunn
Software Craftsman

Well then in that case I've tidied up my edited setup.py and made it
into a patch; see wxTrac has been migrated to GitHub Issues - wxWidgets
hope that will work;
Nick

···

On 6/4/11, Robin Dunn <robin@alldunn.com> wrote:

On 6/3/11 11:57 PM, Nick W wrote:

I was operating under the assumption that the install arg to
build-wxpython.py would copy the wxwidgets dlls to the install dir but
I guess not

I thought it would too. Must be a bit of a bug there...

--
Robin Dunn
Software Craftsman
http://wxPython.org