-
Notifications
You must be signed in to change notification settings - Fork 141
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
Installing libmbus library on windows #119
Comments
Hi Chen, Regarding to MinGW & msys: Regarding to build on Ubuntu: |
Hi siimonc, I use libmbus with debian-jessie (raspberry pi), this is my setup: apt-get -y install libtool automake |
Hi Stefan, I had installed MinGW and msys, added the directories "C:..\MinGW\bin" and "C:..\MinGW\msys\1.0\bin" to both local and system path in environment variables, as I was using a university computer which added some difficulties in having the admin rights. I followed the tutorial from mingw.org closely link here: Getting_Started, there was some confusion and that is to install msys separately in the wiki page which is outdated Link here. It took me some time to read through the comments to find out about this. I downloaded libmbus-master and extracted it manually and put them in the ..msys\1.0\home folder. I then ran the bat-file in msys, and navigated to the home folder where my extracted libmbus file is located. However, when I typed ./configure, it said something like the file could not be found. (Sorry I do not have the computer with msys with me now, so I could not rerun the code and provide the exact error lines). I realised there are difference in the source code in GitHub master branch and in the 0.8.0 version. As I investigate further, the master-branch is up-to-date, where changes were made from correcting the issues (I really appreaciate the work this community puts in), but how come I am not able to run ./configure in msys bat-file (like the problem I said before where the some files are missing)? I then downloaded the 0.8.0-version and extracted it in the msys home folder again, but this time using "tar -xf libmbus-0.8.0.tar.gz" and I was able to run ./configure after that. I could see that Makefile.in is produced, but there were errors after that when I ran make and make install, the error was like some library is not defined so there are a whole bunch of variables which are not recognized. If I am not mistaken, it is the one in mbus/mbus-protocol.h. I thought the problem was that I was using automake 1.11 installed from the default MinGW graphical installer. I tried to install 1.12 but to no avail, as the whole msys is rooted to use automake 1.11. I tried to merge the latest version of configure.ac to the configure.ac in 0.8.0 version, which I was able to run ./configure, but it says libltnl.config could not be found. I was really fed up of using msys, and that is when I saw #117 that it MIGHT be better to compile using cygwin. I am quite exhausted to try it in windows again and I thought it will be better to just use ubuntu directly with a VirtualBox. I have read your comments in the issues #42 and #117 and it makes me think that using msys is not the long-term solution. I am not from programming background but I have some understanding about programming. I just want to use this library to read and analyse the data from Hydrometer Sharky 773, which we bought in the university. Which version of libmbus should I use? I am thinking of the master-branch should be fine but then I am not able to run ./configure with it. I would really appreciate your help and sorry if it is too long to read. They are my personal encounters with msys and libmbus. Cheers. |
Hi kamaxeon, thank you, I will try it out if the ubuntu version does not work. Regards, |
Hi siimonc, What version of ubuntu are you testing? Best regards, |
it depends on the IT department of my univeristy, I cant tell you right now. Do you have some advice about Ubuntu? Regards. |
Hi siimonc, I've just tried on a ubuntu 16.04 (last LTS) with successfully result, very similar setup (only install make package): apt-get -y install libtool automake make git Best regards, |
hi kamaxeon, thanks for your inputs! I will update the thread again once I have got back my working laptop. Regards |
Hi siimonc, If you use ansible, here you have an ansible-role (https://galaxy.ansible.com/kamaxeon/libmbus/) for debian and ubuntu :-) Best regards, |
Hi kamaxeon, @lategoodbye I can now run Ubuntu 16.04.2 and followed your instructions above to compile the library. It has been good until the step ./build.sh. I could not execute the step ./build.sh and I got the following error message: ...:/usr/src/libmbus$ ./build.sh I suspect there is some modifications needed to be done for configure.ac |
Could you please verify that you have also have autoconf and autotools-dev installed? I've Ubuntu 16.04 and the build.sh script works. |
yes I have had them installed previously. Ran
the error message for autom4te.cache is still the same,
any help would be great, thanks! |
I have solved the problem, I didnt have the permission to that directory and adding a sudo infront of ./build.sh solved the problem. Thanks! |
Hi, I was able to build libmbus on windows without problems. Cygwin is right tool for this task. Some extra packages needed to be installed. I'm sending what "cygcheck -c" returns. Not all of these packages are necessary to build library, but better to put everything here so you can see full working setup.
To build library just type
|
I currently try to build a nodejs native module with libmbus and therefor also I also try to get it compile and working on Windows ... TCP is already working ... Serial is next. But I could need support to create the needed msvc makefiles and such ... So if someone wants to join with msvc or at all "compiler know how" (because I'm not really the C/C++ guy) ... contact me (ingo@fischer-ka.de). Current (more experimental) WIP status: https://github.com/Apollon77/libmbus/tree/build-windows |
Got serial and tcp working on windows and also release a first version of the nodejs native library to npm based on Still a lot of work to do in order to create a PR :-) na yhelp would be great! |
Hello, help me, I got a headache, how to install the serial driver on Ubuntu |
Hello, can you simply explain what I should do in Windows or Ubuntu? |
Hello, should this be done inside Visual Studio? |
Hi,
I tried to install and compile this library using MinGW and msys, only to realise that they do not support automake 1.12 and thus the libray cannot be compiled. I would like to remind other people like me intended to run the library on windows that it is not possible to use msys to compile the library.
I just want to know the error-free way to compile the library, is ubuntu-version stable? I notice that there is a difference in the source code for libmbus-0.8.0 and libmbus-master, I think libmbus-master is more up-to-date, thanks to all the active developers. I really appreciate the work you guys have put into this open-source library. Can you let me know how to properly use autotools to build the library?
regards,
-Chen
The text was updated successfully, but these errors were encountered: