Skip to content
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

Deprecate autotools and fix versioning, build with MinGW #434

Merged
merged 1 commit into from
Aug 3, 2016

Conversation

xor-gate
Copy link
Member

Now CMake loads the version from TRAVIS_TAG, git describe --always or local .version.
Implementation of discussion in #431, for v.2.0.0

@texane what do you think? Could you review-merge?

@texane
Copy link
Collaborator

texane commented Jun 18, 2016

Does it still compile on Windows with Mingw32 ? Does not look so
to me (ie. doc/mingw.md). I agree to remove autotools, but all the
currently supported systems must work and the corresponding
doc be up to date.

Appart from that, looks fine to me.

2016-06-18 16:24 GMT+02:00 Jerry Jacobs [email protected]:

Now CMake loads the version from TRAVIS_TAG, git describe --always or
local .version.
Implementation of discussion in #431
#431, for v.2.0.0

@texane https://github.com/texane what do you think? Could you

review-merge?

You can view, comment on, or merge this pull request online at:

#434
Commit Summary

  • Deprecate autotools and load version from TRAVIS_TAG, git command or
    local .version file

File Changes

Patch Links:


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#434, or mute the thread
https://github.com/notifications/unsubscribe/AAEeHz3E5Sz3hMsU-qYDgcVhIakPieS9ks5qM_-GgaJpZM4I49RN
.

@xor-gate
Copy link
Member Author

xor-gate commented Jun 18, 2016

I totaly agree, I have forgotten to update the documentation. I also will add a linux mingw build so we can see it compiles as windows target platform. I must investigate how it behaves on windows-os itself and try with app-veyor and mingw. As you know, autotools under windows is a pain in the ass. I will let you know.

@texane
Copy link
Collaborator

texane commented Jun 18, 2016

OK. We will wait for the merge then. Thanks for your work !

2016-06-18 16:37 GMT+02:00 Jerry Jacobs [email protected]:

I totaly agree, I have forgotten to update the documentation. I also will
add a linux mingw build so we can see it compiles as windows target
platform. I must investigate how it behaves on windows-os itself and try
with app-veyor and mingw. As you know, autotools under windows is a pain in
the ass.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#434 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAEeH63exr_BCGBSsTpveeQmXKaw_9-lks5qNAK7gaJpZM4I49RN
.

@xor-gate xor-gate changed the title Deprecate autotools and fix versioning Deprecate autotools and fix versioning, build with MinGW Jun 18, 2016
@xor-gate
Copy link
Member Author

xor-gate commented Jun 19, 2016

@texane, it took me more time then expected to integrate with AppVeyor MSYS Makefile generator project. I have it now building for 32 and 64 bit systems. I still need to update the documentation. What do you think?

Important: I would like you to activate AppVeyor integration for texane/stlink with the config file pointing to custom path: .appveyor.yml. Would you like to do this. For me it would be better to move stlink project into a separate organisation so the integrations don't impact your own account and you don't need to configure (sometimes complex) continues integration/continues deployment.

The Pro of having a separate organisation would also be when in the upcoming time I will push binary releases from Travis CI and AppVeyor CI into github/bintray we need to have deployment keys which need to configured. Also for my own stlink continues integration setup I would like to add extra code coverage output (so we know most targets, and all flash loader variants work).

Thank you for your time.
Let me know how we can continue to extent and ease the first-time user experience (and existing user base).

@texane
Copy link
Collaborator

texane commented Jun 19, 2016

Hi,

regarding the Windows support, let me know when the documentation is
updated and we will merge. Thanks for that !

It is good to add some support for continuous integration, but I do not
want
it to drive important decisions such as changing the project organization,
or
put constraints on the maintainers personal accounts.

2016-06-19 9:04 GMT+02:00 Jerry Jacobs [email protected]:

@texane https://github.com/texane, it took me more time then expected
to integrate with AppVeyor MSYS Makefile generator project. I have it now
building for 32 and 64 bit systems. I still need to update the
documentation. What do you think?

Important: I would like you to activate AppVeyor integration for
texane/stlink with the config file pointing to custom path: .appveyor.yml.
Would you like to do this. For me it would be better to move stlink project
into a separate organisation so the integrations don't impact your own
account and you don't need to configure (sometimes complex) continues
integration/continues deployment.

The Pro of having a separate organisation would also be when in the
upcoming time I will push binary releases from Travis CI and AppVeyor CI
into github/bintray we need to have deployment keys which need to
configured. Also for my own stlink continues integration setup I would like
to add extra code coverage output (so we know most targets, and all flash
loader variants work).

Thank you for your time.
Let me know how we can continue to extent and ease the first-time users
and existing users.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#434 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAEeH-JD0CMMDHgibk-4kOYLNpD_9Ve9ks5qNOoYgaJpZM4I49RN
.

@xor-gate
Copy link
Member Author

xor-gate commented Jun 20, 2016

@texane I have updated the build instructions and added a build helper for windows. Now we only need a MinGW64 gcc toolchain without MSYS. I have tested this myself and it compiles and runs. For some reason there are some issues with device-claim under windows (but that is a different question to fix):

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --serial
libusb: error [init_device] device '\\.\USB#VID_0483&PID_374B&MI_02#6&2E55A1F8&0&0002' is no longer connected!
303636454646343835353530373535

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --descr
libusb: error [init_device] device '\\.\USB#VID_0483&PID_374B&MI_02#6&2E55A1F8&0&0002' is no longer connected!
L4 device

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --flash
libusb: error [init_device] device '\\.\USB#VID_0483&PID_374B&MI_02#6&2E55A1F8&0&0002' is no longer connected!
0xzx

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --sram
libusb: error [init_device] device '\\.\USB#VID_0483&PID_374B&MI_02#6&2E55A1F8&0&0002' is no longer connected!
0xzx

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --probe
Found zu stlink programmers

Also the printf formatting seems to be broken. I'm using toolchain mingw-w64\x86_64-5.3.0-win32-sjlj-rt_v4-rev0. With GCC 5.3.0.

Tested with Nucleo STM32L476 (Nucleo-64) which is "mbed-enabled"

@xor-gate xor-gate added this to the v2.0.0 milestone Jun 20, 2016
@texane
Copy link
Collaborator

texane commented Jun 20, 2016

Thanks !

2016-06-20 17:01 GMT+02:00 Jerry Jacobs [email protected]:

@texane https://github.com/texane I have updated the build instructions
and added a build helper for windows. Now we only need a MinGW64 gcc
toolchain without MSYS. I have tested this myself and it compiles and runs.
For some reason there are some issues with device-claim under windows (but
that is a different question to fix):

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --serial
libusb: error [init_device] device '.\USB#VID_0483&PID_374B&MI_02#6&2E55A1F8&0&0002' is no longer connected!
303636454646343835353530373535

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --descr
libusb: error [init_device] device '.\USB#VID_0483&PID_374B&MI_02#6&2E55A1F8&0&0002' is no longer connected!
L4 device

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --flash
libusb: error [init_device] device '.\USB#VID_0483&PID_374B&MI_02#6&2E55A1F8&0&0002' is no longer connected!
0xzx

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --sram
libusb: error [init_device] device '.\USB#VID_0483&PID_374B&MI_02#6&2E55A1F8&0&0002' is no longer connected!
0xzx

C:\Users\Jerry\Downloads\stlink-deprecate_autotools\build>st-info.exe --probe
Found zu stlink programmers


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#434 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAEeH550Nx1iHbA3UBYT5zP_3XDOTvQWks5qNqtbgaJpZM4I49RN
.

@xor-gate
Copy link
Member Author

xor-gate commented Jun 20, 2016

I have seen working AppVeyor and Travis with the stlink/stlink, so when this is happen to be merged and everything is in place you may disable integration for your account. Keep in mind, that no pull requests are build then so we can only check indirect when merged.

https://travis-ci.org/stlink/stlink/builds/138968255
https://ci.appveyor.com/project/stlink/stlink/build/2

@texane
Copy link
Collaborator

texane commented Jun 20, 2016

I will, thanks

2016-06-20 20:25 GMT+02:00 Jerry Jacobs [email protected]:

I have seen working AppVeyor and Travis with the stlink/stlink, so when
this is happen to be merged and everything is in place you may disable
integration for your account. Keep in mind, that no pull requests are build
then.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#434 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAEeH1S_oNU9fi9Tde3XOoqtq1CvOlMBks5qNtsJgaJpZM4I49RN
.

@xor-gate
Copy link
Member Author

Some days have passed, another contributor updated the CMake files in PR #444 but first this should be merged. Then PR #444 could rebased on this.

@texane
Copy link
Collaborator

texane commented Jul 14, 2016

I will be on vacations for the next 2 weeks. Will take a look when coming
back.

2016-07-13 21:14 GMT+02:00 Jerry Jacobs [email protected]:

Some days have passed, another contributor updated the CMake files in PR
#444 #444 but first this should be
merged. Then PR #444 #444 could
rebased on this.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#434 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAEeHz6My-h8k56BnimDWFtSf73ph9neks5qVTkSgaJpZM4I49RN
.

@xor-gate xor-gate force-pushed the deprecate_autotools branch from b809473 to 9aac78d Compare August 3, 2016 18:03
@xor-gate xor-gate merged commit c3e208e into master Aug 3, 2016
@xor-gate
Copy link
Member Author

xor-gate commented Aug 3, 2016

As discussed some time ago, we will be moving away from autotools. As people get confused and makes issue solving problematic. If there are any questions with cmake or the build system, don't hesitate to open a issue new issue for further discussion.

I have merged myself as I know you sometimes are short in time, I try to make good decisions which always can be discussed beforehand.

@xor-gate xor-gate deleted the deprecate_autotools branch August 3, 2016 18:14
@texane
Copy link
Collaborator

texane commented Aug 4, 2016

Hi Jerry,

could we take this discussion back ?

As I understand, there are 3 topics to be discussed:

. Moving away from autotools: seems OK to me, but still has
to build on all the platforms currently supported, without loss
of quality as regard with what is currently provided.

. Windows support: still has to work. Can't we just take the
currently generated MSYS Makefile and live with them ? We
do not often change these, do not have to be generated at
every pull request.

. Adding a third party service to ease the Windows build: it
does not seem justified to me, esp. regarding the impact it
has on the project or owner accounts, as discussed earlier.
So my answer to this point is definitely no.

I hope we will make some progress,

2016-08-03 20:15 GMT+02:00 Jerry Jacobs [email protected]:

As discussed some time ago, we will be moving away from autotools. As
people get confused and makes issue solving problematic. If there are any
questions with cmake or the build system, don't hesitate to open a issue
new issue for further discussion.

I have merged myself as I know you sometimes are short in time, I try to
make good decisions which always can be discussed beforehand.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#434 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEeH5TawhtKmbv2Z0dNJXcc84xzzSKdks5qcNq_gaJpZM4I49RN
.

@xor-gate
Copy link
Member Author

xor-gate commented Aug 4, 2016

I will comment on the following points:

  1. No quality is lost, it is even enforced on multiple platforms (Linux, MinGW, Mac OS). By using multiple compilers and environments.
  2. The windows build is working with CMake and I have put a few hour effort to make it compile again. Generating static build files and putting it aside cmake is double and will confuse people again. We are unable with static build files to compile to multiple targets: Debug (debug symbols and coverage, Release (stripped from cruft for easier distribution).
  3. I understand, but how can you guarantee "quality/working" as mentioned in point 1 without continues integration?

@texane
Copy link
Collaborator

texane commented Aug 4, 2016

2016-08-04 9:09 GMT+02:00 Jerry Jacobs [email protected]:

I will comment on the following points:

  1. No quality is lost, it is even enforced on multiple platforms
    (Linux, MinGW, Mac OS). By using multiple compilers and environments.

OK

  1. The windows build is working with CMake and I have put a few hour
    effort to make it compile again. Generating static build files and putting
    it aside cmake is double and will confuse people again. We are unable with
    static build files to compile to multiple targets: Debug (debug symbols and
    coverage, Release (stripped from cruft for easier distribution).

Just to understand: building on Windows works fine with CMake. If that is
so,
we can drop autotools then ...

  1. I understand, but how can you guarantee "quality/working" as
    mentioned in point 1 without continues integration?

As we did in the past: if the build fails on a platform, users will report
it. We
have the same problem to functionally test that a pull request wont break a
target, and it works fine.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#434 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEeHxqmVsWVhvwxvmgLxNoP79IBzlXSks5qcZAsgaJpZM4I49RN
.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discussion: Autotools will be deprecated in v1.3.0 PKG_CHECK_MODULES USB unexpected token
3 participants