智捷社区

查看: 5151|回复: 0

运行源码出错[LUA ERROR] [string "src/main.lua"]:2: module 'Cocos2...

[复制链接]

1

主题

1

帖子

10

积分

新手上路

Rank: 1

积分
10
发表于 2015-8-10 18:09:30 | 显示全部楼层 |阅读模式
今天下载了《lua卷》的源码,运行HelloLua(3.4)的时候报了这样的错:
value at stack [-1] is not function
cocos2d: fullPathForFilename: No file found at src/main.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at Cocos2d.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at Cocos2d.lua. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\Cocos2d.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\Cocos2d.lua. Possible missing file.
cocos2d: fullPathForFilename: No file found at ;C:\Program Files (x86)\Lua\5.1\lua\Cocos2d.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at ;C:\Program Files (x86)\Lua\5.1\lua\Cocos2d.lua. Possible missing file.
can not get file data of C:\Program Files (x86)\Lua\5.1\lua\Cocos2d.lua
[LUA ERROR] [string "src/main.lua"]:2: module 'Cocos2d' not found:
        no field package.preload['Cocos2d']
        no file '.\Cocos2d.lua'
        no file 'D:\Cocos_Projects\CocosLuaGame2\runtime\win32\lua\Cocos2d.lua'
        no file 'D:\Cocos_Projects\CocosLuaGame2\runtime\win32\lua\Cocos2d\init.lua'
        no file 'C:\Program Files (x86)\Lua\5.1\lua\Cocos2d.luac'
        no file '.\Cocos2d.dll'
        no file 'D:\Cocos_Projects\CocosLuaGame2\runtime\win32\Cocos2d.dll'
        no file 'D:\Cocos_Projects\CocosLuaGame2\runtime\win32\loadall.dll'

请问这个问题该怎么解决?
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|智捷社区 ( 京ICP备09013343号-1

GMT+8, 2019-3-21 13:31 , Processed in 0.126918 second(s), 29 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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