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

mac上编译代码时报错:error: implicit declaration of function 'put_scanline_someplace' is invalid in C99 [-Werror,-Wimplicit-function-declaration] #7

Open
lidisheng opened this issue Mar 29, 2022 · 0 comments

Comments

@lidisheng
Copy link

gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@8.17.0 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CC(target) Release/obj.target/libjpeg-turbo/gyp/third-party/libjpeg-turbo/example.o
../gyp/third-party/libjpeg-turbo/example.c:380:5: error: implicit declaration of function 'put_scanline_someplace' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
put_scanline_someplace(buffer[0], row_stride);
^
1 error generated.
make: *** [Release/obj.target/libjpeg-turbo/gyp/third-party/libjpeg-turbo/example.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/lds/.nvm/versions/node/v8.17.0/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 21.4.0
gyp ERR! command "/Users/lds/.nvm/versions/node/v8.17.0/bin/node" "/Users/lds/.nvm/versions/node/v8.17.0/bin/node-gyp" "build"
gyp ERR! cwd /Users/lds/Desktop/images-lds
gyp ERR! node -v v8.17.0
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok

@lidisheng lidisheng changed the title error: implicit declaration of function 'put_scanline_someplace' is invalid in C99 [-Werror,-Wimplicit-function-declaration] mac上编译代码时报错:error: implicit declaration of function 'put_scanline_someplace' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Mar 29, 2022
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