搜索
bottom↓
回复: 13

【开源学习】Sifteo Cubes 之如何编译(LINUX)

[复制链接]

出0入0汤圆

发表于 2017-7-13 07:29:30 | 显示全部楼层 |阅读模式
本帖最后由 Zigbee2012 于 2017-7-13 07:33 编辑

1.编译整个工程
        Step1: cd /home/aniu/01-workplace/thundercracker-v1.10/
        Step2:make clean
        Step3:make all  #默认会编译firmware(master cube) emulator launcher docs/doxygen等等
详情请看,顶层Makefile

2.如何编译单个目标
        这儿以STM32程序为例:
        Step1: cd /home/aniu/01-workplace/thundercracker-v1.10/firmware/master
        Step2:make clean
        Step3: make BOOTLOADABLE=1   # 必须设置环境变量BOOTLOADABLE=1使能bootloader
        其他类似!

3.如何生成USB下载的stf文件
        Step1:编译所有工程,在/home/aniu/01-workplace/thundercracker-v1.10/tools/fwdeploy目录下会生成工具fwdeploy
        Step2:cd /home/aniu/01-workplace/thundercracker-v1.10/tools/fwdeploy
        Step3: ./fwdeploy master_ v1.1.0.sft --fw-version v1.1.0 --fw 2 ../../firmware/master/master-stm32.bin ...
                master_ v1.1.0.sft-->输出文件名
                --fw-version v1.1.0-->软件版本
                --fw 2 ../../firmware/master/master-stm32.bin—>硬件版本号,及BIN文件路径
        Useage: fwdeploy <out.sft> --fw-version <version> --fw <hwrev fw.bin> ...
        Step4:更新固件 参考《3.USB升级管理(windows).pdf》


最后还是吹个牛:
整个sifteo cubes工程熟练掌握80%,月薪肯定上万;
没上万,私信我 ,当然有这个能力的都不屑于这个工资了


所有资料:https://www.amobbs.com/forum.php ... p;extra=#pid9850171

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

出0入0汤圆

发表于 2017-7-13 10:17:05 | 显示全部楼层
这个又是什么神器

出0入0汤圆

 楼主| 发表于 2017-7-14 00:36:53 | 显示全部楼层
huangqi412 发表于 2017-7-13 10:17
这个又是什么神器

用能玩 用能开发产品
看这个视频吧:
https://v.qq.com/x/page/p0507haig1n.html

出0入0汤圆

发表于 2017-7-16 12:41:06 | 显示全部楼层
你们都有编译成功吗?下面是我这里的错误提示,环境是ubuntu12
In file included from ../../sdk/include/sifteo/abi/syscall.h:29:0,
                 from ../../sdk/include/sifteo/abi.h:42,
                 from ../../firmware/master/common/syscall_runtime.cpp:31:
../../firmware/master/common/syscall_runtime.cpp: In function 'uint32_t _SYS_version()':
../../sdk/include/sifteo/abi/types.h:181:37: error: lvalue required as unary '&' operand
#define _SYS_OS_VERSION_MASK        0xffffff
                                     ^
../../firmware/master/common/syscall_runtime.cpp:275:76: note: in expansion of macro '_SYS_OS_VERSION_MASK'
     return (SysInfo::HardwareRev << _SYS_HW_VERSION_SHIFT) | (OS_VERSION & _SYS_OS_VERSION_MASK);
                                                                            ^
../../firmware/master/common/syscall_runtime.cpp:276:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1plus: all warnings being treated as errors
make[2]: *** [../../firmware/master/common/syscall_runtime.stm32.o] 错误 1

出0入0汤圆

 楼主| 发表于 2017-7-16 17:06:34 | 显示全部楼层
hyhezhen 发表于 2017-7-16 12:41
你们都有编译成功吗?下面是我这里的错误提示,环境是ubuntu12
In file included from ../../sdk/include/si ...

你是直接解压的ZIP吗?

出0入0汤圆

发表于 2017-7-16 23:05:57 | 显示全部楼层
对,解压ZIP再编译出现上面的错误。

