天嵌 ARM开发社区

 找回密码
 注册
查看: 8688|回复: 7

tmake error: Template file tmake.conf not found 错误怎么解决?

[复制链接]
changxy 发表于 2011-9-7 11:35:36 | 显示全部楼层 |阅读模式
按照实验指导书来的。setX86_ENV 和setARM——ENV都执行了 但是还有tmake error: Template file tmake.conf not found这个错误 我把tamke和progen 都cp到first的目录下了。麻烦告知怎么解决
TQ_guoxixiao 发表于 2011-12-22 11:45:28 | 显示全部楼层
tmake.conf not found
我想这个提示是没有找到keying的tmake.conf,如果你cp了,那可能是文件损坏。
重新cp 这个文件了
回复

使用道具 举报

haijun662832 发表于 2012-5-18 04:32:52 | 显示全部楼层
我按照 楼上的方法 可能是 复制的时候文件损坏了 于是 执行:
[root@localhost first]# /opt/EmbedSky/Qte/x86-qtopia-2.2.0/tmake/bin/tmake
Usage:
    tmake [options] project-files
Options:
    -e expr    Evaluate expression, ignore template file
    -nodepend  Don't generate dependency information
    -o file    Write output to file
    -t file    Specify a template file
    -unix      Create output for Unix (auto detects)
    -v         Verbose/debug mode
    -win32     Create output for Win32 (auto detects)
变成以上这样子了
[root@localhost first]# ls
first.cpp  first.pro   first.ui  main.cpp~  moc_first.cpp  ui2cpp~
first.h    first.pro~  main.cpp  Makefile   ui2cpp
[root@localhost first]# gedit Makefile
[root@localhost first]# vim Makefile
虽然有Makefile文件生成 但是打开后里面是空的  不知为什么
回复

使用道具 举报

haijun662832 发表于 2012-5-18 10:25:52 | 显示全部楼层
刚睡了一觉  呵呵  现在继续看上面的问题 发现上面的各种问题 都是没有设置 环境变量 执行一下 环境变量脚本就 ok了
[root@localhost Qte]# source setX86_QpeEnv
然后在重新执行
[root@localhost first]# tmake -o Makefile first.pro
[root@localhost first]# ls    查看一下有Makefile文件生成
first.cpp  first.pro   first.ui  main.cpp~  moc_first.cpp  ui2cpp~
first.h    first.pro~  main.cpp  Makefile   ui2cpp
[root@localhost first]# gedit Makefile  这下打开里面的内容就OK了:lol
回复

使用道具 举报

福大牛二爷 发表于 2013-6-19 10:39:25 | 显示全部楼层
好了   解决了 哈哈 我也是这个问题 ,看来真的要细节上细心啊~~~~
回复

使用道具 举报

hegery 发表于 2013-7-22 22:49:20 | 显示全部楼层
haijun662832 发表于 2012-5-18 10:25
刚睡了一觉  呵呵  现在继续看上面的问题 发现上面的各种问题 都是没有设置 环境变量 执行一下 环境变量脚本 ...

做QT24小时特别版时候 #progen;progen :command not found,我把  在/opt/EmbedSky/Qte/x86-qtopia-2.2.0/tmake/bin目录中找到“progen ”,然后复制到根目录的bin文件下,然后progen没问题了然后#tmake -o Makefile first.pro 显示tmake:command not found我又把tmake考进去,错误变成了tmake error: template file tmak.conf not found


肿么办   我source过了 echo了path也没问题 肿么办 求指点
回复

使用道具 举报

hegery 发表于 2013-7-22 22:49:38 | 显示全部楼层
TQ_guoxixiao 发表于 2011-12-22 11:45
tmake.conf not found
我想这个提示是没有找到keying的tmake.conf,如果你cp了,那可能是文件损坏。
重新 ...

做QT24小时特别版时候 #progen;progen :command not found,我把  在/opt/EmbedSky/Qte/x86-qtopia-2.2.0/tmake/bin目录中找到“progen ”,然后复制到根目录的bin文件下,然后progen没问题了然后#tmake -o Makefile first.pro 显示tmake:command not found我又把tmake考进去,错误变成了tmake error: template file tmak.conf not found


肿么办   我source过了 echo了path也没问题 肿么办 求指点
回复

使用道具 举报

lbn321 发表于 2014-2-23 10:29:32 | 显示全部楼层
除了在PC的/etc/profile中添加PATH=$PATH:/opt/EmbedSky/qt-4.5/__install/arm/bin,并且source /etc/profile
然后回到/opt/EmbedSky/Qte目录下把source setX86_OpeEnv重新做一遍。
如此即可。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-22 02:47 , Processed in 2.044834 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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