Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libjavet-node-windows-x86_64.v.3.1.8.lib - rebuilding problems!. #404

Open
AroliSG opened this issue Oct 8, 2024 · 2 comments
Open

libjavet-node-windows-x86_64.v.3.1.8.lib - rebuilding problems!. #404

AroliSG opened this issue Oct 8, 2024 · 2 comments

Comments

@AroliSG
Copy link

AroliSG commented Oct 8, 2024

hey hi.
Binaries seems like the lastest binary is v1.1.2, maybe this may be the problem?

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.12.6 found at "C:\Python312\python.exe"

gyp info find VS using VS2022 (17.11.35312.102) found at:
gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python312\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Users\\aroly\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Projects\\vcmp\\Grand Theft Auto America City\\node_modules\\better-sqlite3\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\aroly\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\aroly\\AppData\\Local\\node-gyp\\Cache\\18.17.1\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\aroly\\AppData\\Local\\node-gyp\\Cache\\18.17.1',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\aroly\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\aroly\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\18.17.1\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Projects\\vcmp\\Grand Theft Auto America City\\node_modules\\better-sqlite3',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Projects\\vcmp\\Grand Theft Auto America City\\node_modules\\better-sqlite3\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows
-------------------------------------------------------------------------------

  Started : Tuesday, October 8, 2024 2:09:06 AM
   Source : C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\deps\
     Dest : C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\deps\

    Files : *.*

  Options : *.* /S /E /DCOPY:DA /COPY:DAT /R:1000000 /W:30

------------------------------------------------------------------------------

                           6    C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\deps\
          *EXTRA File              12098        locate_sqlite3.vcxproj
          *EXTRA File               4628        locate_sqlite3.vcxproj.filters
          *EXTRA File               1456        sqlite3.sln
          *EXTRA File              15045        sqlite3.vcxproj
          *EXTRA File               2964        sqlite3.vcxproj.filters
100%        New File                1584        common.gypi
100%        New File                 897        copy.js
100%        New File                1128        defines.gypi
100%        New File                3872        download.sh
100%        New File                2543        sqlite3.gyp
100%        New File                 588        test_extension.c
          New Dir          1    C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\deps\patches\
100%        New File                 597        1208.patch
          New Dir          3    C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\deps\sqlite3\
100%        New File               8.6 m        sqlite3.c
100%        New File              644069        sqlite3.h
100%        New File               38149        sqlite3ext.h

------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         3         2         1         0         0         0
   Files :        10        10         0         0         0         5
   Bytes :    9.33 m    9.33 m         0         0         0    35.3 k
   Times :   0:00:00   0:00:00                       0:00:00   0:00:00


   Speed :           752,603,384 Bytes/sec.
   Speed :            43,064.313 MegaBytes/min.
   Ended : Tuesday, October 8, 2024 2:09:06 AM

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build\\binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]

  copy_builtin_sqlite3
  sqlite3.c
  win_delay_load_hook.cc
  sqlite3.vcxproj -> C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\Release\\sqlite3.lib
cl : command line  warning D9025: overriding '/std:c++17' with '/std:c++20' [C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
  better_sqlite3.cpp
cl : command line  warning D9025: overriding '/std:c++17' with '/std:c++20' [C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
  win_delay_load_hook.cc
     Creating library C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\Release\better_sqlite3.lib and object C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-
  sqlite3\build\Release\better_sqlite3.exp
better_sqlite3.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl v8::internal::CanHaveInternalField(int)" (__imp_?CanHaveInternalField@internal@v8@@YA_NH@Z) [C:\Projects\vcmp
\Grand Theft Auto America City\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
better_sqlite3.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class v8::Local<class v8::FunctionTemplate> __cdecl v8::FunctionTemplate::New(class v8::Isolate *,void (__c
decl*)(class v8::FunctionCallbackInfo<class v8::Value> const &),class v8::Local<class v8::Value>,class v8::Local<class v8::Signature>,int,enum v8::ConstructorBehavior,enum v8::SideEffectType,class v8::CFuncti
on const *,unsigned short,unsigned short,unsigned short)" (__imp_?New@FunctionTemplate@v8@@SA?AV?$Local@VFunctionTemplate@v8@@@2@PEAVIsolate@2@P6AXAEBV?$FunctionCallbackInfo@VValue@v8@@@2@@ZV?$Local@VValue@v8
@@@2@V?$Local@VSignature@v8@@@2@HW4ConstructorBehavior@2@W4SideEffectType@2@PEBVCFunction@2@GGG@Z) [C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
    Hint on symbols that are defined and could potentially match:
      "__declspec(dllimport) public: static class v8::Local<class v8::Array> __cdecl v8::Array::New(class v8::Isolate *,int)" (__imp_?New@Array@v8@@SA?AV?$Local@VArray@v8@@@2@PEAVIsolate@2@H@Z)
      "__declspec(dllimport) public: static class v8::Local<class v8::BigInt> __cdecl v8::BigInt::New(class v8::Isolate *,__int64)" (__imp_?New@BigInt@v8@@SA?AV?$Local@VBigInt@v8@@@2@PEAVIsolate@2@_J@Z)
      "__declspec(dllimport) public: static class v8::Local<class v8::Boolean> __cdecl v8::Boolean::New(class v8::Isolate *,bool)" (__imp_?New@Boolean@v8@@SA?AV?$Local@VBoolean@v8@@@2@PEAVIsolate@2@_N@Z)
      "__declspec(dllimport) class v8::MaybeLocal<class v8::Object> __cdecl node::Buffer::New(class v8::Isolate *,char *,unsigned __int64,void (__cdecl*)(char *,void *),void *)" (__imp_?New@Buffer@node@@YA?AV
  ?$MaybeLocal@VObject@v8@@@v8@@PEAVIsolate@4@PEAD_KP6AX1PEAX@Z3@Z)
      "__declspec(dllimport) public: static class v8::Local<class v8::External> __cdecl v8::External::New(class v8::Isolate *,void *)" (__imp_?New@External@v8@@SA?AV?$Local@VExternal@v8@@@2@PEAVIsolate@2@PEAX
  @Z)
      "__declspec(dllimport) public: static class v8::Local<class v8::Integer> __cdecl v8::Integer::New(class v8::Isolate *,int)" (__imp_?New@Integer@v8@@SA?AV?$Local@VInteger@v8@@@2@PEAVIsolate@2@H@Z)
      "__declspec(dllimport) public: static class v8::Local<class v8::Number> __cdecl v8::Number::New(class v8::Isolate *,double)" (__imp_?New@Number@v8@@SA?AV?$Local@VNumber@v8@@@2@PEAVIsolate@2@N@Z)
      "__declspec(dllimport) public: static class v8::Local<class v8::Object> __cdecl v8::Object::New(class v8::Isolate *)" (__imp_?New@Object@v8@@SA?AV?$Local@VObject@v8@@@2@PEAVIsolate@2@@Z)
      "__declspec(dllimport) public: static class v8::Local<class v8::Signature> __cdecl v8::Signature::New(class v8::Isolate *,class v8::Local<class v8::FunctionTemplate>)" (__imp_?New@Signature@v8@@SA?AV?$L
  ocal@VSignature@v8@@@2@PEAVIsolate@2@V?$Local@VFunctionTemplate@v8@@@2@@Z)
better_sqlite3.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) unsigned __int64 * __cdecl v8::api_internal::GlobalizeReference(class v8::internal::Isolate *,unsigned __int64 *)" (__imp_
?GlobalizeReference@api_internal@v8@@YAPEA_KPEAVIsolate@internal@2@PEA_K@Z) [C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
better_sqlite3.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl v8::api_internal::FromJustIsNothing(void)" (__imp_?FromJustIsNothing@api_internal@v8@@YAXXZ) [C:\Projects\vcm
p\Grand Theft Auto America City\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
better_sqlite3.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void * __cdecl v8::api_internal::ClearWeak(unsigned __int64 *)" (__imp_?ClearWeak@api_internal@v8@@YAPEAXPEA_K@Z) [C:\Proj
ects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
better_sqlite3.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl v8::api_internal::MakeWeak(unsigned __int64 *,void *,void (__cdecl*)(class v8::WeakCallbackInfo<void> const &
),enum v8::WeakCallbackType)" (__imp_?MakeWeak@api_internal@v8@@YAXPEA_KPEAXP6AXAEBV?$WeakCallbackInfo@X@2@@ZW4WeakCallbackType@2@@Z) [C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite
3\build\better_sqlite3.vcxproj]
better_sqlite3.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl v8::api_internal::DisposeGlobal(unsigned __int64 *)" (__imp_?DisposeGlobal@api_internal@v8@@YAXPEA_K@Z) [C:\P
rojects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
better_sqlite3.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl v8::api_internal::ToLocalEmpty(void)" (__imp_?ToLocalEmpty@api_internal@v8@@YAXXZ) [C:\Projects\vcmp\Grand Th
eft Auto America City\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
better_sqlite3.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl v8::ObjectTemplate::SetAccessor(class v8::Local<class v8::Name>,void (__cdecl*)(class v8::Local<class
 v8::Name>,class v8::PropertyCallbackInfo<class v8::Value> const &),void (__cdecl*)(class v8::Local<class v8::Name>,class v8::Local<class v8::Value>,class v8::PropertyCallbackInfo<void> const &),class v8::Loc
al<class v8::Value>,enum v8::AccessControl,enum v8::PropertyAttribute,enum v8::SideEffectType,enum v8::SideEffectType)" (__imp_?SetAccessor@ObjectTemplate@v8@@QEAAXV?$Local@VName@v8@@@2@P6AX0AEBV?$PropertyCal
lbackInfo@VValue@v8@@@2@@ZP6AX0V?$Local@VValue@v8@@@2@AEBV?$PropertyCallbackInfo@X@2@@Z3W4AccessControl@2@W4PropertyAttribute@2@W4SideEffectType@2@8@Z) [C:\Projects\vcmp\Grand Theft Auto America City\node_mod
ules\better-sqlite3\build\better_sqlite3.vcxproj]
C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\Release\better_sqlite3.node : fatal error LNK1120: 9 unresolved externals [C:\Projects\vcmp\Grand Theft Auto America City\node_
modules\better-sqlite3\build\better_sqlite3.vcxproj]
  test_extension.c
  win_delay_load_hook.cc
     Creating library C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\Release\test_extension.lib and object C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-
  sqlite3\build\Release\test_extension.exp
  Generating code
  Previous IPDB not found, fall back to full compilation.
  All 3 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  test_extension.vcxproj -> C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\Release\\test_extension.node
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\aroly\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:216:23)
gyp ERR! stack at ChildProcess.emit (node:events:514:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.22631
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\aroly\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--release"
gyp ERR! cwd C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3
gyp ERR! node -v v18.17.1
gyp ERR! node-gyp -v v10.2.0
gyp ERR! not ok
C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3>

rebuild cmds

@echo off
SET NODE_LIB_FILE="C:\Projects\vcmp\Grand Theft Auto America City\libjavet-x86_64.v.1.1.2\libjavet-node-windows-x86_64.v.3.1.8.lib"
cd %NODE_MODULE_ROOT%
call node-gyp clean
call node-gyp configure --module_name=%NODE_MODULE_NAME% --module_path=%NODE_MODULE_PATH% --node_lib_file=%NODE_LIB_FILE%
call robocopy /e deps build/deps
call node-gyp build --release
@echo off
SET NODE_MODULE_NAME=better-sqlite3
SET NODE_MODULE_PATH="C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3\build\Release"
SET NODE_MODULE_ROOT="C:\Projects\vcmp\Grand Theft Auto America City\node_modules\better-sqlite3"
call release.cmd

I'm using lastest javet version 3.1.8, so please let me know if im doing something wrong thanks for your time

@AroliSG
Copy link
Author

AroliSG commented Oct 8, 2024

If you need anything, else let me know!. and also PPEE is crashing in windows 11 for some reason (not an alternative).

@caoccao
Copy link
Owner

caoccao commented Oct 8, 2024

sqlite is built into Node.js v22. I suggest you wait for Javet v4 with Node.js v22.

@AroliSG AroliSG changed the title libjavet-v8-windows-x86_64.v.3.1.8.lib - rebuilding problems!. libjavet-node-windows-x86_64.v.3.1.8.lib - rebuilding problems!. Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants