electron编译sqlite3遇到的一些问题

前端开发 2466
阅读量
2018-03-15

electron编译sqlite3遇到的一些问题

warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]

ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3150000/sqlite3.o
  LIBTOOL-STATIC Release/sqlite3.a
  CXX(target) Release/obj.target/node_sqlite3/src/database.o
../src/database.cc:133:18: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]
    info.This()->ForceSet(Nan::New("filename").ToLocalChecked(), info[0].As<String>(), ReadOnly);

v8-debug does not work with Node 7, try downgrading to 6.

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

  1. 安装xcode
  2. 运行以下命令
    sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
    
    #前端