lihaochen910 / Candy

A Moai Editor.
Other
1 stars 1 forks source link

AKU: %1 不是有效的 Win32 应用程序 #2

Closed shixiaoshan2000 closed 2 years ago

shixiaoshan2000 commented 2 years ago

win7 64 python 64 3.810 load lib E:\Candy-master\AKU\AKU.dllTraceback (most recent call last):

File "E:\Candy-master\main.py", line 1, in from AKU import getAKU File "E:\Candy-master\AKU__init.py", line 62, in bootstrap () File "E:\Candy-master\AKU__init.py", line 59, in bootstrap__ load_lib ( 'AKU' ) File "E:\Candy-master\AKU\init.py", line 53, in load_lib imp.load_dynamic ( name, file__ ) File "D:\Program Files\Python38\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed while importing AKU: %1 不是有效的 Win32 应用程序。 [Finished in 1.6s]

lihaochen910 commented 2 years ago

刚上传了一下 用以下命令启动编辑器

python candy_editor_bin.py ide

PS:我这个版本的编辑器功能不完整, 无法正常使用

shixiaoshan2000 commented 2 years ago

thank you Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

E:\Candy-master>candy_editor_bin.py ide PYTHONPATH: D:\Program Files\Python38 PYTHONPATH: D:\Program Files\Python38

-- , ------------------------------------------------------ / \ / > ; ___ / __ / <_ / _ \,,,,,,,,,,,,/ ___ ___ ___ Candy development environment

[STATUS] start tool: ide <E:\Candy-master\tools/ide> Traceback (most recent call last): File "E:\Candy-master\candy_editor_bin.py", line 94, in main () File "E:\Candy-master\candy_editor_bin.py", line 88, in main candy_editor.startup () File "E:\Candy-master/lib\candy_editor__init__.py", line 6, in startup startupTool ( info ) File "E:\Candy-master/lib\candy_editor\core\tool.py", line 189, in startupTool

return startTool ( toolInfo )

File "E:\Candy-master/lib\candy_editor\core\tool.py", line 100, in startTool m.main ( sys.argv[ 1: ] ) File "E:\Candy-master\tools/ide/init.py", line 28, in main return run ( argv[ 1: ], 'candy ide' ) File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 829, in call return self.main(args, kwargs) File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 782, in main rv = self.invoke(ctx) File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 1066, i n invoke return ctx.invoke(self.callback, ctx.params) File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 610, in invoke return callback(args, **kwargs) File "E:\Candy-master\tools/ide/init.py", line 11, in run app.openProject ( './ZGameProject' ) File "E:\Candy-master/lib\candy_editor\core\EditorApp.py", line 257, in openPr oject raise Exception ( 'no valid candy project found' ) Exception: no valid candy project found

shixiaoshan2000 commented 2 years ago

是不是win7不行 不想折腾python 2 用GII

lihaochen910 commented 2 years ago

你用packages/WelcomeScreen/WelcomeScreen.py中的createProject方法先创建一个空项目,然后修改tools/ide/init.py中的app.openProject ( './ZGameProject' )路径改为你创建项目位置就能启动了,我这个是为了测试方便写死的

shixiaoshan2000 commented 2 years ago

谢谢 是只用WelcomeScreen.py的createProject方法重新写新的脚本,还是改写WelcomeScreen.py 使之在我的系统中运行,我改了一下在我的系统中弹不出PyQt窗口,也不报错。PyQt 装的是requirements.txt要求的,运行其它PyQt5项目没问题

lihaochen910 commented 2 years ago

再拉取一下. 修改从main.py启动

from packages.WelcomeScreen import *
WelcomeScreen.launch()

main.py

shixiaoshan2000 commented 2 years ago

谢谢 窗口终于弹出 但createProject后出 TTraceback (most recent call last): File "E:\can1\Candy-master\packages\WelcomeScreen\WelcomeScreen.py", line 42, in widget.createProjectBtn.clicked.connect(lambda: createProject(widget)) File "E:\can1\Candy-master\packages\WelcomeScreen\WelcomeScreen.py", line 20, in createProject result = Project.get().init(directory, array[len(array) - 1]) NameError: name 'Project' is not defined [Finished in 9.3s]

   # from AKU import getAKU

      # import qt
     # import moai
     # import sceneEditors
     # import assetEditor

  from lib.candy_editor.core.EditorModule import EditorModuleManager
   from lib.candy_editor.core.EditorApp import app
   from lib.candy_editor.core.project import Project

from packages.WelcomeScreen import *
  WelcomeScreen.launch()
     # import logging
      # logging.getLogger().setLevel(logging.INFO)

  #app.openProject('./testProject')

app.run()


 我的 WelecomeSceen.py
 from PyQt5.QtWidgets import *
 from PyQt5.QtGui import QPixmap
  from PyQt5 import uic, QtCore
  # from candy_editor import qt
  #from candy_editor.core.project import Project

 def openProject(parent):
    path = QFileDialog.getExistingDirectory(parent, 'Select Project Folder', './')
    result = Project.get().load(path)
    if result:
        print ( 'open Project OK!' )
        parent.close()
    else:
        from candy_editor.qt.dialogs.Dialogs import alertMessage
        alertMessage("Error", path + "\nisn't a valid Candy Project.")

def createProject(parent):
    directory = QFileDialog.getExistingDirectory(parent, 'Create a Project Folder', './')
    array = directory.split("\\")
    result = Project.get().init(directory, array[len(array) - 1])
    if result:
        print ( 'create OK!' )
        parent.close()
    else:
        from candy_editor.qt.dialogs.Dialogs import alertMessage
        alertMessage("Error", "Project.init() return False")

 def launch():
    import sys
   app = QApplication(sys.argv)

    widget = uic.loadUi('./packages/WelcomeScreen/form.ui', None)
    widget.setWindowTitle('Candy Launcher')
    # widget.setWindowIcon(QIcon(QPixmap('icon.png')))
    # widget.setWindowFlags(Qt.FramelessWindowHint)
    widget.content.setContentsMargins(0,0,0,0)
    widget.setFixedSize(600, 260)
    widget.image.resize(600, 200)
    widget.image.setPixmap(QPixmap('./packages/WelcomeScreen/logo.png'))
    widget.openProjectBtn.clicked.connect(lambda: openProject(widget))
    widget.createProjectBtn.clicked.connect(lambda: createProject(widget))

    widget.show()

    app.exec_()
shixiaoshan2000 commented 2 years ago

修改WelcomeScene.py widget = uic.loadUi('./form.ui', None) +if name == "main": launch() 直接起动WelcomeScene.py create OK! [Finished in 13.4s] 我把candy_editor文件夹直接复制WelcomeScreen目录才行 修改WelcomeScene.py widget = uic.loadUi('./form.ui', None) +if name == "main": launch() 直接起动WelcomeScene.py create OK! [Finished in 13.4s] 我把candy_editor文件夹直接复制WelcomeScreen目录才行 修改WelcomeScene.py widget = uic.loadUi('./form.ui', None) +if name == "main": launch() 直接起动WelcomeScene.py create OK! [Finished in 13.4s] 我把candy_editor文件夹直接复制WelcomeScreen目录才行 起动candy_editor_bin.py ide

E:\can1\Candy-master>candy_editor_bin.py ide
PYTHONPATH: D:\Program Files\Python38
PYTHONPATH: D:\Program Files\Python38

 --     ,_______    ------------------------------------------------------
       /        \       _______  ___   ___
      /        |  >    |       ||   | |   |
      |          ;     |    ___||   | |   |
     /           |     |   | __ |   | |   |
    / <_         |     |   ||  ||   | |   |
   /             |     |   |_| ||   | |   |
   \,,,,,,,,,,,,/      |_______||___| |___|   Candy development environment
 --      |   |      ------------------------------------------------------

[STATUS]        start tool: ide <E:\can1\Candy-master\tools/ide>
[STATUS]        project loaded: E:\can1\Candy-master\shi
E:\can1\Candy-master/lib\candy_editor\moai\CandyRuntime.py:20: SyntaxWarning: as
sertion is always true, perhaps remove parentheses?
  assert ( clas, "%s not found in _CANDY" % name )
E:\can1\Candy-master/lib\candy_editor\moai\CandyRuntime.py:30: SyntaxWarning: as
sertion is always true, perhaps remove parentheses?
  assert ( clas, "%s not found in _CANDY" % name )
Traceback (most recent call last):
  File "E:\can1\Candy-master\candy_editor_bin.py", line 94, in <module>
    main ()
  File "E:\can1\Candy-master\candy_editor_bin.py", line 88, in main
    candy_editor.startup ()
  File "E:\can1\Candy-master/lib\candy_editor\__init__.py", line 6, in startup
    startupTool ( info )
  File "E:\can1\Candy-master/lib\candy_editor\core\tool.py", line 189, in startu
pTool
    return startTool ( toolInfo )
  File "E:\can1\Candy-master/lib\candy_editor\core\tool.py", line 100, in startT
ool
    m.main ( sys.argv[ 1: ] )
  File "E:\can1\Candy-master\tools/ide/__init__.py", line 28, in main
    return run ( argv[ 1: ], 'candy ide' )
  File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 829, in
 __call__
    return self.main(*args, **kwargs)
  File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 782, in
 main
    rv = self.invoke(ctx)
  File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 1066, i
n invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 610, in
 invoke
    return callback(*args, **kwargs)
  File "E:\can1\Candy-master\tools/ide/__init__.py", line 13, in run
    from candy_editor import SceneEditor
  File "E:\can1\Candy-master/lib\candy_editor\SceneEditor\__init__.py", line 9,
in <module>
    from . import DetailPanel
  File "E:\can1\Candy-master/lib\candy_editor\SceneEditor\DetailPanel.py", line
10, in <module>
    from util.IDPool import IDPool
ModuleNotFoundError: No module named 'util'
lihaochen910 commented 2 years ago

ModuleNotFoundError: No module named 'util' util模块在lib文件夹下面.

应该是环境变量的事, 如果你在使用PyCharm则需要将lib设置为Sources Root,运行配置中勾上Add source roots to PYTHONPATH. candy_editor_bin.py中有将lib添加PYTHONPATH的逻辑, 自行检查一下lib目录是否在运行时注册到PYTHONPATH中.

shixiaoshan2000 commented 2 years ago

注释util ModuleNotFoundError: No module named 'util'

E:\can1\Candy-master>candy_editor_bin.py ide PYTHONPATH: D:\Program Files\Python38 PYTHONPATH: D:\Program Files\Python38

-- , ------------------------------------------------------ / \ / > ; ___ / __ / <_ / _ \,,,,,,,,,,,,/ ___ ___ ___ Candy development environment

[STATUS] start tool: ide <E:\can1\Candy-master\tools/ide> [STATUS] project loaded: E:\can1\Candy-master\shi [STATUS] registering asset manager: asset_manager.image [STATUS] registering asset manager: asset_manager.text [STATUS] registering asset manager: asset_manager.scene [STATUS] registering asset manager: asset_manager.prefab [STATUS] registering asset manager: asset_manager.texture_processor [STATUS] registering asset manager: asset_manager.texture [STATUS] registering asset manager: asset_manager.prebuilt_atlas [STATUS] registering asset manager: asset_manager.deck2d [STATUS] registering asset manager: asset_manager.font [STATUS] registering asset manager: asset_manager.stylesheet [STATUS] registering asset manager: asset_manager.data_json Traceback (most recent call last): File "E:\can1\Candy-master\candy_editor_bin.py", line 94, in main () File "E:\can1\Candy-master\candy_editor_bin.py", line 88, in main candy_editor.startup () File "E:\can1\Candy-master/lib\candy_editor__init.py", line 6, in startup startupTool ( info ) File "E:\can1\Candy-master/lib\candy_editor\core\tool.py", line 189, in startu pTool return startTool ( toolInfo ) File "E:\can1\Candy-master/lib\candy_editor\core\tool.py", line 100, in startT ool m.main ( sys.argv[ 1: ] ) File "E:\can1\Candy-master\tools/ide/init.py", line 28, in main return run ( argv[ 1: ], 'candy ide' ) File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 829, in call return self.main(args, kwargs) File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 782, in main rv = self.invoke(ctx) File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 1066, i n invoke return ctx.invoke(self.callback, ctx.params) File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 610, in invoke return callback(args, **kwargs) File "E:\can1\Candy-master\tools/ide/init.py", line 14, in run from candy_editor import AssetEditor File "E:\can1\Candy-master/lib\candy_editor\AssetEditor__init__.py", line 8, in from . import EngineAsset File "E:\can1\Candy-master/lib\candy_editor\AssetEditor\EngineAsset\init__.p y", line 13, in from . import NamedTilesetAsset File "E:\can1\Candy-master/lib\candy_editor\AssetEditor\EngineAsset\NamedTiles etAsset.py", line 3, in from .helper.psd2tileset import TilesetProject File "E:\can1\Candy-master/lib\candy_editor\AssetEditor\EngineAsset\helper\psd 2tileset.py", line 5, in from .psd_tools_helper import * File "E:\can1\Candy-master/lib\candy_editor\AssetEditor\EngineAsset\helper\psd _tools_helper.py", line 3, in from psd_tools import PSDImage ModuleNotFoundError: No module named 'psd_tools' 我在lib目录下没找到util模块 只有一个util.lua

lihaochen910 commented 2 years ago

拉取一下就有了

shixiaoshan2000 commented 2 years ago

谢谢

shixiaoshan2000 commented 2 years ago

是不是还要安装 https://github.com/psd-tools/psd-tools

shixiaoshan2000 commented 2 years ago

ileset.py", line 5, in from .psd_tools_helper import * File "E:\can1\Candy-master/lib\candy_editor\AssetEditor\EngineAsset\helper\ ools_helper.py", line 3, in from psd_tools import PSDImage duleNotFoundError: No module named 'psd_tools'

\can1\Candy-master>

shixiaoshan2000 commented 2 years ago

装了以后 [STATUS] start tool: ide <E:\can1\Candy-master\tools/ide> [STATUS] project loaded: E:\can1\Candy-master\shi [STATUS] registering asset manager: asset_manager.image [STATUS] registering asset manager: asset_manager.text [STATUS] registering asset manager: asset_manager.scene [STATUS] registering asset manager: asset_manager.prefab [STATUS] registering asset manager: asset_manager.texture_processor [STATUS] registering asset manager: asset_manager.texture [STATUS] registering asset manager: asset_manager.prebuilt_atlas [STATUS] registering asset manager: asset_manager.deck2d [STATUS] registering asset manager: asset_manager.font [STATUS] registering asset manager: asset_manager.stylesheet [STATUS] registering asset manager: asset_manager.data_json [STATUS] registering asset manager: asset_manager.named_tileset [STATUS] registering asset manager: asset_manager.animator_data [WARNING] failed to load JSON: E:\can1\Candy-master/config.json [ERROR] [Errno 2] No such file or directory: 'E:\can1\Candy-master/config.json ' Traceback (most recent call last): File "E:\can1\Candy-master/lib\candy_editor\core\jsonHelper.py", line 41, in t ryLoadJSON data = loadJSON ( path ) File "E:\can1\Candy-master/lib\candy_editor\core\jsonHelper.py", line 23, in l oadJSON fp = open ( path, encoding = "utf-8" ) FileNotFoundError: [Errno 2] No such file or directory: 'E:\can1\Candy-master/ config.json' [STATUS] scanning package in:E:\can1\Candy-master/packages [ERROR] failed reading package settings:EditorConsole [WARNING] no candy.json found in package folder: E:\can1\Candy-master/ packages/WelcomeScreen [WARNING] no candy.json found in package folder: E:\can1\Candy-master/ packages/pycache [STATUS] packages loaded! [STATUS] loading module:qt libpng warning: iCCP: known incorrect sRGB profile [STATUS] loading module:moai [STATUS] loading moai lua runtime [STATUS] loading project script lib [STATUS] change moai working path:E:\can1\Candy-master\shi/game [STATUS] loading candy lua module Could not connect to localhost:8172: connection refused WARNING: font file assets/fonts/VL-PGothic.ttf does not exist FT_Stream_Open: could not open `E:/can1/Candy-master/shi/game/assets/fonts/VL-PG othic.ttf' FONT_ERROR loading font: E:/can1/Candy-master/shi/game/assets/fonts/VL-PGothic.t tf ERROR: unable to open font file E:/can1/Candy-master/shi/game/assets/fonts/VL-PG othic.ttf for reading glyphs. connectPythonSignal: asset.modified <function wrapLuaCaller..caller at 0 x0000000006C11160> connectPythonSignal: asset.register <function wrapLuaCaller..caller at 0 x0000000006C111F0> connectPythonSignal: asset.unregister <function wrapLuaCaller..caller at 0x0000000006C11280> [LOG :candy] Game:addLayer() main [STATUS] [MOAIRuntime] initContext() ok. [STATUS] change moai working path:E:\can1\Candy-master\shi [STATUS] init GL context Windows fatal exception: access violation

Thread 0x000007c8 (most recent call first): File "D:\Program Files\Python38\lib\selectors.py", line 314 in _select File "D:\Program Files\Python38\lib\selectors.py", line 323 in select File "D:\Program Files\Python38\lib\socketserver.py", line 294 in handle_reque st File "E:\can1\Candy-master/lib\candy_editor\core\InstanceHelper.py", line 32 i n serve_forever File "D:\Program Files\Python38\lib\threading.py", line 870 in run File "D:\Program Files\Python38\lib\threading.py", line 932 in _bootstrap_inne r File "D:\Program Files\Python38\lib\threading.py", line 890 in _bootstrap

Current thread 0x000010b0 (most recent call first): File "E:\can1\Candy-master/lib\candy_editor\moai\MOAIRuntime.py", line 140 in initGLContext File "E:\can1\Candy-master/lib\candy_editor\moai\MOAIRuntime.py", line 328 in onLoad File "E:\can1\Candy-master/lib\candy_editor\core\EditorModule.py", line 137 in load File "E:\can1\Candy-master/lib\candy_editor\core\EditorModule.py", line 249 in loadModule File "E:\can1\Candy-master/lib\candy_editor\core\EditorModule.py", line 267 in loadAllModules File "E:\can1\Candy-master/lib\candy_editor\core\EditorApp.py", line 96 in ini t File "E:\can1\Candy-master/lib\candy_editor\core\EditorApp.py", line 110 in ru n File "E:\can1\Candy-master\tools/ide/init.py", line 24 in run File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 610 in invoke File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 1066 in invoke File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 782 in main File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 829 in call File "E:\can1\Candy-master\tools/ide/init.py", line 28 in main File "E:\can1\Candy-master/lib\candy_editor\core\tool.py", line 100 in startTo ol File "E:\can1\Candy-master/lib\candy_editor\core\tool.py", line 189 in startup Tool File "E:\can1\Candy-master/lib\candy_editor__init__.py", line 6 in startup File "E:\can1\Candy-master\candy_editor_bin.py", line 88 in main File "E:\can1\Candy-master\candy_editor_bin.py", line 94 in

shixiaoshan2000 commented 2 years ago

要装python 那个版 0x000007FEE67FF551 (ucrtbased.dll) (python.exe 中)处有未经处理的异常: 0xC0000005: 读取位置 0x0000000000000000 时发生访问冲突。

shixiaoshan2000 commented 2 years ago

要本机重新编译AKU 用那个版本的moai

lihaochen910 commented 2 years ago

应该不是, 可能是默认字体没找到game/assets/fonts/VL-PG othic.ttf, 你可以自己找一个字体放在路径中.

重新编译AKU可特麻烦

shixiaoshan2000 commented 2 years ago

网上找了一个VL-PGothic-Regular.ttf 改名VL-PGothic.ttf

[STATUS] start tool: ide <E:\can1\Candy-master\tools/ide> [STATUS] project loaded: E:\can1\Candy-master\shi [STATUS] registering asset manager: asset_manager.image [STATUS] registering asset manager: asset_manager.text [STATUS] registering asset manager: asset_manager.scene [STATUS] registering asset manager: asset_manager.prefab [STATUS] registering asset manager: asset_manager.texture_processor [STATUS] registering asset manager: asset_manager.texture [STATUS] registering asset manager: asset_manager.prebuilt_atlas [STATUS] registering asset manager: asset_manager.deck2d [STATUS] registering asset manager: asset_manager.font [STATUS] registering asset manager: asset_manager.stylesheet [STATUS] registering asset manager: asset_manager.data_json [STATUS] registering asset manager: asset_manager.named_tileset [STATUS] registering asset manager: asset_manager.animator_data [STATUS] scanning package in:E:\can1\Candy-master/packages [ERROR] failed reading package settings:EditorConsole [WARNING] no candy.json found in package folder: E:\can1\Candy-master/ packages/WelcomeScreen [WARNING] no candy.json found in package folder: E:\can1\Candy-master/ packages/pycache [STATUS] packages loaded! [STATUS] loading module:qt libpng warning: iCCP: known incorrect sRGB profile [STATUS] loading module:moai [STATUS] loading moai lua runtime [STATUS] loading project script lib [STATUS] change moai working path:E:\can1\Candy-master\shi/game [STATUS] loading candy lua module Could not connect to localhost:8172: connection refused connectPythonSignal: asset.modified <function wrapLuaCaller..caller at 0 x0000000006AC4CA0> connectPythonSignal: asset.register <function wrapLuaCaller..caller at 0 x0000000006AC4D30> connectPythonSignal: asset.unregister <function wrapLuaCaller..caller at 0x0000000006AC4DC0> [LOG :candy] Game:addLayer() main [STATUS] [MOAIRuntime] initContext() ok. [STATUS] change moai working path:E:\can1\Candy-master\shi [STATUS] init GL context Windows fatal exception: access violation ``

lihaochen910 commented 2 years ago

那就尝试自行编译AKU, 我用的是moai-community, 子模块moai拉取develop最新, 用tools/src中相应的源文件替换编译得到静态库后放到lib/candy_editor/AKU/dev中使用setup.py

python3 setup.py build_ext --inplace

编译得到AKU.pyd后放到lib/3rdparty/windows中 我在windows平台用的是python3.8.10, 安装时需要勾选下载调试静态库

shixiaoshan2000 commented 2 years ago

谢谢

shixiaoshan2000 commented 2 years ago

又打扰了 编译moai lib 换了你tool src 后 严重性 代码 说明 项目 路径 文件 行 禁止显示状态 工具 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-tga\MOAIImageFormatTga.cpp) moai-lib-image-tga G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C2143 语法错误: 缺少“;”(在“<”的前面) zl-lib-vfs G:\moai-community\sdk\moai\src\zl-vfs G:\moai-community\sdk\moai\src\zl-vfs\assert.cpp 12 CL 错误 C4430 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int zl-lib-vfs G:\moai-community\sdk\moai\src\zl-vfs G:\moai-community\sdk\moai\src\zl-vfs\assert.cpp 12 CL 错误 C2065 “sAssertEnv”: 未声明的标识符 zl-lib-vfs G:\moai-community\sdk\moai\src\zl-vfs G:\moai-community\sdk\moai\src\zl-vfs\assert.cpp 19 CL 错误 C2065 “sAssertEnv”: 未声明的标识符 zl-lib-vfs G:\moai-community\sdk\moai\src\zl-vfs G:\moai-community\sdk\moai\src\zl-vfs\assert.cpp 32 CL 错误 C2065 “sAssertEnv”: 未声明的标识符 zl-lib-vfs G:\moai-community\sdk\moai\src\zl-vfs G:\moai-community\sdk\moai\src\zl-vfs\assert.cpp 37 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory moai-lib-sim G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory moai-lib-box2d G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-jpg\MOAIImageFormatJpg.cpp) moai-lib-image-jpg G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-jpg\host.cpp) moai-lib-image-jpg G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-untz\MOAIUntzSampleBuffer.cpp) moai-lib-untz G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-untz\host.cpp) moai-lib-untz G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-untz\MOAIUntzSound.cpp) moai-lib-untz G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-png\MOAIImageFormatPng.cpp) moai-lib-image-png G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-untz\MOAIUntzSystem.cpp) moai-lib-untz G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-png\host.cpp) moai-lib-image-png G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-pvr\MOAIImageFormatPvr.cpp) moai-lib-image-pvr G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-pvr\host.cpp) moai-lib-image-pvr G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-webp\MOAIImageFormatWebP.cpp) moai-lib-image-webp G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-webp\host.cpp) moai-lib-image-webp G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory moai-lib-assimp G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 错误 C1083 无法打开包括文件: “moai-sim/MOAISingleTexture.h”: No such file or directory (编译源文件 ....\src\moai-image-tga\host.cpp) moai-lib-image-tga G:\moai-community\sdk\moai\src\moai-sim G:\moai-community\sdk\moai\src\moai-sim\MOAIFrameBufferTexture.h 8 CL 警告 C4189 “context”: 局部变量已初始化但不引用 moai (Moai\moai) G:\moai-community\sdk\moai\src\host-sdl G:\moai-community\sdk\moai\src\host-sdl\SDLHost.cpp 457 CL 错误 LNK1104 无法打开文件“zl-lib-vfs.lib” moai (Moai\moai) G:\moai-community\sdk\moai\vs2019\moai-exe G:\moai-community\sdk\moai\vs2019\moai-exe\LINK 1 Link

shixiaoshan2000 commented 2 years ago

MOAISingleTexture.h 你没有附带上传吧

shixiaoshan2000 commented 2 years ago

能不能把你的全部moai src 上传tool下

shixiaoshan2000 commented 2 years ago

context可能与我的问题有关

shixiaoshan2000 commented 2 years ago

SDLHost.cpp MOAIFrameBufferTexture.h zl-lib-vfs 都换了你的,不换之前没问题

shixiaoshan2000 commented 2 years ago

zl-lib-vfs.lib的问题,比较麻烦,看改了assert.cpp 行不行,只有一个个折藤了,网上的文档太少,只有看源码慢慢来

shixiaoshan2000 commented 2 years ago

我用的是sdk2.0 MOAISingleTexture.h 在sdk 1.74 中有 我自己先试吧

shixiaoshan2000 commented 2 years ago

还是否把你的 moai src 传我一份,如果moai lib 不跟你保持一至,后面的坑更大,那种方式你方便

lihaochen910 commented 2 years ago

忘了说MOAIFrameBuffer.h/cpp和MOAIFrameBufferTexture.h/cpp这四个文件不用替换

lihaochen910 commented 2 years ago

moai-community/sdk/moai/src src.zip

shixiaoshan2000 commented 2 years ago

谢谢 你的src 一次编译通过,另setup.py中的host-modules.lib是不是指的是工程中的moai.exe项目,把它编成lib,还是重新编译src中的AKU目录中的文件,msvcrtd.lib Shell32.libUser32.lib ole32.lib dsound.lib trmiids.lib ......version.lib 也要copy lib/candy_editor/AKU/dev中吗,

lihaochen910 commented 2 years ago

host-modules [host-modules.zip](https://github.com/lihaochen910/Candy/files/7509755/host-modules.zip 编译后的静态库按照lib/candy_editor/AKU/dev/setup.py中需要的静态库如数复制到lib/candy_editor/AKU/dev下面, 之后编译即可

lihaochen910 commented 2 years ago

对了, 还需要编译LuaJit为静态库, 链接AKU时替换默认的lua-lib-5.1.lib

moai-community\sdk\moai\3rdparty\LuaJIT-2.0.5\src> msvcbuild.bat static

lua代码中有引用LuaJit有而lua51没有的bit库方法

shixiaoshan2000 commented 2 years ago

msvcrtd.lib 我机子里没有 只有C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\ntstc_msvcrt.lib 是不是一回事, 编了一回aku.pyd 有八个错误,把candy项目tools src 置换, moai lib 都生成不了,

shixiaoshan2000 commented 2 years ago
号 __imp__CrtDbgReport
moai-lib-image-pvr.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtD
bgReport
moai-lib-http-client.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__Crt
DbgReport
moai-lib-http-client.lib(MOAIHttpTaskBase.obj) : error LNK2001: 无法解析的外部符
号 __imp__CrtDbgReport
moai-lib-luaext.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgR
eport
moai-lib-image-jpg.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtD
bgReport
moai-lib-crypto.lib(MOAIHashWriterCrypto.obj) : error LNK2001: 无法解析的外部符
号 __imp__CrtDbgReport
moai-lib-box2d.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgRep
ort
moai-lib-http-client.lib(MOAIHttpTaskCurl.obj) : error LNK2001: 无法解析的外部符
号 __imp__CrtDbgReport
moai-lib-http-client.lib(MOAIUrlMgrCurl.obj) : error LNK2001: 无法解析的外部符号
 __imp__CrtDbgReport
zl-lib-core.lib(ZLHashedString.obj) : error LNK2001: 无法解析的外部符号 __imp__C
rtDbgReport
zl-lib-core.lib(ZLDirectoryItr.obj) : error LNK2001: 无法解析的外部符号 __imp__C
rtDbgReport
zl-lib-gfx.lib(ZLGfxDevice.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDb
gReport
moai-lib-crypto.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgR
eport
zl-lib-core.lib(ZLFileStream.obj) : error LNK2001: 无法解析的外部符号 __imp__Crt
DbgReport
zl-lib-core.lib(ZLAdapterInfo_win32.obj) : error LNK2001: 无法解析的外部符号 __i
mp__CrtDbgReport
zl-lib-core.lib(ZLUnique_win32.obj) : error LNK2001: 无法解析的外部符号 __imp__C
rtDbgReport
zl-lib-core.lib(ZLBitBuffer.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtD
bgReport
zl-lib-core.lib(ZLContext.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbg
Report
zl-lib-core.lib(ZLFileSys.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbg
Report
zl-lib-core.lib(STLString.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbg
Report
zl-lib-core.lib(ZLStream.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgR
eport
zl-lib-vfs.lib(ZLVfsFile.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgR
eport
zl-lib-vfs.lib(ZLVfsFileSystem.obj) : error LNK2001: 无法解析的外部符号 __imp__C
rtDbgReport
tinyxml.lib(tinyxml.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgReport

tinyxml.lib(tinyxmlparser.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbg
Report
zl-lib-vfs.lib(zl_vfscanf.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbg
Report
zl-lib-vfs.lib(ZLVfsDirectoryItr.obj) : error LNK2001: 无法解析的外部符号 __imp_
_CrtDbgReport
zl-lib-vfs.lib(ZLVfsZipArchive.obj) : error LNK2001: 无法解析的外部符号 __imp__C
rtDbgReport
zl-lib-vfs.lib(ZLVfsVirtualPath.obj) : error LNK2001: 无法解析的外部符号 __imp__
CrtDbgReport
moai-lib-util.lib(MOAIDataBuffer.obj) : error LNK2001: 无法解析的外部符号 __imp_
_CrtDbgReport
moai-lib-util.lib(MOAIDataIOTask.obj) : error LNK2001: 无法解析的外部符号 __imp_
_CrtDbgReport
moai-lib-util.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgRepo
rt
zl-lib-vfs.lib(headers.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgRep
ort
moai-lib-sim.lib(MOAIGfxBuffer.obj) : error LNK2001: 无法解析的外部符号 __imp__C
rtDbgReport
moai-lib-sim.lib(MOAIDynamicGlyphCachePage.obj) : error LNK2001: 无法解析的外部
符号 __imp__CrtDbgReport
moai-lib-sim.lib(MOAIFont_bmfont.obj) : error LNK2001: 无法解析的外部符号 __imp_
_CrtDbgReport
moai-lib-sim.lib(MOAITextStyleCache.obj) : error LNK2001: 无法解析的外部符号 __i
mp__CrtDbgReport
moai-lib-sim.lib(MOAIGlyphSet.obj) : error LNK2001: 无法解析的外部符号 __imp__Cr
tDbgReport
moai-lib-sim.lib(MOAIImageLoadTask.obj) : error LNK2001: 无法解析的外部符号 __im
p__CrtDbgReport
moai-lib-sim.lib(MOAIShaderUniform.obj) : error LNK2001: 无法解析的外部符号 __im
p__CrtDbgReport
moai-lib-sim.lib(MOAITextureBase.obj) : error LNK2001: 无法解析的外部符号 __imp_
_CrtDbgReport
moai-lib-sim.lib(MOAIFont.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbg
Report
moai-lib-sim.lib(MOAITextLabel.obj) : error LNK2001: 无法解析的外部符号 __imp__C
rtDbgReport
moai-lib-sim.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgRepor
t
moai-lib-sim.lib(MOAISensor.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtD
bgReport
moai-lib-sim.lib(MOAITexture.obj) : error LNK2001: 无法解析的外部符号 __imp__Crt
DbgReport
moai-lib-sim.lib(MOAITouchSensor.obj) : error LNK2001: 无法解析的外部符号 __imp_
_CrtDbgReport
moai-lib-sim.lib(MOAIVectorTesselator.obj) : error LNK2001: 无法解析的外部符号 _
_imp__CrtDbgReport
moai-lib-sim.lib(MOAIBitmapFontReader.obj) : error LNK2001: 无法解析的外部符号 _
_imp__CrtDbgReport
moai-lib-sim.lib(MOAIInputDevice.obj) : error LNK2001: 无法解析的外部符号 __imp_
_CrtDbgReport
moai-lib-sim.lib(MOAIInputMgr.obj) : error LNK2001: 无法解析的外部符号 __imp__Cr
tDbgReport
moai-lib-sim.lib(MOAIParticleScript.obj) : error LNK2001: 无法解析的外部符号 __i
mp__CrtDbgReport
moai-lib-sim.lib(MOAIParticlePexPlugin.obj) : error LNK2001: 无法解析的外部符号
__imp__CrtDbgReport
moai-lib-sim.lib(MOAIGrid.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbg
Report
moai-lib-sim.lib(MOAIGeometryWriter.obj) : error LNK2001: 无法解析的外部符号 __i
mp__CrtDbgReport
moai-lib-sim.lib(MOAIGfxPipelineClerk.obj) : error LNK2001: 无法解析的外部符号 _
_imp__CrtDbgReport
moai-lib-sim.lib(MOAIImageFormatMgr.obj) : error LNK2001: 无法解析的外部符号 __i
mp__CrtDbgReport
moai-lib-sim.lib(MOAICoroutine.obj) : error LNK2001: 无法解析的外部符号 __imp__C
rtDbgReport
moai-lib-sim.lib(MOAIDebugLines.obj) : error LNK2001: 无法解析的外部符号 __imp__
CrtDbgReport
moai-lib-sim.lib(MOAIDraw.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbg
Report
moai-lib-sim.lib(MOAIShaderProgram.obj) : error LNK2001: 无法解析的外部符号 __im
p__CrtDbgReport
moai-lib-core.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgRepo
rt
moai-lib-core.lib(MOAISerializerBase.obj) : error LNK2001: 无法解析的外部符号 __
imp__CrtDbgReport
moai-lib-sim.lib(MOAIAction.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtD
bgReport
moai-lib-sim.lib(MOAICameraFitter2D.obj) : error LNK2001: 无法解析的外部符号 __i
mp__CrtDbgReport
moai-lib-core.lib(MOAIEnvironment.obj) : error LNK2001: 无法解析的外部符号 __imp
__CrtDbgReport
moai-lib-core.lib(MOAITestMgr.obj) : error LNK2001: 无法解析的外部符号 __imp__Cr
tDbgReport
moai-lib-core.lib(MOAITrace.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtD
bgReport
moai-lib-core.lib(MOAIVersion.obj) : error LNK2001: 无法解析的外部符号 __imp__Cr
tDbgReport
moai-lib-core.lib(MOAILogMgr.obj) : error LNK2001: 无法解析的外部符号 __imp__Crt
DbgReport
moai-lib-core.lib(MOAICanary.obj) : error LNK2001: 无法解析的外部符号 __imp__Crt
DbgReport
moai-lib-core.lib(MOAIDeserializer.obj) : error LNK2001: 无法解析的外部符号 __im
p__CrtDbgReport
moai-lib-core.lib(MOAISerializer.obj) : error LNK2001: 无法解析的外部符号 __imp_
_CrtDbgReport
moai-lib-core.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbgRep
ort
moai-lib-core.lib(MOAILuaState.obj) : error LNK2001: 无法解析的外部符号 __imp__C
rtDbgReport
moai-lib-core.lib(MOAILuaObject.obj) : error LNK2001: 无法解析的外部符号 __imp__
CrtDbgReport
moai-lib-core.lib(MOAILuaRuntime.obj) : error LNK2001: 无法解析的外部符号 __imp_
_CrtDbgReport
zl-lib-crypto.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_dbg

moai-lib-untz.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_db
g
moai-lib-untz.lib(MOAIUntzSampleBuffer.obj) : error LNK2001: 无法解析的外部符号
__imp__calloc_dbg
moai-lib-untz.lib(MOAIUntzSound.obj) : error LNK2001: 无法解析的外部符号 __imp__
calloc_dbg
moai-lib-untz.lib(MOAIUntzSystem.obj) : error LNK2001: 无法解析的外部符号 __imp_
_calloc_dbg
moai-lib-image-webp.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__cal
loc_dbg
moai-lib-image-webp.lib(MOAIImageFormatWebP.obj) : error LNK2001: 无法解析的外部
符号 __imp__calloc_dbg
moai-lib-sdl.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_dbg

moai-lib-sdl.lib(MOAIDialogSDL.obj) : error LNK2001: 无法解析的外部符号 __imp__c
alloc_dbg
moai-lib-image-png.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__call
oc_dbg
moai-lib-image-png.lib(MOAIImageFormatPng.obj) : error LNK2001: 无法解析的外部符
号 __imp__calloc_dbg
moai-lib-image-pvr.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__call
oc_dbg
moai-lib-image-pvr.lib(MOAIImageFormatPvr.obj) : error LNK2001: 无法解析的外部符
号 __imp__calloc_dbg
moai-lib-http-client.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__cal
loc_dbg
moai-lib-luaext.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_
dbg
moai-lib-image-jpg.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__call
oc_dbg
moai-lib-image-jpg.lib(MOAIImageFormatJpg.obj) : error LNK2001: 无法解析的外部符
号 __imp__calloc_dbg
zl-lib-core.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_dbg
moai-lib-crypto.lib(host.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_
dbg
moai-lib-crypto.lib(MOAIHashWriterCrypto.obj) : error LNK2001: 无法解析的外部符
号 __imp__calloc_dbg
moai-lib-box2d.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_db
g
moai-lib-core.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_dbg

moai-lib-sim.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_dbg
moai-lib-util.lib(pch.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_dbg

zl-lib-vfs.lib(headers.obj) : error LNK2001: 无法解析的外部符号 __imp__calloc_db
g
zl-lib-vfs.lib(ZLThreadLocalPtr_windows.obj) : error LNK2001: 无法解析的外部符号
 __imp__free_dbg
zl-lib-vfs.lib(ZLVfsZipStream.obj) : error LNK2001: 无法解析的外部符号 __imp__fr
ee_dbg
zl-lib-vfs.lib(headers.obj) : error LNK2001: 无法解析的外部符号 __imp__free_dbg
zl-lib-vfs.lib(assert.obj) : error LNK2001: 无法解析的外部符号 __imp__free_dbg
zl-lib-vfs.lib(zl_util.obj) : error LNK2001: 无法解析的外部符号 __imp__free_dbg
zl-lib-vfs.lib(ZLVfsZipArchive.obj) : error LNK2001: 无法解析的外部符号 __imp__f
ree_dbg
zl-lib-vfs.lib(headers.obj) : error LNK2001: 无法解析的外部符号 __imp__malloc_db
g
zl-lib-vfs.lib(zl_util.obj) : error LNK2001: 无法解析的外部符号 __imp__malloc_db
g
zl-lib-vfs.lib(ZLThreadLocalPtr_windows.obj) : error LNK2001: 无法解析的外部符号
 __imp__malloc_dbg
zl-lib-vfs.lib(ZLVfsZipStream.obj) : error LNK2001: 无法解析的外部符号 __imp__ma
lloc_dbg
zl-lib-vfs.lib(headers.obj) : error LNK2001: 无法解析的外部符号 __imp__realloc_d
bg
zl-lib-vfs.lib(zl_util.obj) : error LNK2001: 无法解析的外部符号 __imp__realloc_d
bg
zl-lib-vfs.lib(ZLVfsZipArchive.obj) : error LNK2001: 无法解析的外部符号 __imp__r
ealloc_dbg
zl-lib-vfs.lib(ZLVfsFileSystem.obj) : error LNK2001: 无法解析的外部符号 __imp__g
etcwd_dbg
luaext.lib(lfs.obj) : error LNK2001: 无法解析的外部符号 __imp__getcwd_dbg
libpvr.lib(PVRTDecompress.obj) : error LNK2001: 无法解析的外部符号 __imp__CrtDbg
ReportW
E:\can1\Candy-master\lib\candy_editor\AKU\dev\AKU.cp38-win_amd64.pyd : fatal err
or LNK1120: 8 个无法解析的外部命令
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Communit
y\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\link.exe' failed with exit s
tatus 1120
shixiaoshan2000 commented 2 years ago

换了reslease E:\can1\Candy-master\lib\candy_editor\AKU\dev>python setup.py build_ext --inplac e running build_ext building 'AKU' extension C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.2 9.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DAKU_WITH_LU AEXT=1 -DMOAI_WITH_LUAEXT=1 -DMOAI_WITH_LUAJIT=1 -DAKU_WITH_HARFBUZZ=1 -DAKU_WIT H_HTTP_SERVER=1 -I. -IG:/sdk/moai/src/ -IG:/sdk/moai/3rdparty/LuaJIT-2.0.5/src/ -IG:/sdk/moai/src/host-modules/ "-ID:\Program Files\Python38\include" "-ID:\Prog ram Files\Python38\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\20 19\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include" "-IC:\Program Files (x86) \Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include" "-IC: \Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files ( x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Window s Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10 \include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0 .19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\c ppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Too ls\MSVC\14.29.30037\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual S tudio\2019\Community\VC\Tools\MSVC\14.29.30037\include" "-IC:\Program Files (x86 )\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\1 0\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\1 0.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041 .0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-I C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /TpA KU.cpp /Fobuild\temp.win-amd64-3.8\Release\AKU.obj -DAKU_WITH_LUAEXT -DMOAI_WITH _LUAEXT -DMOAI_WITH_LUAJIT AKU.cpp AKU.cpp(16676): warning C4244: “=”: 从“Py_ssize_t”转换到“int”,可能丢失数 据 AKU.cpp(19659): warning C4244: “=”: 从“Py_ssize_t”转换到“int”,可能丢失数 据 AKU.cpp(21862): warning C4244: “参数”: 从“Py_ssize_t”转换到“int”,可能丢失 数据 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.2 9.30037\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EM BED,ID=2 /MANIFESTUAC:NO "/LIBPATH:D:\Program Files\Python38\libs" "/LIBPATH:D:\ Program Files\Python38\PCbuild\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\lib\x64" "/LIBPAT H:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14 .29.30037\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\li b\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt \x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools \MSVC\14.29.30037\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Vis ual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\lib\x64" "/LIBPATH:C:\Progra m Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files ( x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86) \Windows Kits\10\lib\10.0.19041.0\um\x64" /EXPORT:PyInit_AKU build\temp.win-amd6 4-3.8\Release\AKU.obj ntstc_msvcrt.lib shell32.lib User32.lib ole32.lib SetupAPI .Lib lua51.lib luaext.lib sqlite.lib zlib.lib zl-lib-vfs.lib box2d.lib contrib.l ib expat.lib freetype.lib tlsf.lib glew.lib jansson.lib kissfft.lib tinyxml.lib libcurl.lib mbedtls.lib libjpg.lib libpng.lib libpvr.lib libwebp.lib libogg.lib libvorbis.lib libtess.lib sdl2.lib sfmt.lib untz.lib zl-lib-core.lib zl-lib-cryp to.lib zl-lib-gfx.lib moai-lib-core.lib moai-lib-crypto.lib moai-lib-box2d.lib m oai-lib-http-client.lib moai-lib-http-server.lib moai-lib-sim.lib moai-lib-luaex t.lib moai-lib-image-jpg.lib moai-lib-image-png.lib moai-lib-image-pvr.lib moai- lib-image-webp.lib moai-lib-sdl.lib moai-lib-untz.lib moai-lib-util.lib host-mod ules.lib dsound.lib strmiids.lib AdvAPI32.Lib comctl32.lib OleAut32.Lib OpenGL32 .Lib gdi32.lib rpcrt4.lib WinMM.Lib Wldap32.Lib WS2_32.Lib WSock32.Lib iphlpapi. lib Psapi.Lib imm32.lib version.lib /OUT:E:\can1\Candy-master\lib\candy_editor\A KU\dev\AKU.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\AKU.cp38- win_amd64.lib host-modules.lib(aku_modules.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL ”的不匹配项: 值“2”不匹配值“0”(moai-lib-core.lib(host.obj) 中) host-modules.lib(aku_modules.obj) : error LNK2038: 检测到“RuntimeLibrary”的不 匹配项: 值“MDd_DynamicDebug”不匹配值“MD_DynamicRelease”(moai-lib-core.lib(ho st.obj) 中) 正在创建库 build\temp.win-amd64-3.8\Release\AKU.cp38-win_amd64.lib 和对象 buil d\temp.win-amd64-3.8\Release\AKU.cp38-win_amd64.exp LINK : warning LNK4098: 默认库“MSVCRTD”与其他库的使用冲突;请使用 /NODEFAULTLI B:library E:\can1\Candy-master\lib\candy_editor\AKU\dev\AKU.cp38-win_amd64.pyd : fatal err or LNK1319: 检测到 2 个不匹配项 error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Communit y\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\link.exe' failed with exit s tatus 1319 ``

lihaochen910 commented 2 years ago

我没遇到你这个问题, 在谷歌上查查

shixiaoshan2000 commented 2 years ago

改了一下又 host-modules.lib(lapi.obj) : error LNK2005: lua_typename 已经在 lua51.lib(lua51. dll) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_type 已经在 lua51.lib(lua51.dll) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_pushvalue 已经在 lua51.lib(lua51 .dll) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_replace 已经在 lua51.lib(lua51.d ll) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_insert 已经在 lua51.lib(lua51.dl l) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_remove 已经在 lua51.lib(lua51.dl l) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_settop 已经在 lua51.lib(lua51.dl l) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_gettop 已经在 lua51.lib(lua51.dl l) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_newthread 已经在 lua51.lib(lua51 .dll) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_atpanic 已经在 lua51.lib(lua51.d ll) 中定义 host-modules.lib(lapi.obj) : error LNK2005: lua_xmove 已经在 lua51.lib(lua51.dll ) 中定义 host-modules.lib(ldebug.obj) : error LNK2005: lua_getstack 已经在 lua51.lib(lua5

shixiaoshan2000 commented 2 years ago

你编译host-modules.lib 依赖的是luajit.ib 还是lua5.13. 我是lua5.13, 后面python luajit 2.05, 是不是全要jit

lihaochen910 commented 2 years ago

全用的是jit静态库

shixiaoshan2000 commented 2 years ago

谢谢

shixiaoshan2000 commented 2 years ago

我试了,错误消除, link2005没了,又出现moai-lib-core.lib(MOAIEnvironment.obj) : error LNK2001: 无法解析的外部符号 imp _SHGetFolderPathA host-modules.lib(SDL_windowsevents.obj) : error LNK2001: 无法解析的外部符号 im p_DragQueryFileW host-modules.lib(SDL_windowsevents.obj) : error LNK2001: 无法解析的外部符号 im p_DragFinish host-modules.lib(SDL_windowsevents.obj) : error LNK2001: 无法解析的外部符号 im

你发过来host-modules,用的是sdl2.04,我换成sdl2.09,我试一下看是不是sdl的问题

shixiaoshan2000 commented 2 years ago

要64位编译host-modules.lib,要把lua引用移出,否则error LNK2005,但host-modules.lib(SDL_windowsevents.obj) : error LNK2001: 无法解析的外部符号 __im p_DragQueryFileW,一点头绪没有,与sdl版本无关,要改src,都不知道该那部分,能否给点提示?