-
Notifications
You must be signed in to change notification settings - Fork 81
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
Building Protobuf on Windows #29
Comments
For some reason, Protobuf's repository recommends building Protobuf in the msys environment. I don't find that necessary (any more). They have a perfectly functional CMake script. I suggest downloading CMake (cmake.org), opening up the cmake-gui, then navigating it to /cmake/ for the source directory (choose any build directory you like). You can select native MinGW bindings. Then click configure and generate. Next, navigate a terminal (just a normal one, not an msys terminal) to your build directory,the one you entered in CMake, and type |
Yeah, on Windows you definitely want to use protobuf's cmake build system as it work way better. We use the CMake scripts for building as part of cura-build and I have not had any issues with it so far. |
Steps on Windows look roughly like this:
|
Hi Ghostkeeper, awhiemstra and sedwards2009, Really appreciation for your reply. I have tried Ghostkeeper and awhiemstra's methods, but it doesn't work for me. Sorry for my stupid.
I really don't know what that mean, so I tried that step again, and this time it produce message: -- The C compiler identification is GNU 4.9.3 So I tried the next step "mingw32-make", but I got an error message: People said it's a bug of MinGW. I am really confused about that. Can you guys give me further information? Ding |
I used the compiler version from http://mingw-w64.org/doku.php/download/mingw-builds, the version more mingw and less msys2. |
Thanks all. CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): How to fix it? Ding |
You've built Protobuf somewhere on your computer, but when building libArcus, it doesn't know where to find the Protobuf binaries and headers for some reason. In the CMake GUI there should be two variables which it indicates are missing (you might have to activate advanced mode): PROTOBUF_LIBRARY and PROTOBUF_INCLUDE_DIR. For PROTOBUF_LIBRARY, look in the "lib" folder of C:\SlicerSoftware\Cura\install. That should contain either a .dll or .a file of Protobuf (also Protobuf-lite and possibly a Debug variant, but ignore those). For PROTOBUF_INCLUDE_DIR, point it to that "include" folder in your install directory. It should contain a folder marked "google", which has a subfolder marked "protobuf". |
Hi Ghostkeeper, Thanks for your information. I've reinstalled MSYS2, MinGW-64, and some other libs. Finally I've built the protobuf, the protobuf's libs and includes showed in "C:\msys32\usr\local". Then, I try to built libArcs, but when I use command "cmake ..", I got the following error information. $ cmake .. I've searched your another thread about "sip.h". Your suggestion is to install sip package. But when I tried to use command "pacman -S sip-dev", I get nothing. I also tried I am new to CMake and MinGW. Ding |
Hi Guys,
I am using the tutorial "Installing Protobuf on Windows C++" to build Protobuf using MinGW. But in Step "$ ./configure", I find "stdint.h" and "inttypes.h" are not found. At the next step "$ mingw32-make", it reports error: "./google/protobuf/stubs/port.h:44:20: stdint.h: No such file or directory."
Does anybody have the similar problem? (I am new to MinGW, should I copy and cover C:\MinGW\include to C:\MinGW\C:\MinGW\msys\1.0\include ?)
My protobuf locates at C:\MinGW\msys\1.0\local\protobuf-master.
Thanks in advance.
Ding
The text was updated successfully, but these errors were encountered: