sol 库貌似有问题,但是代码参照着视频写的,不知道其他同学有没有碰到过
报错信息:
PS F:\CmakeLearn\Demo13\Piccolo-0.0.9> cmake -BBuild
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
-- Using Win32 for window creation
-- Build spdlog: 1.9.2
-- Build type: Release
-- Configuring done
-- Generating done
-- Build files have been written to: F:/CmakeLearn/Demo13/Piccolo-0.0.9/build
PS F:\CmakeLearn\Demo13\Piccolo-0.0.9> cmake --build build
Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking File Globs
Checking Build System
PiccoloParser.vcxproj -> F:\CmakeLearn\Demo13\Piccolo-0.0.9\engine\bin\PiccoloParser.exe
*************************************************************
**** [Precompile] BEGIN
*************************************************************
Parsing meta data for target "Piccolo"
Parsing in F:/CmakeLearn/Demo13/Piccolo-0.0.9/engine/source
Parsing project file: F:/CmakeLearn/Demo13/Piccolo-0.0.9/engine/bin/precompile.json
Generating the Source Include file: F:/CmakeLearn/Demo13/Piccolo-0.0.9/build/parser_header.h
Parsing the whole project...
Start generate runtime schemas(39)...
Completed in 736ms
+++ Precompile finished +++
Jolt.vcxproj -> F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\3rdparty\JoltPhysics\Build\Debug\Jolt.lib
glfw.vcxproj -> F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\3rdparty\glfw\src\Debug\glfw3.lib
imgui.vcxproj -> F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\3rdparty\Debug\imgui.lib
json11.vcxproj -> F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\source\runtime\Debug\json11.lib
lua_static.vcxproj -> F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\3rdparty\Debug\lua_static.lib
spdlog.vcxproj -> F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\3rdparty\spdlog\Debug\spdlogd.lib
tinyobjloader.vcxproj -> F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\3rdparty\tinyobjloader\Debug\tinyobjloader.lib
meta_example.cpp
reflection_register.cpp
animation_loader.cpp
mesh_component.cpp
level.cpp
level_debugger.cpp
object.cpp
world_manager.cpp
global_context.cpp
particle_manager.cpp
render_resource_base.cpp
render_system.cpp
asset_manager.cpp
PiccoloRuntime.vcxproj -> F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\source\runtime\Debug\PiccoloRuntime.lib
editor_file_service.cpp
editor_ui.cpp
LINK : warning LNK4098: 默认库“MSVCRT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library [F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\source\editor\PiccoloEditor.vcxproj]
PiccoloRuntime.lib(lua_component.obj) : error LNK2019: 无法解析的外部符号 luaopen_string,函数 "public: void __cdecl sol::state_view::open_libraries<enum sol::lib>(enum sol::lib &&)" (??$open_libraries@W4lib@sol@@@state_
view@sol@@QEAAX$$QEAW4lib@1@@Z) 中引用了该符号 [F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\source\editor\PiccoloEditor.vcxproj]
F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\source\editor\Debug\PiccoloEditor.exe : fatal error LNK1120: 1 个无法解析的外部命令 [F:\CmakeLearn\Demo13\Piccolo-0.0.9\build\engine\source\editor\PiccoloEditor.vcxproj]