wxPython install for ARM system

Hi All,

I’m new on wxPython, and I would like to build and install wxPython on WinRT (ARM) systems.

1- I’ve downloaded Python26 sources and compiled it for ARM system (this one is working find under WINRT system)

2- I’ve downloaded wxPython-src-3.0.0.0

3- I’ve downloaded wxWidgets-3.0.0

4- I’m using VS2012 (x86_arm) for building

5- I’ve modified and build wxWidgets for ARM using a bat file under VS2012 (x86_arm) with the following parameters: “nmake -f makefile.vc BUILD=release SHARED=1 COMPILER_VERSION=110 OFFICIAL_BUILD=1 TARGET_CPU=ARM”

Everything has been compiled w/o problem (see file attached 2012xARM_Release.txt), and then the next step is:

To “set WXWIN=C:\wxWidgets-src-3.0.0” and

To Build “wxPython” in order (if I understood well) to copy the necessary files for Python and to build and link the followings files “helpers.cpp”, “_core_wrap.cpp” and to link the “core” file with the command “python setup.py install” under the directory C:\wxPython-3.0.0\wxPython (see file attached).

I got the followings errors and I’m stuck on these, because I don’t know how to solve them when building the helpers.cpp file:

src/helpers.cpp(1496) : error C3861: ‘PyLong_FromLongLong’: identifier not found

src/helpers.cpp(1518) : error C3861: ‘PyLong_AsLongLong’: identifier not found

src/helpers.cpp(1684) : error C3861: ‘PyLong_FromLongLong’: identifier not found

src/helpers.cpp(1707) : error C3861: ‘PyLong_AsLongLong’: identifier not found

src/helpers.cpp(2187) : error C3861: ‘PyUnicode_FromEncodedObject’: identifier not found

src/helpers.cpp(2191) : error C3861: ‘PyUnicode_GET_SIZE’: identifier not found

src/helpers.cpp(2193) : error C2065: ‘PyUnicodeObject’ : undeclared identifier

src/helpers.cpp(2193) : error C2059: syntax error : ‘)’

src/helpers.cpp(2193) : error C3861: ‘PyUnicode_AsWideChar’: identifier not found

src/helpers.cpp(2262) : error C3861: ‘PyUnicode_FromEncodedObject’: identifier not found

src/helpers.cpp(2269) : error C3861: ‘PyObject_Unicode’: identifier not found

src/helpers.cpp(2275) : error C3861: ‘PyUnicode_GET_SIZE’: identifier not found

src/helpers.cpp(2277) : error C2065: ‘PyUnicodeObject’ : undeclared identifier

src/helpers.cpp(2277) : error C2059: syntax error : ‘)’

src/helpers.cpp(2277) : error C3861: ‘PyUnicode_AsWideChar’: identifier not found

src/helpers.cpp(2352) : error C3861: ‘PyUnicode_FromWideChar’: identifier not found

src/helpers.cpp(2374) : warning C4996: ‘strncpy’: This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

C:\Program Files\Microsoft Visual Studio 11.0\VC\INCLUDE\string.h(191) : see declaration of ‘strncpy’

src/helpers.cpp(3227) : error C3861: ‘PyUnicode_FromWideChar’: identifier not found

Does anybody can help me and tell me what’s wrong on it ?

2012xARM_Release.txt (507 KB)

wxPython_Install.txt (72.9 KB)

  I'm new on wxPython, and I would like to build and install wxPython on
WinRT (ARM) systems.

this is for the Windows "lite" tablet, yes? cool!

  5- I've modified and build wxWidgets for ARM using a bat file under
VS2012 (x86_arm) with the following parameters: "nmake -f makefile.vcBUILD=release SHARED=1 COMPILER_VERSION=110 OFFICIAL_BUILD=1 TARGET_CPU=ARM"

   To Build "wxPython" in order (if I understood well) to copy the
necessary files for Python and to build and link the followings files
"helpers.cpp", "_core_wrap.cpp" and to link the "_core_" file with the
command "python setup.py install" under the directory
C:\wxPython-3.0.0\wxPython (see file attached).
  I got the followings errors and I'm stuck on these, because I don't know
how to solve them when building the helpers.cpp file:

src/helpers.cpp(1496) : error C3861: 'PyLong_FromLongLong': identifier not
found

....

These are all standard stuff from teh Python C interpreter lib. So you must
be missing teh python headers: python.h.

That _should_ get picked up by distutils, which is what is tryin gto do the
build when you run the setup.py

So:
- look earlier in the error messages to see if it flags that it can't find
a header.
- look at the compiler command that it's trying to run -- that should tell
you where it's looking for headers
- look and see if Python.h is there -- all the python headers should be
somewhere like:
    c:\python26\include

Maybe that will give you the hint you need....

By the way, why py2.6, rather than 2.7??

-Chris

···

On Fri, Feb 21, 2014 at 6:02 AM, <gtoubol@yahoo.fr> wrote:

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

gtoubol@yahoo.fr wrote:

  I'm new on wxPython, and I would like to build and install wxPython
on WinRT (ARM) systems.
  1- I've downloaded Python26 sources and compiled it for ARM system
(this one is working find under WINRT system)

Have you actually seen this work, with your own eyes? It was my
understanding that it was simply impossible to run Win32 API
applications under WinRT unless you had a magic blessing from Microsoft
to escape the sandbox.

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Thks Chris for your answer,

Just answering to your question, why Python26 ?, because I have compiled Python26 for WinRT and it’s working fine. The next step will be to switch to Python27 just after compiling wxPython for WinRT because I need it for Winrt dev (tablets).

Regarding my problem, I don’t understand, why I got this error “src/helpers.cpp(1496) : error C3861: ‘PyLong_FromLongLong’: identifier not found” when building helpers.cpp file ?

Is it coming from the build of wxWidgets files ? or somewhere else in the install ?

···

Le vendredi 21 février 2014 17:54:56 UTC+1, Chris Barker a écrit :

On Fri, Feb 21, 2014 at 6:02 AM, gto...@yahoo.fr wrote:

I’m new on wxPython, and I would like to build and install wxPython on WinRT (ARM) systems.

this is for the Windows “lite” tablet, yes? cool!

5- I’ve modified and build wxWidgets for ARM using a bat file under VS2012 (x86_arm) with the following parameters: “nmake -f makefile.vc BUILD=release SHARED=1 COMPILER_VERSION=110 OFFICIAL_BUILD=1 TARGET_CPU=ARM”

To Build “wxPython” in order (if I understood well) to copy the necessary files for Python and to build and link the followings files “helpers.cpp”, “_core_wrap.cpp” and to link the “core” file with the command “python setup.py install” under the directory C:\wxPython-3.0.0\wxPython (see file attached).

I got the followings errors and I’m stuck on these, because I don’t know how to solve them when building the helpers.cpp file:

src/helpers.cpp(1496) : error C3861: ‘PyLong_FromLongLong’: identifier not found

These are all standard stuff from teh Python C interpreter lib. So you must be missing teh python headers: python.h.

That should get picked up by distutils, which is what is tryin gto do the build when you run the setup.py

So:

  • look earlier in the error messages to see if it flags that it can’t find a header.
  • look at the compiler command that it’s trying to run – that should tell you where it’s looking for headers
  • look and see if Python.h is there – all the python headers should be somewhere like:

c:\python26\include

Maybe that will give you the hint you need…

By the way, why py2.6, rather than 2.7??

-Chris

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax

Seattle, WA 98115 (206) 526-6317 main reception

Chris....@noaa.gov

Hi Tim,

Yes, it works because I ran Python on WinRT. I didn’t compiled all the Python modules (of course) but basically everything works fine. Of course I didn’t compiled pywin32, but for what I want to do, it’s fine.

Do you know someone who compiled wxPython for ARM ?

···

Le vendredi 21 février 2014 19:18:03 UTC+1, Tim Roberts a écrit :

gto...@yahoo.fr wrote:

I’m new on wxPython, and I would like to build and install wxPython

on WinRT (ARM) systems.

1- I’ve downloaded Python26 sources and compiled it for ARM system

(this one is working find under WINRT system)

Have you actually seen this work, with your own eyes? It was my

understanding that it was simply impossible to run Win32 API

applications under WinRT unless you had a magic blessing from Microsoft

to escape the sandbox.


Tim Roberts, ti...@probo.com

Providenza & Boekelheide, Inc.

gtoubol@yahoo.fr wrote:

Hi Tim,

  Yes, it works because I ran Python on WinRT. I didn't compiled all
the Python modules (of course) but basically everything works fine. Of
course I didn't compiled pywin32, but for what I want to do, it's fine.

I would love to see a screen shot of the interpreter in action.

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

You do know that you can’t put API apps in the Windows Store, right?
That file is part of wxPython. The errors here mean that Python
does not believe your processor supports “long long” (the symbol
HAVE_LONG_LONG is not defined), and that you are not using Unicode
(Py_USING_UNICODE is not defined). wxPython requires both of those
things.
You need to go back and check how you built Python. You need to
include Unicode support, and it needs to support “long long”.

···

wrote:

gtoubol@yahoo.fr

      The next step will be to switch to Python27 just after

compiling wxPython for WinRT because I need it for Winrt dev
(tablets).

      Regarding my problem, I don't understand, why I got this

error " src/helpers.cpp(1496)
: error C3861: ‘PyLong_FromLongLong’: identifier not found"
when building helpers.cpp file ?

          Is it coming from the build of

wxWidgets files ? or somewhere else in the install ?

-- Tim Roberts, Providenza & Boekelheide, Inc.

timr@probo.com

Getting OT, but…

···

gtoubol@yahoo.fr wrote:

You do know that you can’t put API apps in the Windows Store, right?

Has MS locked down these tablets like iOS? i.e there you HAVE to install stuff from the Oficial store?

I was really disappointed when I found out that not only are =regular users locked out of installing anything custom on iOS devices, but you can’t even develop for them without buying a developers license form Apple – so unnecessary!

oh well,

-Chris

      Regarding my problem, I don't understand, why I got this

error " src/helpers.cpp(1496)
: error C3861: ‘PyLong_FromLongLong’: identifier not found"
when building helpers.cpp file ?

          Is it coming from the build of

wxWidgets files ? or somewhere else in the install ?

That file is part of wxPython.  The errors here mean that Python

does not believe your processor supports “long long” (the symbol
HAVE_LONG_LONG is not defined), and that you are not using Unicode
(Py_USING_UNICODE is not defined). wxPython requires both of those
things.

You need to go back and check how you built Python.  You need to

include Unicode support, and it needs to support “long long”.

-- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax

Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Yes. WinRT systems can only install apps from the Windows Store,
and the Windows Store will only host apps based on the WinRT runtime
(with very specific exceptions: Microsoft Office and the third-party
web browsers).
If you have a regular (non-RT) Windows 8 tablet, you can install
apps from the Windows Store (which still must be Windows Store
apps), or normal desktop apps.
It’s not such a bad strategy to have a Store with tightly controlled
apps. Apple has proven the workability of that. Where Microsoft
made their huge mistake was blurring the lines so much. They tried
to make Windows 8 work the same on phones, tablets, and desktops,
but those environments need different paradigms. If they had made
two different SKUs, just like iOS and MacOS Apple (and just like
Android and Linux), Windows 8 could have been a best-seller.
Microsoft also requires a developer’s license in order to develop
store apps, but the license is free (for now).

···

Chris Barker wrote:

Getting OT, but…

On Fri, Feb 21, 2014 at 11:21 AM, Tim Roberts timr@probo.com wrote:

gtoubol@yahoo.fr
wrote:

            You do know that you can't put API apps in the Windows

Store, right?

          Has MS locked down these tablets like iOS? i.e

there you HAVE to install stuff from the Oficial store?

          I was really disappointed when I found out

that not only are =regular users locked out
of installing anything custom on iOS devices, but you
can’t even develop for them without buying a developers
license form Apple – so unnecessary!

-- Tim Roberts, Providenza & Boekelheide, Inc.

timr@probo.com