Building MP under windows

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Building MP under windows

Post by pfalcon » Fri May 02, 2014 3:01 pm

> rather than read between the lines

Forgot to mention - yes, that was the culprit.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

stijn
Posts: 337
Joined: Thu Apr 24, 2014 9:13 am

Re: Building MP under windows

Post by stijn » Fri May 02, 2014 3:46 pm

pfalcon wrote:But I still don't get how you got from backslashes to NLR failure
Me neither. On unix it 'properly' segfaults.

igorgatis
Posts: 21
Joined: Thu Nov 19, 2015 1:10 pm

Re: Building MP under windows

Post by igorgatis » Thu Nov 19, 2015 9:41 pm

So, the recommendation is to turnoff libffi on windows?

I believe I do have libffi installed on my cygwin environment. Still, I'm getting same error messages.

What's the main consequence of turning libffi off?

User avatar
Roberthh
Posts: 1516
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Building MP under windows

Post by Roberthh » Fri Nov 20, 2015 5:58 am

It builds under native Windows. I'm tried it with Windows 7/MinGW32. But I'm not using it a lot. Just to have it around.

stijn
Posts: 337
Joined: Thu Apr 24, 2014 9:13 am

Re: Building MP under windows

Post by stijn » Fri Nov 20, 2015 8:09 am

igorgatis wrote:So, the recommendation is to turnoff libffi on windows?

I believe I do have libffi installed on my cygwin environment. Still, I'm getting same error messages.
What error messages exactly? The ones from the first post in this thread? And what compiler ae you using to build uPy?

igorgatis
Posts: 21
Joined: Thu Nov 19, 2015 1:10 pm

Re: Building MP under windows

Post by igorgatis » Fri Nov 20, 2015 5:04 pm

Yes, same error messages. I'm using cygwin's gcc 5.2.0.

stijn
Posts: 337
Joined: Thu Apr 24, 2014 9:13 am

Re: Building MP under windows

Post by stijn » Fri Nov 20, 2015 8:00 pm

Hmm maybe I should update my cygwin installation then (I thought the setup.exe did it automatically?), mine is at version 4.9.3. In any case I'm having the same problem, x86 and x64 builds, yet according to setup.exe everything ffi-related is installed so I'm starting to think the cygwin ffi thing is just broken?

To answer your question: without ffi there's no uPy ffi module and parts of micropython-lib won't work as it uses ffi.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Building MP under windows

Post by pfalcon » Sat Nov 21, 2015 1:03 am

But micropython-lib doesn't have support for cygwin libc loading anyway (but it would be pretty easy to add, definitely much easier than for native Windows API).
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Post Reply