-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Installation Windows #15
Comments
Yes it's possible, but there is slight problem in getting Gammu built by same MSVC version as Python. So you most likely will have to build Gammu as well. |
hello struggling as well to install the Python-gammu package on Visual Studio. trying out the VS tools for Python. when importing the package it fails. any help ? |
What error do you get? Maybe you just need to copy Gammu.dll somewhere it can find it? |
I have PTVS on VS 2015. (community edition) . I have installed Python via the Anaconda tooling. |
At the Moment i can only compile Gammu self with VS 2015. |
@rudi59 could you give me more details on how you compile Gammu on VS 2015 ? |
rudi59 píše v Po 20. 02. 2017 v 11:10 -0800:
At the Moment i can only compile Gammu self with VS 2015. python-
gammu has Errors in smsd.c - if i compile without gammu-smsd VS can
not Link the Build correctly. Maybe there are some dependencies not
corretly installed on my System, i dont know it exactly at the
Moment. I also modified my gammu.pc (pkgconfig) VS don´t need a libm
Can you share these changes, so that they can be integrated upstream?
|
@ktngoykalolo For Gammu you need minimum cmake and doxygen, python2.7 and pkg-config installed. with cmake -G "Visual Studio 14 2015" you can create a Visual Studio 2015 Gammu.sln. All other dependencies are listed her https://wammu.eu/docs/manual/project/install.html#compiling-on-microsoft-windows To compile you need Windows SDK and C++ Headers in Community Edtion. @nijel Yes i would share any changes, at the Moment i don´t have any solution for the Errors in smsd.c and the Linker Problem. gammu-smsd.pc: gammu.pc: If you Need, i can provide a diff file. |
@nijel here are the results I get when trying to add python-gammu on the project :
|
here is the result with easy_install : |
It's not needed there, see gammu/python-gammu#15 (comment) Signed-off-by: Michal Čihař <michal@cihar.com>
@rudi59 Feel free to report errors in building. The |
@ktngoykalolo Install pkg-config. |
Looking at https://wiki.python.org/moin/WindowsCompilers, the official binaries should be compatible with Python 3.5 and 3.6. In that case you don't need to build it, just install (and ensure pkg-config finds it). |
There are several issue on Windows. I attached some patch files for misc.c, smsd.c and convertors\base.c i can minimsize the errors, but some of them are still existing on linking. i work on it.
|
Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
This code is wrong, but GCC seems to be more tollerant here. Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
Thanks, I've merged these changes. |
Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
This is needed to have full install as default. Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
It is used there and having that separately just makes proper linking on Windows hard. See gammu/python-gammu#15 Signed-off-by: Michal Čihař <michal@cihar.com>
Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
It sems that the system has troubles with such thing. Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
I've managed to fix compilation and automate it on AppVeyor, so the binaries are now produced for every commit and will be included in upcoming releases. |
Issue #15 Signed-off-by: Michal Čihař <michal@cihar.com>
See gammu/python-gammu#15 Signed-off-by: Michal Čihař <michal@cihar.com>
This should allow to build Python 2.7 python-gammu module. Also build only one debug build. It is pretty much needed only to get coverage reports and that should not differ between 32bit and 64bit build, while this saves 50 minutes of build time. See gammu/python-gammu#15 Signed-off-by: Michal Čihař <michal@cihar.com>
- build 32-bit and 64-bit versions - build for Python 2.7 - this currently uses latest build of Gammu See #15 and gammu/wammu#51 Signed-off-by: Michal Čihař <michal@cihar.com>
Is it possible to install/compile python-gammu in windows? i have some errors with install in windows.
The text was updated successfully, but these errors were encountered: