导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    添加应用错误

    编译和烧写问题专区
    3
    4
    1390
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • M
      software LV 3 最后由 whycan 编辑

      $ repo init -u ssh://XXXXX@sdk.allwinnertech.com/git_repo/V85X_TINA/manifest.git -b master -m tina-v853.xml
      $ repo sync
      $ repo start product-ipc-v853-tina-stable-v1.0 --all
      下载代码编译烧入都OK。

      按照 https://v853.docs.aw-ol.com/soft/soft_start/ 描述的步骤增加helloworld。
      make menuconfig的时候 没有看到 helloworld 模块。
      参考对比allwin目录下的其他模块,我稍微修改了下 helloworld目录下的makefile。

      include $(TOPDIR)/rules.mk
      include $(INCLUDE_DIR)/package.mk (这个是网页上的写法)
      =====>
      include $(TOPDIR)/rules.mk
      include $(BUILD_DIR)/package.mk (这个是参考 allwin目录下其他模块的写法)

      然后在make menuconfig的时候 可以看到 helloworld 模块。选上helloworld,保存。
      编译的时候提示错误:

      make[3]: Entering directory '/data/xuepy/tinalinux/tina-v853/package/myapp/helloworld'
      Makefile:30: *** missing separator.  Stop.
      make[3]: Leaving directory '/data/xuepy/tinalinux/tina-v853/package/myapp/helloworld'
      make[2]: *** [package/Makefile:193: package/myapp/helloworld/compile] Error 2
      make[2]: Leaving directory '/data/xuepy/tinalinux/tina-v853'
      make[1]: *** [package/Makefile:189: /data/xuepy/tinalinux/tina-v853/out/v853-vision/staging_dir/target/stamp/.package_compile] Error 2
      make[1]: Leaving directory '/data/xuepy/tinalinux/tina-v853'
      make: *** [/data/xuepy/tinalinux/tina-v853/build/toplevel.mk:306:world] 错误 2
      [2]+  已完成               $T/tools/build/buildserver --path $T 2> /dev/null 1>&2
      
      #### make failed to build some targets (49 seconds) ####
      
      WhycanService whycan 2 条回复 最后回复 回复 引用 分享 0
      • WhycanService
        WhycanService LV 8 @ms_guest 最后由 编辑

        @ms_guest makefile直接复制会有问题,可以自己手敲看看

        1 条回复 最后回复 回复 引用 分享 0
        • whycan
          whycan晕哥 LV 9 @ms_guest 最后由 编辑

          @ms_guest

              $(CC) $(LDFLAGS) main.o -o helloworld
          
          

          前面不是四个空格,是一个TAB

          M 1 条回复 最后回复 回复 引用 分享 0
          • M
            software LV 3 @whycan 最后由 whycan 编辑

            此回复已被删除!
            1 条回复 最后回复 回复 引用 分享 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策