-
Notifications
You must be signed in to change notification settings - Fork 1
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
Compilation on Linux with code blocks #1
Comments
jpelletier, |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Wow, that's impressive that people are still interested in this
project. I didn't know anyone still had XBC's lying around. Sadly I
won't be able to assist with building on CodeBlocks, nor with anything
else, as I don't have an XBC anymore. I hope you get the assistance
you're looking for.
…-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJY3JuxAAoJELPy0WV4bWVwxEIP/jAOo+aAuRrLbV9nvowjc5Z0
gOkGtkiBzY93KXmrQ4DgMifLpmKhtAJ2SSRsp/JdKa/xmAkyUGygiTQG8vhFoVW3
J/jWAwqJV4Ma1cfVLQcgl2SGTqI5ldIjpbhI98cf5WdcgEjIYFJx6W7hwbFYqarC
qqFXUtT2/M0Vr3BMm8JkBnoQdlaKYSFBltQuuk0e7qhOTwwQDiQnIfSulGbDsVY8
2b5wlAqhNNRcVJfYtMZ+s0CYtpgS4xo0cbBLdmUOVJDSL4XSm7rkhcoryzm0IkJ4
xEw/0nUr3PYnHSf41I4QN/U0CC/90j56mYo5+6bJjpd97u3vCcghovUBVEXkNPds
i43s9VTyrj9szLM1fXj4GYZmujBINrnLIj9ICPOnNWDfgowaqEjFiCYXAsqnR/WL
Q+I+ImkvpP8PKv5YCH98K1l1QkANIcbrDVuLqKEAoQzVQJZJKiTOiXRR4AJvel4Z
kUaLJOW/5RrTUVhtrhONV0LgmAdQ3ZoA5r4WNiQEsh0wdSuYRpxUt9L2sKyK8hkR
V5nJbaGCdRqkk+rSXAg7AZqNNexpyocVLoeAdtPTfVJbiaFlY1TNvFKShKQHmItp
wIA2vGD1TkFZ6ZdkLWIMA4myJRyyqs1UryQt7y6QGcLdnjAtzDuKrk5KX1xoql4G
a9PUOtv4fXIqWOxiP3D2
=Ocqg
-----END PGP SIGNATURE-----
|
Le 2017-03-28 à 19:19, topazx2 a écrit :
jpelletier,
Are you still active on here? I'm looking for a little help getting
the XBC-Firmware to compile. I'm using cygwin64 on windows 10. Any
help at all would be appreciated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAwGKGJjDBhIF8kEQpg-KviZ3uoBOriXks5rqZWbgaJpZM4D6XLY>.
First, you should have installed the CD containing the Xport Software
Distribution.
To verify your installation;
once installed, you start the cygwin console and change the directory to
examples/helloworld_c
type 'make' and see if it works.
Let me know if it works.
JP
|
jpelletier,
I resorted back to an old WinXP laptop and am now able to compile everything. Not sure why the Win10 Cygwin doesn't work, I think it has something to do with linking the shell to the xport directory.
Anyway, I am in business with the old laptop.
Now I'm in need of some sample code that shows the correct syntax for playing the .wav files.
Jeremy, if you have any old xbc code that uses your custom firmware that you care to share, I'd be very interested.
…Sent from my iPad
On Apr 1, 2017, at 2:34 AM, jpelletier ***@***.***> wrote:
Le 2017-03-28 à 19:19, topazx2 a écrit :
>
> jpelletier,
> Are you still active on here? I'm looking for a little help getting
> the XBC-Firmware to compile. I'm using cygwin64 on windows 10. Any
> help at all would be appreciated.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#1 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAwGKGJjDBhIF8kEQpg-KviZ3uoBOriXks5rqZWbgaJpZM4D6XLY>.
>
First, you should have installed the CD containing the Xport Software
Distribution.
To verify your installation;
once installed, you start the cygwin console and change the directory to
examples/helloworld_c
type 'make' and see if it works.
Let me know if it works.
JP
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
topazx2:
Now I'm in need of some sample code that shows the correct syntax
for playing the .wav files. Jeremy, if you have any old xbc code
that uses your custom firmware that you care to share, I'd be very
interested.
Here's what I recall:
1. Use src/waveutil to convert the .wav file to a .inl file.
2. Place the .inl file in libicxbc/ .
3. Add a #define AUDIO_ clause to ICRobot.h, like on line 26.
4. You might have to mess with the flash memory constants if you're
inserting a large amount of audio data, see line 44 of ICRobot.h. Off
the top of my head, I think the only thing you would need to do is
decrease MAX_FLASH_SLOT, but I can't remember for sure. You'll be
able to tell this is needed by loading a new program onto the XBC,
rebooting, seeing if the system boots without crashing, and repeating.
If IC eventually tells you the slots are full, then MAX_FLASH_SLOT is
fine; if the XBC crashes on booting IC, then MAX_FLASH_SLOT needs to
be decreased (and of course you'll need to reflash the firmware to fix
the crashing).
5. Add an #ifdef AUDIO_ clause to XBCRobot.h , like on line 20.
6. Add an #ifdef AUDIO_ clause to CallML 1540 and CallML 1544 in
XBCRobot.cxx. The optional extra args (used in INTRO, MUNCH, and
SIREN) are: looping enabled, 32KHz enabled (default of false is 8
KHz), number of loops (default of -1 is loop forever, only has any
effect if looping is enabled).
6. Use CallML's 1540, 1541, and 1542 from your IC program to play a
sound, stop a sound, and check whether a sound is playing on channel
A. CallML's 1544, 1545, and 1546 do the equivalent for channel B.
You can use both channels simultaneously and independently.
Hope this helps!
…-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJY7qoaAAoJELPy0WV4bWVwGrMP/0mUQxVQaRgWOnkO3IPsUIuW
5xsWwoZx8K2DjFL3TCYe5Pw3N2ez0cF0bCQK3jL8MrYJQdSTz75o3jLHh0CF0oZ0
mkbFu887tb8YTB7VPOy2G4vaeO1majoAlnqimuKYfbnCc4caHobG2RbCnjE3COJq
pXjfrqok3pYGDdYc/B7QM9uBkk75ZopZ0kX+BCEncJDLbNouoa8Jqagp4b9Gy+HK
I/KPvVIRBuVTgdY9LASc9WFoKI4aehcWxTrY7x7HTqILTIG2M7sII9HKxDACTU+G
etNgTx78/jog0HKJTtWNeI8MglToLewpFAQoSYxx4fGXIZRKvR2vptQnQd4jM92V
Eyd6rqRjYSUYkbJ/AJ0TSxHT1TeTVwqtzvtRqk4M73XjGHLhVCWGqQYtm0Bf6LVh
eUS9JxY3wGSpaAZnawe+rICeUJUY+lx35XtLzDX9TLpKw3Fb2UYhyyryspqtEAm3
OCg5Kscj49a11YPI4uvI2WI/q4T6dwyNuK+EIsOOtHSljDirZCfT4dMNP5vLxLk1
xvinrbi/yAqUcSWwDTUNbov66volmPF/egi22wdDkmJxI27mCBBLOn1Nkk1kJb47
5Wutfjbh0vvU/l02JjKXftorDBWFyAZeiMLjcuaxqge/Hm+9GGDLkvtPM8aMxX99
N9A/DYjsr45BptN4JMGt
=UR+L
-----END PGP SIGNATURE-----
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've compiled successfully this version of xpcomm with Codeblocks on Linux:
some files needed "#include <string.h>" and/or "#include <stdio.h>",
moved linux/* into ..
added library 'ncurses' in the linker options,
compiled successfully,
made 'xpcomm -startup',
after that xpcomm worked fine!
Thanks!
The text was updated successfully, but these errors were encountered: