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
Build Windows binaries #125
Comments
I have successfully build gammu for windows. This is the cmake log:
I am not sure whether MySQL/PostgreSQL support is present in my current configuration. If not, I will try to add this. The same with any other optional dependency. I had to make two changes to the code (Armagetron/gammu@ee3ad0d). I have not tested whether they break compilation on other platforms. But if not, I can create a pull request. If anyone wants to test my binaries, they can be downloaded from: https://armagetron.de/Gammu-64a0c94.tar.bz2 |
Thanks, I think your changes look okay, I've just merged them. |
I should add that these changes are for Visual Studio. If anyone wants to build with mingw, the *_s may not be present. |
The build with MinGW is even less tested than the MSVC one (I've tested |
I was generated a Visual Studio 2015 project solution of Gammu 1.37.0 by using cmake, then bulid it with Visual Studio 2015. I open the I just confuse how to replace old files (Gammu 1.33.0) with new one (compiled Gammu 1.37.0). I got several executeable files and pkgconfig folder with files inside it from each project folders (inside of build folder in each project folders), then copying it into an old Gammu (1.33.0). The result is, i cannot start the service. These files was deleted and now i am using Gammu 1.33.0, so i am so sorry cannot give some of screenshoots. I am stil remember, it generate an error mesage like this :
|
Does the program start from commandline? If not, then there are some missing DLLs. If it does start, then it's most likely problem with finding config file. Anyway this is a bit offtopic in this issue... |
It cannnot started from command line.
Sorry, but i got this URL's issue after i am ask about Gammu version on Windows from mailing list. |
And what's the error from the commandline? |
From Gammu's documentation, the Error 0 mean is nothing error refference to show. |
I meant without trying to use it as service, starting it directly. Compiled files won't be any use for me, I don't have Windows ;-). |
BTW: You can add bounty on this issue and that might motivate somebody to work on it (eventually it might even motivate me to learn how to do work with Visual Studio and related tools). |
@anggalisdiyanto : Did you stop the service before copying the files? As @nijel already asked: does the compiled binary run directly from command-line? In Visual Studio should be an "Install" target. This should replace the old binaries. |
Thanks to AppVeyor I've set up CI solution for Windows. It also produces installer images. Current binaries are available here:
Testing is welcome as I'm doing this completely without Windows :-). Please let me know what is broken there or what is missing. Thanks! |
I'm currently on vacation but I will check this next week. |
More up to date build (with fixed several Windows specific bugs):
Testsuite now passes, so it should more or less work fine. Maybe some bundled libraries will be missing... |
Okay, there seems to be some problems to solve: #236 |
Latest binaries (with few more fixes): |
Hi Mr. Nijel. I tried to compile gammu use cross compile from ubuntu to windows. Btw, gammu Installer for Windows version above does not include mysql. |
Hi @wehaye : You can install the ODBC driver for mysql. |
Neither MySQL nor PostgreSQL will not be natively supported in forseable future on Windows. The problem is that each official binary depends on different MSVC runtime and it's not possible to mix them. Also each of them link to different versions of other libraries leading to even bigger dll mess. The option would be to build client libraries ourselves, but that's really too much effort for something which can be solved by installing ODBC driver. |
Yes, you are right. I gave a little bit of information that if there are people who try to connect gammu-smsd using the ODBC driver ("gammu-smsd -i -c smsdrc" then "gammu-smsd -s -c smsdrc") and got an error message and fail, but when you try gammu-smsd run without install ("gammu-smsd -c smsdrc") succeeds, make sure that you create an ODBC connection via the "system DSN" not "user DSN". Thank you very much sir Nijel |
Can you please improve our ODBC documentation to cover all problems you've faced? It's in https://github.com/gammu/gammu/blob/master/docs/manual/smsd/odbc.rst Thanks! |
Sorry, my English is not good. |
Don't worry to submit something, we can improve English later... |
1.37.90 comes with Windows binaries: https://wammu.eu/download/gammu/1.37.90/ |
See #125 (comment) Signed-off-by: Michal Čihař <michal@cihar.com>
Gammu lacks Windows builds for quite some time. I'm making source only release, which works fine on Linux or OSX, but I don't have any Windows system to produce Windows binaries. Also I lack experience with Windows toolchain to be able to do this effectively. Thus somebody else is needed to produce the Windows binaries. It should not be hard, the build system is ready, at most it will need some minor adjustments.
See also https://blog.cihar.com/archives/2014/12/31/no-windows-builds-gammu-and-wammu/
The text was updated successfully, but these errors were encountered: