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

windows环境下运行npm run build:bridge:xxx报错 #214

Open
yifei8 opened this issue Apr 19, 2022 · 2 comments
Open

windows环境下运行npm run build:bridge:xxx报错 #214

yifei8 opened this issue Apr 19, 2022 · 2 comments

Comments

@yifei8
Copy link

yifei8 commented Apr 19, 2022

$ npm run build:bridge:android

@ build:bridge:android D:\kraken
node scripts/build_android_so

code_generator@1.0.0 build D:\kraken\bridge\scripts\code_generator
tsc

-- Configuring done
CMake Error at CMakeLists.txt:297 (add_library):
Cannot find source file:

polyfill/dist/polyfill.cc

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at CMakeLists.txt:297 (add_library):
No SOURCES given to target: kraken

CMake Error at CMakeLists.txt:298 (add_library):
No SOURCES given to target: kraken_static

CMake Generate step failed. Build files cannot be regenerated correctly.
D:\kraken\node_modules\async-done\index.js:18
throw err;
^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
uid: 2,
name: 'build-android-kraken-lib',
branch: false,
error: Error: Command failed: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=D:\Android\Sdk\ndk\21.4.7075529\build\cmake\android.toolchain.cmake -DANDROID_NDK=D:\Android\Sdk\ndk\21.4.7075529 -DIS_ANDROID=TRUE -DANDROID_ABI="arm64-v8a" -DENABLE_PROFILE=TRUE -DANDROID_PLATFORM="android-18" -DANDROID_STL=c++_shared -G "Ninja" -B D:\kraken\bridge\cmake-build-android-arm64-v8a -S D:\kraken\bridge
at checkExecSyncError (child_process.js:635:11)
at execSync (child_process.js:671:15)
at D:\kraken\scripts\tasks.js:669:5
at Array.forEach ()
at D:\kraken\scripts\tasks.js:665:9
at build-android-kraken-lib (D:\kraken\node_modules\undertaker\lib\set-task.js:13:15)
at bound (domain.js:427:14)
at runBound (domain.js:440:12)
at asyncRunner (D:\kraken\node_modules\async-done\index.js:55:18)
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 16036,
stdout: null,
stderr: null,
domainThrown: true
},
duration: [ 6, 259668771 ],
time: 1650367839812
})
at Gulp.emit (events.js:303:17)
at Gulp.EventEmitter.emit (domain.js:483:12)
at Object.error (D:\kraken\node_modules\undertaker\lib\helpers\createExtensions.js:61:10)
at handler (D:\kraken\node_modules\now-and-later\lib\mapSeries.js:47:14)
at f (D:\kraken\node_modules\once\once.js:25:25)
at f (D:\kraken\node_modules\once\once.js:25:25)
at tryCatch (D:\kraken\node_modules\async-done\index.js:24:15)
at done (D:\kraken\node_modules\async-done\index.js:40:12)
at Domain.onError (D:\kraken\node_modules\async-done\index.js:51:5)
at Object.onceWrapper (events.js:421:26) {
code: 'ERR_UNHANDLED_ERROR',
context: {
uid: 2,
name: 'build-android-kraken-lib',
branch: false,
error: Error: Command failed: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=D:\Android\Sdk\ndk\21.4.7075529\build\cmake\android.toolchain.cmake -DANDROID_NDK=D:\Android\Sdk\ndk\21.4.7075529 -DIS_ANDROID=TRUE -DANDROID_ABI="arm64-v8a" -DENABLE_PROFILE=TRUE -DANDROID_PLATFORM="android-18" -DANDROID_STL=c++_shared -G "Ninja" -B D:\kraken\bridge\cmake-build-android-arm64-v8a -S D:\kraken\bridge
at checkExecSyncError (child_process.js:635:11)
at execSync (child_process.js:671:15)
at D:\kraken\scripts\tasks.js:669:5
at Array.forEach ()
at D:\kraken\scripts\tasks.js:665:9
at build-android-kraken-lib (D:\kraken\node_modules\undertaker\lib\set-task.js:13:15)
at bound (domain.js:427:14)
at runBound (domain.js:440:12)
at asyncRunner (D:\kraken\node_modules\async-done\index.js:55:18)
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 16036,
stdout: null,
stderr: null,
domainThrown: true
},
duration: [ 6, 259668771 ],
time: 1650367839812
}
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ build:bridge:android: node scripts/build_android_so
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build:bridge:android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\11095194\AppData\Roaming\npm-cache_logs\2022-04-19T11_30_39_831Z-debug.log

@yifei8
Copy link
Author

yifei8 commented Apr 19, 2022

想将kraken跑起来,按咱们的文档来跑不起来,谁给解决一下。https://openkraken.com/guide/contribute/environment

@yifei8
Copy link
Author

yifei8 commented Apr 20, 2022

目前发现是在windows10下有问题

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

1 participant