... | ... | @@ -58,30 +58,21 @@ We have two options: |
|
|
* Source code: *C:/Users/legoc/workspace/cameo/cameo-api-cpp*
|
|
|
* Build: *C:/Users/legoc/workspace/cameo/cameo-api-cpp/build*
|
|
|
* Options:
|
|
|
* ZMQ_ROOT *C:/Users/legoc/Documents/zmq/zeromq-4.3.3*
|
|
|
* Rapidjson_ROOT *C:/Users/legoc/Documents/zmq/rapidjson-1.1.0*
|
|
|
* Configure, Generate, Open Project (launches Visual Studio 19)
|
|
|
* _ZeroMQ_ROOT C:\Users\legoc\Documents\zmq\zeromq-4.3.3
|
|
|
* ZeroMQ_LIBRARY_RELEASE C:\Users\legoc\Documents\zmq\zeromq-4.3.3\lib\libzmq-v142-mt-4_3_3.lib
|
|
|
* ZeroMQ_LIBRARY_DEBUG C:\Users\legoc\Documents\zmq\zeromq-4.3.3\lib\libzmq-v142-mt-gd-4_3_3.lib
|
|
|
|
|
|
* File generated: *C:\Users\legoc\workspace\cameo\cameo-api-cpp\build\Release\cameo.lib*
|
|
|
* Configure, Generate, Open Project (launches Visual Studio 19)
|
|
|
* Generate cameo-api-cpp-static
|
|
|
|
|
|
Problems
|
|
|
* The rapidjson include directory is not added to the include paths
|
|
|
* The zmq include directory is not added to the include paths
|
|
|
* The file *zmq.hpp* does not exist in *zeromq-4.3.3* (it is in the Linux package): we copy it from Linux in *zmq/* and add *zmq/* to the include paths
|
|
|
* *zmq.lib* added in Entry of the linker but should be *libzmq-v142-mt-4_3_3.lib*
|
|
|
* We can imagine to write our own install script that copies the *lib* files
|
|
|
|
|
|
Corrections
|
|
|
* Added _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to avoid many warnings (not necessary)
|
|
|
* Added the include paths: *C:\Users\legoc\Documents\zmq;C:\Users\legoc\Documents\zmq\rapidjson-1.1.0\include*
|
|
|
* Replace *zmq.lib* by *libzmq-v142-mt-4_3_3.lib*
|
|
|
* Generate a static library (otherwise we must declare what is exported)
|
|
|
General/Configuration Type: static lib
|
|
|
Advanced Parameters/Extension of Target: .lib
|
|
|
|
|
|
* Added the include paths to cameo-api-cpp-obj: C:\Users\legoc\Documents\zmq;C:\Users\legoc\Documents\zmq\zeromq-4.3.3\include
|
|
|
Notes
|
|
|
* Need to create *C:/Users/legoc/Documents/zmq/zeromq-4.3.3/lib* and copy the libs inside
|
|
|
* Need to copy include/*.h to C:\Users\legoc\Documents\zmq\cameo-include\cameo because the test sources require to include *cameo/cameo.h*. It should be better to add the directory *cameo* in the include source directory to avoid this manual copy.
|
|
|
* It would be better to add an optional property to specify where is the *zmq.hpp* file that could be downloaded or cloned
|
|
|
* It should be possible to use **nmake** to compile in command-line
|
|
|
|
... | ... | @@ -91,10 +82,9 @@ The file *testscpp.props* has been modified to take into account the new referen |
|
|
|
|
|
```
|
|
|
$ set PATH=C:\Users\legoc\Documents\zmq\bin\4.3.3;%PATH%
|
|
|
$ java -jar cameo-tests-jeromq\target\cameo-tests-jeromq-full.jar jeromq-win-api-config.xml cpp 1
|
|
|
```
|
|
|
|
|
|
We used jeromq to simplify but it is possible to use the cameo server with *zmq* and *jzmq* 4.0.5 by using the properties of the application to configure the path of zeromq 4.3.3.
|
|
|
The tests were not run yet.
|
|
|
|
|
|
### Protocol Buffers
|
|
|
|
... | ... | |