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

installing lcm-python on windows #492

Open
knutur94 opened this issue Feb 19, 2024 · 0 comments
Open

installing lcm-python on windows #492

knutur94 opened this issue Feb 19, 2024 · 0 comments

Comments

@knutur94
Copy link

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?

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