vancegroup / vr-jugglua

VR JuggLua: A Framework for VR Applications Combining Lua, OpenSceneGraph, and VR Juggler
Boost Software License 1.0
11 stars 12 forks source link

osgLua Generate Operators Build Error on Windows (Comrade Machine) #119

Closed carlsonp closed 11 years ago

carlsonp commented 11 years ago

There appears to be a build issue on Windows 7 (Visual Studio 2008), on Comrade. Zaptos builds OK (right @rpavlik?). Here is the build log:

1>------ Skipped Build: Project: RUN_TESTS, Configuration: RelWithDebInfo Win32 ------
1>Project not selected to build for this solution configuration 
2>------ Skipped Build: Project: doc, Configuration: RelWithDebInfo Win32 ------
2>Project not selected to build for this solution configuration 
3>------ Skipped Build: Project: NightlyMemoryCheck, Configuration: RelWithDebInfo Win32 ------
3>Project not selected to build for this solution configuration 
4>------ Skipped Build: Project: Nightly, Configuration: RelWithDebInfo Win32 ------
4>Project not selected to build for this solution configuration 
5>------ Skipped Build: Project: Experimental, Configuration: RelWithDebInfo Win32 ------
5>Project not selected to build for this solution configuration 
6>------ Skipped Build: Project: Continuous, Configuration: RelWithDebInfo Win32 ------
6>Project not selected to build for this solution configuration 
7>------ Skipped Build: Project: doc_open, Configuration: RelWithDebInfo Win32 ------
7>Project not selected to build for this solution configuration 
8>------ Build started: Project: osgLua-generate-operators, Configuration: RelWithDebInfo Win32 ------
9>------ Skipped Build: Project: Lua stdlib modules, Configuration: RelWithDebInfo Win32 ------
9>Project not selected to build for this solution configuration 
8>Generating math operator metamethods
8>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-interp.exe: operators-template.lua:3: module 'lua-CodeGen.src.CodeGen' not found:
8> no field package.preload['lua-CodeGen.src.CodeGen']
8> no file '.\lua-CodeGen\src\CodeGen.lua'
8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua\lua-CodeGen\src\CodeGen.lua'
8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua\lua-CodeGen\src\CodeGen\init.lua'
8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-CodeGen\src\CodeGen.lua'
8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-CodeGen\src\CodeGen\init.lua'
8> no file 'C:\Program Files (x86)\Lua\5.1\lua\lua-CodeGen\src\CodeGen.luac'
8> no file '.\lua-CodeGen\src\CodeGen.dll'
8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-CodeGen\src\CodeGen.dll'
8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\loadall.dll'
8> no file '.\lua-CodeGen.dll'
8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-CodeGen.dll'
8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\loadall.dll'
8>stack traceback:
8> [C]: in function 'require'
8> operators-template.lua:3: in main chunk
8> [C]: in function 'dofile'
8> ...a/third-party/osgLua/generate/generate-operators.lua:209: in main chunk
8> [C]: ?
8>Project : error PRJ0019: A tool returned an error code from "Generating math operator metamethods"
8>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\third-party\osgLua\generate\osgLua-generate-operators.dir\RelWithDebInfo\BuildLog.htm"
8>osgLua-generate-operators - 1 error(s), 0 warning(s)
10>------ Build started: Project: osgLua Library, Configuration: RelWithDebInfo Win32 ------
10>Compiling...
10>RegisterMathMetamethods.cpp
10>Creating library...
10>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\third-party\osgLua\src\osgLua\osgLua.dir\RelWithDebInfo\BuildLog.htm"
10>osgLua Library - 0 error(s), 0 warning(s)
11>------ Build started: Project: boosttest-tests-OsgPointers, Configuration: RelWithDebInfo Win32 ------
12>------ Build started: Project: vrjlua Standalone Interpreter, Configuration: RelWithDebInfo Win32 ------
13>------ Build started: Project: boosttest-tests-SetPropertyWithOsgType, Configuration: RelWithDebInfo Win32 ------
11>Performing Pre-Link Event...
14>------ Build started: Project: boosttest-tests-OsgNumericConversion, Configuration: RelWithDebInfo Win32 ------
12>Performing Pre-Link Event...
14>Performing Pre-Link Event...
13>Performing Pre-Link Event...
11>Linking...
12>Linking...
13>Linking...
14>Linking...
14>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool __cdecl osgLua::registerMathMetamethods(struct lua_State *,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void __cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State *,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z)
14>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\boosttest-tests-OsgNumericConversion.exe : fatal error LNK1120: 1 unresolved externals
11>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool __cdecl osgLua::registerMathMetamethods(struct lua_State *,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void __cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State *,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z)
11>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\boosttest-tests-OsgPointers.exe : fatal error LNK1120: 1 unresolved externals
14>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\tests\boosttest-tests-OsgNumericConversion.dir\RelWithDebInfo\BuildLog.htm"
13>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool __cdecl osgLua::registerMathMetamethods(struct lua_State *,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void __cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State *,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z)
11>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\tests\boosttest-tests-OsgPointers.dir\RelWithDebInfo\BuildLog.htm"
12>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool __cdecl osgLua::registerMathMetamethods(struct lua_State *,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void __cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State *,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z)
13>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\boosttest-tests-SetPropertyWithOsgType.exe : fatal error LNK1120: 1 unresolved externals
12>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\vrjlua.exe : fatal error LNK1120: 1 unresolved externals
13>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\tests\boosttest-tests-SetPropertyWithOsgType.dir\RelWithDebInfo\BuildLog.htm"
12>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\src\vrjlua.dir\RelWithDebInfo\BuildLog.htm"
13>boosttest-tests-SetPropertyWithOsgType - 2 error(s), 0 warning(s)
12>vrjlua Standalone Interpreter - 2 error(s), 0 warning(s)
14>boosttest-tests-OsgNumericConversion - 2 error(s), 0 warning(s)
11>boosttest-tests-OsgPointers - 2 error(s), 0 warning(s)
15>------ Build started: Project: Nav Testbed Qt, Configuration: RelWithDebInfo Win32 ------
15>Performing Pre-Link Event...
15>Linking...
15>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool __cdecl osgLua::registerMathMetamethods(struct lua_State *,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void __cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State *,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z)
15>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\NavTestbed.exe : fatal error LNK1120: 1 unresolved externals
15>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\src\NavTestbed.dir\RelWithDebInfo\BuildLog.htm"
15>Nav Testbed Qt - 2 error(s), 0 warning(s)
16>------ Skipped Build: Project: PACKAGE, Configuration: RelWithDebInfo Win32 ------
16>Project not selected to build for this solution configuration 
17>------ Skipped Build: Project: INSTALL, Configuration: RelWithDebInfo Win32 ------
17>Project not selected to build for this solution configuration 
========== Build: 1 succeeded, 6 failed, 14 up-to-date, 10 skipped ==========
rpavlik commented 11 years ago

So this is occurring because somehow, despite being run in the source directory, the script can't find the dependency lua-CodeGen to do its templating thing. Really not sure why "no file '.\lua-CodeGen\src\CodeGen.lua'" is shown, since there should be such a file if the submodules are there. (Can you check that?)

On Wed, Jul 31, 2013 at 1:26 PM, Patrick Carlson notifications@github.comwrote:

There appears to be a build issue on Windows 7 (Visual Studio 2008), on Comrade. Zaptos builds OK (right @rpavlik https://github.com/rpavlik?). Here is the build log:

1>------ Skipped Build: Project: RUN_TESTS, Configuration: RelWithDebInfo Win32 ------ 1>Project not selected to build for this solution configuration 2>------ Skipped Build: Project: doc, Configuration: RelWithDebInfo Win32 ------ 2>Project not selected to build for this solution configuration 3>------ Skipped Build: Project: NightlyMemoryCheck, Configuration: RelWithDebInfo Win32 ------ 3>Project not selected to build for this solution configuration 4>------ Skipped Build: Project: Nightly, Configuration: RelWithDebInfo Win32 ------ 4>Project not selected to build for this solution configuration 5>------ Skipped Build: Project: Experimental, Configuration: RelWithDebInfo Win32 ------ 5>Project not selected to build for this solution configuration 6>------ Skipped Build: Project: Continuous, Configuration: RelWithDebInfo Win32 ------ 6>Project not selected to build for this solution configuration 7>------ Skipped Build: Project: doc_open, Configuration: RelWithDebInfo Win32 ------ 7>Project not selected to build for this solution configuration 8>------ Build started: Project: osgLua-generate-operators, Configuration: RelWithDebInfo Win32 ------ 9>------ Skipped Build: Project: Lua stdlib modules, Configuration: RelWithDebInfo Win32 ------ 9>Project not selected to build for this solution configuration 8>Generating math operator metamethods 8>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-interp.exe: operators-template.lua:3: module 'lua-CodeGen.src.CodeGen' not found: 8> no field package.preload['lua-CodeGen.src.CodeGen'] 8> no file '.\lua-CodeGen\src\CodeGen.lua' 8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua\lua-CodeGen\src\CodeGen.lua' 8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua\lua-CodeGen\src\CodeGen\init.lua' 8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-CodeGen\src\CodeGen.lua' 8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-CodeGen\src\CodeGen\init.lua' 8> no file 'C:\Program Files (x86)\Lua\5.1\lua\lua-CodeGen\src\CodeGen.luac' 8> no file '.\lua-CodeGen\src\CodeGen.dll' 8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-CodeGen\src\CodeGen.dll' 8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\loadall.dll' 8> no file '.\lua-CodeGen.dll' 8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\lua-CodeGen.dll' 8> no file 'C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\loadall.dll' 8>stack traceback: 8> [C]: in function 'require' 8> operators-template.lua:3: in main chunk 8> [C]: in function 'dofile' 8> ...a/third-party/osgLua/generate/generate-operators.lua:209: in main chunk 8> [C]: ? 8>Project : error PRJ0019: A tool returned an error code from "Generating math operator metamethods" 8>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\third-party\osgLua\generate\osgLua-generate-operators.dir\RelWithDebInfo\BuildLog.htm" 8>osgLua-generate-operators - 1 error(s), 0 warning(s) 10>------ Build started: Project: osgLua Library, Configuration: RelWithDebInfo Win32 ------ 10>Compiling... 10>RegisterMathMetamethods.cpp 10>Creating library... 10>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\third-party\osgLua\src\osgLua\osgLua.dir\RelWithDebInfo\BuildLog.htm" 10>osgLua Library - 0 error(s), 0 warning(s) 11>------ Build started: Project: boosttest-tests-OsgPointers, Configuration: RelWithDebInfo Win32 ------ 12>------ Build started: Project: vrjlua Standalone Interpreter, Configuration: RelWithDebInfo Win32 ------ 13>------ Build started: Project: boosttest-tests-SetPropertyWithOsgType, Configuration: RelWithDebInfo Win32 ------ 11>Performing Pre-Link Event... 14>------ Build started: Project: boosttest-tests-OsgNumericConversion, Configuration: RelWithDebInfo Win32 ------ 12>Performing Pre-Link Event... 14>Performing Pre-Link Event... 13>Performing Pre-Link Event... 11>Linking... 12>Linking... 13>Linking... 14>Linking... 14>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool cdecl osgLua::registerMathMetamethods(struct lua_State ,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void __cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State ,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z) 14>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\boosttest-tests-OsgNumericConversion.exe : fatal error LNK1120: 1 unresolved externals 11>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool __cdecl osgLua::registerMathMetamethods(struct lua_State *,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State ,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z) 11>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\boosttest-tests-OsgPointers.exe : fatal error LNK1120: 1 unresolved externals 14>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\tests\boosttest-tests-OsgNumericConversion.dir\RelWithDebInfo\BuildLog.htm" 13>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool __cdecl osgLua::registerMathMetamethods(struct lua_State ,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State *,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z) 11>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\tests\boosttest-tests-OsgPointers.dir\RelWithDebInfo\BuildLog.htm" 12>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool cdecl osgLua::registerMathMetamethods(struct lua_State ,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void __cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State ,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z) 13>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\boosttest-tests-SetPropertyWithOsgType.exe : fatal error LNK1120: 1 unresolved externals 12>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\vrjlua.exe : fatal error LNK1120: 1 unresolved externals 13>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\tests\boosttest-tests-SetPropertyWithOsgType.dir\RelWithDebInfo\BuildLog.htm" 12>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\src\vrjlua.dir\RelWithDebInfo\BuildLog.htm" 13>boosttest-tests-SetPropertyWithOsgType - 2 error(s), 0 warning(s) 12>vrjlua Standalone Interpreter - 2 error(s), 0 warning(s) 14>boosttest-tests-OsgNumericConversion - 2 error(s), 0 warning(s) 11>boosttest-tests-OsgPointers - 2 error(s), 0 warning(s) 15>------ Build started: Project: Nav Testbed Qt, Configuration: RelWithDebInfo Win32 ------ 15>Performing Pre-Link Event... 15>Linking... 15>osgLua.lib(BindValue.obj) : error LNK2019: unresolved external symbol "bool __cdecl osgLua::registerMathMetamethods(struct lua_State ,class osgIntrospection::Type const &)" (?registerMathMetamethods@osgLua@@YA_NPAUlua_State@@ABVType@osgIntrospection@@@Z) referenced in function "private: static void __cdecl osgLua::Value::_getOrCreateMetatable(struct lua_State ,class osgIntrospection::Type const &)" (?_getOrCreateMetatable@Value@osgLua@@CAXPAUlua_State@@ABVType@osgIntrospection@@@Z) 15>C:\Users\carlsonp\Desktop\build\vrjugglua-local\bin\RelWithDebInfo\NavTestbed.exe : fatal error LNK1120: 1 unresolved externals 15>Build log was saved at "file://c:\Users\carlsonp\Desktop\build\vrjugglua-local\src\NavTestbed.dir\RelWithDebInfo\BuildLog.htm" 15>Nav Testbed Qt - 2 error(s), 0 warning(s) 16>------ Skipped Build: Project: PACKAGE, Configuration: RelWithDebInfo Win32 ------ 16>Project not selected to build for this solution configuration 17>------ Skipped Build: Project: INSTALL, Configuration: RelWithDebInfo Win32 ------ 17>Project not selected to build for this solution configuration ========== Build: 1 succeeded, 6 failed, 14 up-to-date, 10 skipped ==========

— Reply to this email directly or view it on GitHubhttps://github.com/vancegroup/vr-jugglua/issues/119 .

Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University

rpavlik@iastate.edu http://academic.cleardefinition.com

carlsonp commented 11 years ago

Looks like I needed to do a git submodule update --init --recursive.

I believe this is fixed.