lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
944 stars 385 forks source link

How to install lcm1.5.0 on windows 11 #485

Open JackieesLiao opened 6 months ago

JackieesLiao commented 6 months ago

How should I install LCM1.5.0 on win11? The environments I already have are CMake, msys2, and VS2022, but I can’t compile through CMake. There are a lot of errors in VS2022. What should I do? Does anyone have a windows vs installation tutorial? help

nosracd commented 6 months ago

This README is the closest thing there is to a tutorial. It would also be helpful if you could post the errors you are encountering (as well as your output from running cmake).

JackieesLiao commented 6 months ago

For the previous question, I added these lines to the cmake GUI D:/msys2/mingw64/lib/glib-2.0/include D:/msys2/mingw64/include/glib-2.0 D:/msys2/mingw64/lib/libglib-2.0.dll.a D:/msys2/mingw64/bin/libglib-2.0-0.dll, This way the configuration and generation can be successful.

JackieesLiao commented 6 months ago

But I created an LCM project in VS2022 and imported the corresponding lcm.lib and lcm header files. It can be compiled normally, but the listener cannot receive data and only bind no error is displayed. What should I do?

However, I created an LCM project in VS2022 and imported the corresponding lcm.lib and lcm header files. It can be compiled normally, but the listener cannot receive data and only bind no error is displayed. What should I do? Click subscribe and see that lcm-cpp-impl.hpp reports a bunch of undefined identifiers such as "ReceiveBuffer" Wrong, but why can I compile and pass? e8d3aa4cf2cc)

JackieesLiao commented 6 months ago

屏幕截图 2024-01-04 102231

knutur94 commented 4 months ago

What do you do in order to install it on VS2022?