后来用git,也没有成功。信息如下:
/work/app/thundercracker/thundercracker/docs/doxygen/src/gfx.md:141: warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
/work/app/thundercracker/thundercracker/docs/doxygen/src/gfx.md:53: warning: documented function `Mahjongg and most other tiny objects people love to pick up and touch and play with Our displays are with a color depth of bits per pixel This format is often called **RGB565 since it uses bits of information each to store the Red and Blue channels of each and bits for we always recommend that you start with lossless true color images The asset tools will automatically perform various kinds of lossless and optionally lossy compression on these and any existing lossy compression will simply hinder these compression passes Your images won t be looking their and they will take up more space!Yuck!In here are some tips for preparing graphics to use with the Sifteo or images that have been previously stored as JPEG Always start with images in a lossless format like PNG or PSD *__Never dither__ your images!Dithered images are harder to so they will take up more space and they won t look as good *Keep your graphics __big__ Each cube has a small and you shouldn t clutter it with too many things at once *Keep your graphics __vibrant__ The gamma curve of the display may change as the viewing angle changes during so be sure to use enough visual contrast *Use __animation and interactivity__ whenever you can More interactivity equals more and Sifteo Cubes are great at fluid animation *Use stir s __proof output__ or __siftulator__ if you want to see exactly how your images will look in game Unlike most game the display is not directly attached to the hardware your application runs on For this Sifteo cubes use a *distributed rendering display and storage Cubes have two types of local but very slow to rewrite It contains uncompressed bit pixel arranged in pixel tiles *__Video RAM__ It is typically no pixel data It orchestrates the process of drawing a scene or part of a scene to the display Applications keep a shadow copy of this memory in a Sifteo::VideoBuffer object The system continuously synchronizes each cube s Video RAM with any correspondingly attached Sifteo::VideoBuffer This distributed architecture implies that many rendering operations are inherently **asynchronous **The system synchronizes Video RAM with your Sifteo::VideoBuffer' was not declared or defined.
/work/app/thundercracker/thundercracker/sdk/include/sifteo/asset.h:36: warning: unable to resolve reference to `asset_workflow' for \ref command
/work/app/thundercracker/thundercracker/sdk/include/sifteo/macros.h:130: warning: unable to resolve reference to `device_mgmt' for \ref command
/work/app/thundercracker/thundercracker/sdk/include/sifteo/macros.h:259: warning: unable to resolve reference to `scripting' for \ref command
/work/app/thundercracker/thundercracker/sdk/include/sifteo/asset/audio.h:44: warning: unable to resolve reference to `asset_workflow' for \ref command
/work/app/thundercracker/thundercracker/sdk/include/sifteo/asset/audio.h:106: warning: unable to resolve reference to `asset_workflow' for \ref command
make[1]: *** [doxygen.log] 错误 1
make[1]:正在离开目录 `/work/app/thundercracker/thundercracker/docs/doxygen'
make: *** [docs/doxygen] 错误 2

出0入0汤圆

 楼主| 发表于 2017-7-17 09:48:38 | 显示全部楼层
hyhezhen 发表于 2017-7-16 23:05
对,解压ZIP再编译出现上面的错误。

后来用git,也没有成功。信息如下:

git clone 下载源码

或者你等等  我今天回去上传 安装好的UNBUNTU环境(虚拟机内含源码)

出0入0汤圆

发表于 2017-7-17 16:20:40 | 显示全部楼层
有用GIT,  下载很久,数据大约有1G吧。 严格按照PDF来做的
再进去子目录执行操作

出0入0汤圆

 楼主| 发表于 2017-7-20 11:35:07 | 显示全部楼层
hyhezhen 发表于 2017-7-17 16:20
有用GIT,  下载很久,数据大约有1G吧。 严格按照PDF来做的
再进去子目录执行操作 ...

虚拟机百度云链接:http://pan.baidu.com/s/1slwMKiT    源码都在里面 VMWARE打开即可

出0入0汤圆

发表于 2017-7-20 11:44:58 | 显示全部楼层
15G 啊 ,  其实现在虚拟机用 virtual box  很好。不运行的话就不占资源。
有空再试下吧

出0入0汤圆

 楼主| 发表于 2017-7-20 11:46:07 | 显示全部楼层
hyhezhen 发表于 2017-7-20 11:44
15G 啊 ,  其实现在虚拟机用 virtual box  很好。不运行的话就不占资源。
有空再试下吧 ...

有个麻花群 有兴趣可以加下

出0入0汤圆

发表于 2017-7-21 20:41:29 | 显示全部楼层
现在的下载速度只有3K,保存到自己的网盘也一样。 百度有限制吗

出0入0汤圆

 楼主| 发表于 2017-7-22 11:58:46 | 显示全部楼层
hyhezhen 发表于 2017-7-21 20:41
现在的下载速度只有3K,保存到自己的网盘也一样。 百度有限制吗

估计是哈。。。其他的下载 都没说这个问题

出0入0汤圆

发表于 2017-7-23 16:22:55 | 显示全部楼层
登录网盘,下载的前几秒可以达到几十K,可4秒后变3K. 按这样的速度,1个月也下不完
百度逼我升级VIP吗
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-4-19 01:36

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表