Where can I find Protoc.exe from Google protocol buffer? - protocol-buffers

I just downloaded latest Google protocol buffer, but I am unable to find protoc.exe that I need to compile .proto file. All I see are source files. Do I have to build the same using sources? I have protoc.exe from older version 2.6.1. Not sure how I got it though.

Related

gtsam is not able to find Eigen

I use version 4.1.1 of GTSAM. I have version 3.3.4 of Eigen installed.
The error is:
/usr/local/include/gtsam/base/OptionalJacobian.h:22:10: fatal error: Eigen/Dense: No such file or directory
#include <Eigen/Dense>
I tried building GTSAM with the flag -DGTSAM_USE_SYSTEM_EIGEN set to both on and off.
The same error message appears in both cases.
For reference this is a ROS project built with catkin.
Have you seen this PR: https://github.com/borglab/gtsam/pull/1304
If you can upgrade GTSAM to 4.2a8, it uses Eigen's find script's rather than custom ones and should properly find Eigen3, if you have it installed if you require to build from source.
Since you are using ROS, why not go the standard route... Have you declared a dependency on it in your package.xml and installed it with rosdep?
https://github.com/ros/rosdistro/pull/23198/files
Add to your package.xml:
<depend>gtsam</depend>
And, your CMakeLists, you just call
find_package(gtsam REQUIRED)
It is unclear to me, if gtsam is available through binaries, why you would be building it from source.
I was able to get it working by cloning version 4.0.3 of GTSAM into the src folder of my workspace, then building it with the following arguments:
-DGTSAM_USE_SYSTEM_EIGEN=ON -DGTSAM_POSE3_EXPMAP=ON -DGTSAM_ROT3_EXPMAP=ON

missing payoffs.hpp and other .hpp from version

When building the Windows C++ version of quantlib 1.9.1, I get this error of missing payoffs.hpp. When I browse to the directories, I see payoffs.cpp, but not payoffs.hpp:
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'ql/instruments/payoffs.hpp': No such file or directory FittedBondCurve c:\users\administrator\google drive\quantlib-1.9.1\ql\cashflows\conundrumpricer.hpp 27
I also get this for #include <ql/instruments/swap.hpp> [and possibly others]. I am able to build the windows quantlib library ok. Just not the examples.
I just checked the QuantLib 1.9.1 release available from the project downloads (did you get your version from there?) and the files you're looking for are contained in the release zip and tarball. Also, it's pretty weird that you could compile the library without them, so I'd double check if they're there. If they really aren't—well, hard to know how they got displaced; anyway, you can download the release again and replace them. If that doesn't fix the problem (or if they're already there after all), it's possible that you have to fix the include path for the example you're trying to compile. Does it include the QuantLib directory?

Stanford Word Segmenter download lacks source code

The download package for the Stanford Word Segmenter, e.g.
http://nlp.stanford.edu/software/stanford-segmenter-2015-01-29.zip
does not include any source code, though the web page
http://nlp.stanford.edu/software/segmenter.shtml
suggests that it should: "The download is a zipped file consisting of model files, compiled code, and source files". The download does include a build.xml file, but the lack of a src directory means that ant doesn't work (specifically complaining that it can't find the expected src directory).
And src seems to be needed, because without recompilation, attempt to use the demo script results in an "Unsupported major.minor version 52.0" error.
The sources are contained within the jar file called stanford-segmenter-3.5.1-sources.jar. All these sources are also included within the larger CoreNLP package, whose source you can browse on GitHub.
And src seems to be needed, because without recompilation, attempt to use the demo script results in an "Unsupported major.minor version 52.0" error.
Stanford NLP tools version 3.5 and later require Java 8. You need to either update your JDK version or downgrade to the Segmenter 3.4.1 (this is the last version compatible with Java 7).

Protobuf, OSX, ant compilation error

I use a protobuf project compiled with Ant. The proto files are shared via SVN, and they are locally compiled to Java classes using:
ant protobuf
I've recently upgraded OSX Mountain Lion. When one of the proto files has changed, I've got this error when building:
Library not loaded: /usr/local/lib/libprotobuf.6.dylib
How do I get it to work?
It seems that I've copied the entire folder, with the binaries, from my old drive.
The only solution that worked was deleting the repo locally, and checking it out again. After the checkout was complete, I've rebuilt with ant protobuf. It built all the libraries from scratch (~2 minutes), reinstalled the library and compiled the proto files without errors.

qmake gives code 3 when attempting to configure qt for static building

I have the latest Qt SDK. I'm trying to configure it for static building with VS2010 (dynamic linking works fine) I have it at this location: C:\QtSDK\Desktop\Qt\4.8.0\msvc2010
When I go there with the VS2010 command prompt and try to run configure -static, or configure -static I get some output but in the end it fails with
Generating Makefiles...
WARNING: c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\projects.pro:44: Unable to find file
for inclusion src\src.pro
WARNING: c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\projects.pro:46: Unable to find file
for inclusion doc\doc.pri
Reading C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/tools
Reading C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/translations/translations.pro
Reading C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/examples
Reading C:/QtSDK/Desktop/Qt/4.8.0/msvc2010/demos
Qmake failed, return code 3
Please help
I downloaded the source zip file instead of trying to work with what came in the SDK and it's working now. Just download the source from here, unzip it, and run the configure.exe in the unzipped folder. My guess (although I have inspected this) is that there's missing source files or other resources in the SDK version.

Resources