lcm-proj / lcm

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

installing lcm-python on windows #492

Open knutur94 opened 4 months ago

knutur94 commented 4 months ago

Hi

I have build and installed LCM using ninja, because that's the only way I got it to work. I have install msys2 and set the glib2 paths accordingly. When trying to build it using visual studio, I only got errors related to "unistd.h".

However, when trying to run '''python setup.install"' I got this error:

'''gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DLCM_PYTHON= -DWIN32=1 -I.. -I..\WinSpecific\include -I..\WinSpecific -IC:\msys64\mingw64\include\glib-2.0\include\glib-2.0 -IC:\msys64\mingw64\include\glib-2.0\lib\glib-2.0\include -IC:\msys64\mingw64\include\python3.11 -c ..\lcm\eventlog.c -o build\temp.mingw_x86_64-3.11..\lcm\eventlog.o /TP gcc.exe: warning: /TP: linker input file unused because linking not done gcc.exe: error: /TP: linker input file not found: No such file or directory error: command 'C:\msys64\mingw64\bin\gcc.exe' failed with exit code 1 '''

I don't quite understand the deal here. It seems to me that I have to use msys2 in order to build it, but when running the python script I have to use the MSVC compiler all of a sudden?

Can you guys help me?