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

Trouble creating vcpkg port #602

Closed
jpfeuffer opened this issue May 24, 2023 · 7 comments
Closed

Trouble creating vcpkg port #602

jpfeuffer opened this issue May 24, 2023 · 7 comments

Comments

@jpfeuffer
Copy link

jpfeuffer commented May 24, 2023

Sorry that I have to forward this here but I have never used autoconf except for when it JustWorks.

Maybe you guys have some insights on what is wrong. If you look at the build script in my PR I THINK I am using the contents of the build tools repository as mentioned often around the internet.

e.g. on Windows x64:

autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I "D:/buildtrees/coin-or-cbc/src/8ad995b231-cec7df5550.clean/BuildTools" --force 
am-wrapper: aclocal: warning: auto-detected versions not found (1.9); falling back to latest available
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf --force
configure.ac:39: error: possibly undefined macro: AC_COIN_CREATE_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:45: error: possibly undefined macro: AC_COIN_MAIN_PACKAGEDIR
autoreconf: error: /usr/bin/autoconf failed with exit status: 1

or macOS pretty much the same:

autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I "/Users/vagrant/Data/buildtrees/coin-or-cbc/src/8ad995b231-cec7df5550.clean/BuildTools" --force 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/local/Cellar/autoconf/2.71/bin/autoconf --force
configure.ac:39: error: possibly undefined macro: AC_COIN_CREATE_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:45: error: possibly undefined macro: AC_COIN_MAIN_PACKAGEDIR
autoreconf: error: /usr/local/Cellar/autoconf/2.71/bin/autoconf failed with exit status: 1

Originally posted by @jpfeuffer in microsoft/vcpkg#31607 (comment)

@svigerske
Copy link
Member

Don't attempt to autoreconf. microsoft/vcpkg#31607 (comment) is correct.

For current Cbc releases, you'll have to live with the configure script that is generated by a very old autotools.
Branch master has been updated for use with very recent autotools years ago, but no release from that branch is in sight.

@jpfeuffer
Copy link
Author

jpfeuffer commented May 25, 2023

So if I chose to build from a specific point on master, it should work?
Which version of buildtools do I need to use then? Latest (0.8) or also master?

@jpfeuffer
Copy link
Author

jpfeuffer commented May 25, 2023

I am just wondering how the rest of the coinor packages work flawlessly on vcpkg.
I noticed that they are not using release versions but dates, so they might be builds from master.

@svigerske
Copy link
Member

You can try with the current master and try to avoid running autotools (autoreconf, etc). But if you have to, then use current master of BuildTools. That applies additional patches for builds with MS/Intel compilers on Windows.

I have no experience with vcpkg.

@jpfeuffer
Copy link
Author

Ok thank you very much! Last (newbie) question: what is the alternative to autotools for cbc? What should I run instead?

@svigerske
Copy link
Member

Running the usual configure/make/make-install is preferred, in my opinion. What I meant was that it is best to avoid recreating configure, etc, by running autoreconf. Just use the configure that is distributed.

@jpfeuffer
Copy link
Author

Hi!
I now managed to build it on all platforms but Windows which seems to have problems with pkgconfig and its paths.
See microsoft/vcpkg#31607 (comment)

Do you have any idea how to solve that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants