-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build pxt-scrollbit against v3.1.17 / v6.4.13 #3494
Comments
Your library is using C++ so you need to make it compatible with the micro:bit v1 stack (nrf51, microbit-dal) and v2 stack (nrf52, codal) stack. In this case, the font class has moved and is now at https://github.com/lancaster-university/codal-core/blob/master/inc/types/BitmapFont.h -- in particular https://github.com/lancaster-university/codal-core/blob/9643ee76d2af1eb501f70d5d8cbc405ab7a42291/inc/types/BitmapFont.h#L96 In C++, use this preprocessor test to determine if you are building against CODAL (v2) or not (v1)
|
Thank you- this stack is so deep and dizzying that I didn't get close to finding where I was going wrong. Looks like ScrollBit is now working! |
A sandwich is only as good as how many layers its got squiched together. |
Having just thrown together a burger with more fillings than a Subway counter, I tend to agree. Though it doesn't lend itself well to peeling apart the layers of the sandwich and trying to figure out what's what 😆 With |
The branch that will go live is stable3.0 https://github.com/microsoft/pxt-microbit/commits/stable3.0 The best is to look into the package.json in that branch to figure out precisely the branch of pxt-common-packages and pxt-core: https://github.com/microsoft/pxt-microbit/blob/stable3.0/package.json#L47
|
we are integrating the relevant fixes from pxt-microbit#master (v3.1) to v3.0 |
I'm going to close this one since it seems that you've been unlocked. |
Attempting to do a cloud build of
pxt-scrollbit
, I was running into an obtuse error:Scrolling up the backlog suggests this is probably because
font.cpp
is failing to compile. This file has not changed since the micro:bit V1.x, but the underlying DAL/Codal/PXT appears to have removed or omittedMicroBitFont
.I can't see any evidence that I was doing anything wrong by using
MicroBitFont
in the past, so I guess this should probably work?Or- is there an alternative approach here?
Finally- is there any specific version of
pxt-core
andpxt-microbit
I should be building against, currently? I assumed the latest for targeting V2.The text was updated successfully, but these errors were encountered: