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

install Exception On Window10 #21

Open
GODMA opened this issue Feb 20, 2021 · 0 comments
Open

install Exception On Window10 #21

GODMA opened this issue Feb 20, 2021 · 0 comments

Comments

@GODMA
Copy link

GODMA commented Feb 20, 2021

What Happens?

install error,I wonder is rocketmq-client-cpp.dll wrong?

Minimum Showcase (Required)

node-gyp@7.1.2
node@10.18.0 | win32 | x64
python 2.7.15
npm 7.5.4

build/rocketmq.vcxproj's dependency ok~

<Link>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;&quot;C:\...\node.lib&quot;;D:\...\rocketmq-client-nodejs-master\deps\lib\rocketmq-client-cpp.lib</AdditionalDependencies>
</Link>

How to Reproduce

producer.obj : error LNK2001: 无法解析的外部符号 SetMessageBody
> [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetProducerSendMsgTimeout [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetProducerLogLevel [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SendMessageSync [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetMessageKeys [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetProducerMaxMessageSize [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetProducerLogFileNumAndSize [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 DestroyProducer [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetProducerNameServerAddress [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 CreateProducer [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetProducerCompressLevel [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 DestroyMessage [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetByteMessageBody [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 StartProducer [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 ShutdownProducer [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetMessageTags [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetProducerInstanceName [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 CreateMessage [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetProducerGroupName [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
producer.obj : error LNK2001: 无法解析的外部符号 SetProducerSessionCredentials [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
push_consumer.obj : error LNK2001: 无法解析的外部符号 SetPushConsumerNameServerAddress [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
push_consumer.obj : error LNK2001: 无法解析的外部符号 SetPushConsumerMessageBatchMaxSize [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
push_consumer.obj : error LNK2001: 无法解析的外部符号 SetPushConsumerSessionCredentials [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
push_consumer.obj : error LNK2001: 无法解析的外部符号 RegisterMessageCallback [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
push_consumer.obj : error LNK2001: 无法解析的外部符号 Subscribe [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
push_consumer.obj : error LNK2001: 无法解析的外部符号 GetMessageTags [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
push_consumer.obj : error LNK2001: 无法解析的外部符号 DestroyPushConsumer [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
push_consumer.obj : error LNK2001: 无法解析的外部符号 GetMessageId [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vcxproj]
cketmq-client-nodejs-master\build\rocketmq.vcxproj]
D:\worksplace\rocketmq-client-nodejs-master\build\Release\rocketmq.node : fatal error LNK1120: 38 个无法解析的外部命令 [D:\worksplace\rocketmq-client-nodejs-master\build\rocketmq.vq.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\Admin\AppData\Roaming\npm\node_modules\cnpm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.19042

Steps to reproduce the behavior:
-->cnpm install
Expected behavior
install success

Context

  • Node Version: 10.18.0
  • SDK Version: 1.0.0-rc1
  • Platform: window10
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