-
Notifications
You must be signed in to change notification settings - Fork 399
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
How to build & install LCM 1.4.0 on windows using cmake? #256
Comments
You need to let cmake know where glib is located. In my case I passed the following flags to cmake:
|
(Note that you can set these in cmake-gui also. You will need to check the 'advanced' check box to see them, however.) Alternatively, if you can run cmake-gui from a command prompt in which you have previously set |
Um... Adding |
I've modified my FindGLib2.cmake to say:
instead of the original Note that this also added "lib" to the front of "${LIB}-2.0". A change like this should be made in the master repo. I can push, but I'm hesitant since I've never even used LCM and, frankly, have not yet been successful at getting it to build. Do you have any advice on the build problems from Visual Studio? Should there be a #ifndef _MSC_VER in front of the include statment for unistd.h in emit_go.c? That might solve one of my 300+ problems. |
Possibly. See also #255. |
SUCCESS!!! There were a number of things that needed to be fixed for this to compile.
with
This appears to have been screwed up in a recent commit on June 16, 2018.
with
Would you suggest a bug report for these? This is supposed to be a stable release, but it does not work when following the instructions for a clean install. |
@mattmunee What compiler are you using? I've been trying with msys2 ming2, MSVC2012 and 2017, and haven't really gotten anywhere for days (using master ( 555be49 ) which seems to contain most of the updates above). With MSVC, it's missing With mingw, I get a bunch of errors from the WinSpecific includes ( |
@kheaactua, |
Hi @mattmunee, instructions would be fantastic! I'd really appreciate that. I didn't actually add anything to my path, but that's because I didn't get to any linking step, I kept getting caught with include issues. I'm also going to check my VS2017 install to see if there is more I can install (it's suppose to have |
@kheaactua This attachment was modified from a larger document. The java and python sections may not be relevant. I just don't recall. (Certainly are if you want to use LCM with java or python.) |
@mattmunee I'm dealing with a more emergency problem right now, but will try those instructions out ASAP. Thanks!! |
@mattmunee I still have the same include issues. I'm going to try setting up a fresh Windows VM, and go through the instructions you sent again line by line. Thanks for the help. |
@kheaactua Looks like assert.h and dirent.h are in C:\msys64\mingw64\x86_64-w64-mingw32\include. It appears that GLib is dependent on those files. Did you follow the steps for GLib? Any indication of problems when you ran CMake? |
Dear all,
My main goal is to be able to use lcm-logplayer , lcm-logplayer-gui, and lcm-spy on windows. However, I couldn't get it to work because I am very new to command prompt & cmake. I have tried the the steps in this thread:
#99
but also couldn't get it to work. I'm stuck on the following error:
error 1
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find GLib2 (missing: GLIB2_GLIB_LIBRARY glib) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) cmake/FindGLib2.cmake:114 (find_package_handle_standard_args) CMakeLists.txt:10 (find_package)
error 2

My cmake-gui doesn't have the variable to let me adjust the path of Glib2
Please help me ~~ Thank you all in advance~
The text was updated successfully, but these errors were encountered: