安装MindConnect_Library_V3.1.2-2.0

下载MindConnect_Library_V3.1.2-2.0包:

https://support.industry.siemens.com/cs/document/109755348/mindconnect-library-3-1-for-mindsphere-3-0-?dti=0&lc=en-WW

先到这里下载:  MindConnect_Library_V3.1.2.0.zip (492,5 KB)

解压后有个README .md 文件 有详细的安装步骤。

要素有三个:

1、cmake (3.5.2 and newer)

2、curl-7.52.1

3、openssl-1.0.2k

以上三个版本是官方验证通过了的。

我自己的版本目前是cmake 3.8.0  CURL-7.52.1 openssl-1.0.2p  经验证也是OK的

编译 MCL:

新建build_mcl 脚本文件,添加如下内容。

#!/bin/bash
 #OPENSSL_DIR="/users/eric/desktop/ericAgent/build/openssl"
 OPENSSL_DIR="/usr/local/Cellar/openssl/1.0.2p"
 CURL_DIR="/user/eric/desktop/ericAgent/build/curl"
 MCL_SOURCE_DIR="/users/eric/desktop/ericAgent/MCL_Core"
 MCL_BUILD_DIR="/users/eric/desktop/ericAgent/build/mcl"
 if [ -d ${MCL_BUILD_DIR} ]; then
 sudo rm -rf ${MCL_BUILD_DIR}
 fi
 sudo mkdir ${MCL_BUILD_DIR}
 sudo chmod 777 ${MCL_BUILD_DIR}
 cd ${MCL_BUILD_DIR}
 cmake -DCMAKE_PREFIX_PATH="${OPENSSL_DIR};${CURL_DIR}" -DCMAKE_BUILD_TYPE=Release -DMCL_STATICLIB=OFF -DMCL_USE_LIBCURL=ON -DMCL_USE_OPENSSL=ON -DMCL_CREATE_DOXYGEN=OFF -DMCL_TESTING=OFF -DMCL_LOG_UTIL_LEVEL=MCL_LOG_UTIL_LEVEL_NONE ${MCL_SOURCE_DIR}
 cmake --build . --target mc

OPENSSL_DIR openssl 的安装目录

MCL_SOURCE_DIR 是MindConnect_Library_V3.1.2-2.0的解压目录

CURL_DIR CURL库的安装目录

MCL_BUILD_DIR 是最终编译好的MCL目录。最终的结果都在这里面

加执行权限:

# sudo chmod +x build_mcl

# ./build_mcl

mac下  libmc.dylib

Linux下 libmc.so

 

参考:https://developer.mindsphere.io/resources/mindconnect-lib/resources-mclib-getting-started.html

12 thoughts on “安装MindConnect_Library_V3.1.2-2.0

  1. eric

    [{“AlarmTime”:”2016-01-01T01:00:01.000Z”,”VarName”:”开关机”,”OperatorName”:””,”VarComment”:”FU-180#1″,”NewValue”:1,”OldValue”:0,”TimeStamp”:”2016-01-01T01:00:01.000Z”},{“AlarmTime”:”2019-04-24T05:49:53.000Z”,”VarName”:”开关机”,”OperatorName”:””,”VarComment”:”FU-180#2″,”NewValue”:0,”OldValue”:1,”TimeStamp”:”2016-01-01T01:00:02.000Z”}]

    Reply
  2. valentino shoes

    Thanks for all your valuable efforts on this web page. My mother take interest in getting into internet research and it is easy to see why. We all notice all concerning the compelling tactic you provide very helpful techniques by means of the web blog and in addition foster response from others about this idea so our own princess has always been discovering a whole lot. Enjoy the remaining portion of the new year. You have been carrying out a powerful job.

    Reply
  3. yeezy boost

    Oh my goodness! an incredible article dude. Thanks Nevertheless I’m experiencing situation with ur rss . Don抰 know why Unable to subscribe to it. Is there anybody getting identical rss problem? Anybody who is aware of kindly respond. Thnkx

    Reply
  4. louboutin

    I’m just commenting to make you know what a perfect experience my friend’s daughter encountered reading the blog. She even learned a good number of things, not to mention what it is like to have an excellent giving nature to have folks without problems comprehend some grueling topics. You truly did more than her expected results. Thanks for supplying the important, trustworthy, edifying not to mention easy tips about this topic to Mary.

    Reply
  5. curry 5 shoes

    I simply wanted to thank you very much once again. I’m not certain what I could possibly have accomplished without these ideas shared by you over such topic. It actually was a very troublesome concern for me, however , observing the professional way you treated the issue made me to leap with contentment. I am thankful for the help and in addition pray you are aware of a great job you have been accomplishing instructing people with the aid of a web site. I am sure you haven’t got to know all of us.

    Reply
  6. louboutin shoes

    I in addition to my pals have already been checking the best recommendations located on your web site then instantly I got a horrible feeling I never thanked you for those strategies. All of the young men had been consequently glad to see all of them and already have in reality been taking pleasure in those things. Appreciate your getting very kind as well as for selecting this kind of very good themes millions of individuals are really desperate to learn about. My very own honest apologies for not saying thanks to you earlier.

    Reply
  7. longchamp handbags

    My spouse and i have been quite delighted that Edward could conclude his research out of the precious recommendations he received through your site. It is now and again perplexing just to possibly be offering secrets many people may have been making money from. And we fully grasp we now have the website owner to give thanks to for that. These illustrations you made, the easy web site navigation, the friendships you can aid to foster – it’s most superb, and it’s really assisting our son and our family feel that that matter is entertaining, and that’s incredibly fundamental. Many thanks for all!

    Reply
  8. adidas zx flux

    I precisely wished to thank you so much all over again. I do not know the things I might have sorted out without the entire aspects shown by you concerning my subject. Previously it was a very fearsome dilemma in my view, nevertheless spending time with your expert form you processed that made me to leap with fulfillment. I will be happier for your service and even have high hopes you comprehend what a powerful job your are undertaking teaching other individuals with the aid of your site. Most likely you haven’t come across any of us.

    Reply
  9. jordan 11

    I would like to show my appreciation to the writer just for bailing me out of this particular situation. Right after researching throughout the world wide web and obtaining concepts that were not beneficial, I was thinking my life was gone. Being alive devoid of the approaches to the problems you’ve fixed by way of your good posting is a critical case, as well as the kind which might have negatively damaged my entire career if I had not encountered the website. Your talents and kindness in dealing with a lot of stuff was vital. I am not sure what I would’ve done if I had not encountered such a step like this. It’s possible to at this moment look forward to my future. Thanks very much for the high quality and results-oriented help. I won’t be reluctant to refer your web blog to anyone who needs and wants tips about this subject matter.

    Reply
  10. stephen curry shoes

    I would like to express some thanks to this writer just for bailing me out of this type of problem. Right after scouting through the search engines and finding notions which were not beneficial, I figured my entire life was gone. Being alive without the answers to the problems you have sorted out by means of your main short post is a crucial case, and the ones which could have in a negative way damaged my career if I had not encountered your web site. The know-how and kindness in taking care of all the details was precious. I am not sure what I would’ve done if I had not discovered such a solution like this. I’m able to now look forward to my future. Thanks a lot so much for this specialized and effective guide. I won’t think twice to refer the blog to anyone who desires support on this matter.

    Reply
  11. golden goose outlet

    Thank you so much for giving everyone remarkably superb chance to read from this web site. It really is so excellent and also packed with a great time for me personally and my office friends to visit your blog at least three times weekly to find out the latest things you will have. And lastly, I’m just at all times satisfied with the mind-blowing hints you give. Certain 4 facts in this post are indeed the most beneficial we have all had.

    Reply
  12. golden goose outlet

    I simply wanted to develop a word to be able to thank you for some of the superb tactics you are giving on this website. My extended internet lookup has finally been compensated with wonderful content to exchange with my family. I would point out that most of us website visitors are really endowed to live in a very good website with very many brilliant people with helpful guidelines. I feel very much fortunate to have discovered the web pages and look forward to some more entertaining times reading here. Thank you once again for a lot of things.

    Reply

发表评论

电子邮件地址不会被公开。 必填项已用*标注