gloriousknight commented on issue #354:
URL:
https://github.com/apache/rocketmq-client-cpp/issues/354#issuecomment-871177794
@ifplusor hi, I build successfully on M1! Thanks for ur help ❤️ ! The error
I mentioned before is because the LIBRARY path is wrong. Here is my cmake
command.
`sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
-DLibevent_USE_STATIC_LIBS=OFF -DJSONCPP_USE_STATIC_LIBS=OFF \
-DBUILD_ROCKETMQ_STATIC=ON -DBUILD_ROCKETMQ_SHARED=ON \
-DRUN_UNIT_TEST=OFF
-DLIBEVENT_EVENT_CONFIG_DIR=/opt/homebrew/Cellar/libevent/2.1.12/include
-DLIBEVENT_EVENT_LIBRARY=/opt/homebrew/Cellar/libevent/2.1.12/lib/libevent-2.1.7.dylib
-DLIBEVENT_CORE_LIBRARY=/opt/homebrew/Cellar/libevent/2.1.12/lib/libevent_core-2.1.7.dylib
-DLIBEVENT_EXTRA_LIBRARY=/opt/homebrew/Cellar/libevent/2.1.12/lib/libevent_extra-2.1.7.dylib
-DLIBEVENT_PTHREADS_LIBRARY=/opt/homebrew/Cellar/libevent/2.1.12/lib/libevent_pthreads-2.1.7.dylib
-DJSONCPP_JSON_DIR=/opt/homebrew/Cellar/jsoncpp/1.9.4_1/include/
-DJSONCPP_JSONCPP_LIBRARY=/opt/homebrew/Cellar/jsoncpp/1.9.4_1/lib/libjsoncpp.24.dylib
..`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]