cross/mingw compilation (was assertion failure with certain DVD's)
$./configure2 ./configure2: line 95: cd: /usr/local/: No such file or directory # needs to be run in bash I believe
Nope, you need to set the install prefix with --prefix=blabla
Sweet that fixed it, as long as the prefix exists, otherwise same error message different path :)
Checking if we're big-endian... ./configure2: line 113: mktemp: command not found
This meant I didn't have msys installed, only mingw (my bad).
Done, type 'make install' to build and install
(appears to set HAVE_DLFCN_H in error)
Without using autotools, dlfcn.h presence is not detected
Is there a way to use autotools with libdvdread? I'm a bit lost, as is evident. though I can work around it for now. This actually makes me wonder how anybody is compiling it for their windows distros today. I know mplayer just uses the src directory and its own configs (which work), dunno about VLC/others. It seems like both msys and cross compiling don't work, or can somebody give me an example of how they do work, somehow?
./msvc/config.h:#define HAVE_DLFCN_H 1
And it is assumed to exist (is this file made for Visual Studio?)
I guess so, since it's under the msvc dir.
Also as a note when it runs strip and ranlib, if it's being cross compiled, it would be helpful to call their equivalent: $ ./configure2 --cc=i586-mingw32msvc-gcc should eventually call i586-mingw32msvc-ranlib
maybe it could use a new configure option for a prefix or what not.
./configure --host=i586-mingw32-msvc should work
Yes I think it needs an option like that added (configure2 doesn't appear to have one as of yet). -roger-
Le Thu, 1 Dec 2011 11:18:59 -0700, Roger Pack <rogerdpack2@gmail.com> a écrit :
$./configure2 ./configure2: line 95: cd: /usr/local/: No such file or directory # needs to be run in bash I believe
Nope, you need to set the install prefix with --prefix=blabla
Sweet that fixed it, as long as the prefix exists, otherwise same error message different path :)
Checking if we're big-endian... ./configure2: line 113: mktemp: command not found
This meant I didn't have msys installed, only mingw (my bad).
Done, type 'make install' to build and install
(appears to set HAVE_DLFCN_H in error)
Without using autotools, dlfcn.h presence is not detected
Is there a way to use autotools with libdvdread?
Yep, use ./configure and not ./configure2
I'm a bit lost, as is evident. though I can work around it for now. This actually makes me wonder how anybody is compiling it for their windows distros today. I know mplayer just uses the src directory and its own configs (which work), dunno about VLC/others. It seems like both msys and cross compiling don't work, or can somebody give me an example of how they do work, somehow?
./msvc/config.h:#define HAVE_DLFCN_H 1
And it is assumed to exist (is this file made for Visual Studio?)
I guess so, since it's under the msvc dir.
I think it shouldn't be used for mingw then, in vlc we remove reference to this directory
Also as a note when it runs strip and ranlib, if it's being cross compiled, it would be helpful to call their equivalent: $ ./configure2 --cc=i586-mingw32msvc-gcc should eventually call i586-mingw32msvc-ranlib
maybe it could use a new configure option for a prefix or what not.
./configure --host=i586-mingw32-msvc should work
Yes I think it needs an option like that added (configure2 doesn't appear to have one as of yet).
-- Rafaël Carré
Is there a way to use autotools with libdvdread?
Yep, use ./configure and not ./configure2
Oh gotcha. I saw configure2 and didn't notice the configure.ac file. Using autoconf does create a ./configure file Running it outputs the following: $ ./configure /configure: line 2153: syntax error near unexpected token `1.6' /configure: line 2153: `AM_INIT_AUTOMAKE(1.6)' (same in Linux, though configure2 does work in Linux). Any thoughts? Thanks. -roger-
Le Thu, 1 Dec 2011 12:37:55 -0700, Roger Pack <rogerdpack2@gmail.com> a écrit :
Is there a way to use autotools with libdvdread?
Yep, use ./configure and not ./configure2
Oh gotcha. I saw configure2 and didn't notice the configure.ac file.
Using autoconf does create a ./configure file
Running it outputs the following: $ ./configure /configure: line 2153: syntax error near unexpected token `1.6' /configure: line 2153: `AM_INIT_AUTOMAKE(1.6)'
(same in Linux, though configure2 does work in Linux).
Any thoughts? Thanks. -roger-
install automake, possibly libtool too to be sure, try to run autoreconf -- Rafaël Carré
install automake, possibly libtool too to be sure, try to run autoreconf
appears from apt-get that I have the latest installed. running autoreconf in Linux: $ autoreconf autlibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. oconf configure.ac:26: required file `./config.guess' not found configure.ac:26: `automake --add-missing' can install `config.guess' configure.ac:26: required file `./config.sub' not found configure.ac:26: `automake --add-missing' can install `config.sub' configure.ac:22: required file `./install-sh' not found configure.ac:22: `automake --add-missing' can install `install-sh' configure.ac:22: required file `./missing' not found configure.ac:22: `automake --add-missing' can install `missing' src/Makefile.am: required file `./depcomp' not found src/Makefile.am: `automake --add-missing' can install `depcomp' autoreconf: automake failed with exit status: 1 My guess is that people only use configure2 these days, or something... Thanks for your help BTW. -roger-
Le Thu, 1 Dec 2011 13:04:13 -0700, Roger Pack <rogerdpack2@gmail.com> a écrit :
install automake, possibly libtool too to be sure, try to run autoreconf
appears from apt-get that I have the latest installed.
running autoreconf in Linux:
$ autoreconf autlibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. oconf configure.ac:26: required file `./config.guess' not found configure.ac:26: `automake --add-missing' can install `config.guess' configure.ac:26: required file `./config.sub' not found configure.ac:26: `automake --add-missing' can install `config.sub' configure.ac:22: required file `./install-sh' not found configure.ac:22: `automake --add-missing' can install `install-sh' configure.ac:22: required file `./missing' not found configure.ac:22: `automake --add-missing' can install `missing' src/Makefile.am: required file `./depcomp' not found src/Makefile.am: `automake --add-missing' can install `depcomp' autoreconf: automake failed with exit status: 1
My guess is that people only use configure2 these days, or something... Thanks for your help BTW. -roger-
or just run automake --add-missing like suggested (agreed it's not exactly explicit, that's one of numerous autoconf problems) -- Rafaël Carré
or just run automake --add-missing like suggested (agreed it's not exactly explicit, that's one of numerous autoconf problems)
Nice. On Linux this clear it up: $ autoreconf $ automake --add-missing $ autoreconf in mingw I don't get the libtoolize messages: $ autoreconf libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. and so it still fails, but at least I have a working cross compiler now, thanks! Also I noticed that linking libdvdnavmini is missing the "-ldvdread" for some reason, for it fails.. -roger-
Le Thu, 1 Dec 2011 14:41:31 -0700, Roger Pack <rogerdpack2@gmail.com> a écrit :
or just run automake --add-missing like suggested (agreed it's not exactly explicit, that's one of numerous autoconf problems)
Nice. On Linux this clear it up:
$ autoreconf $ automake --add-missing $ autoreconf
in mingw I don't get the libtoolize messages:
$ autoreconf libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
Add a line saying "AC_CONFIG_MACRO_DIR([m4])" to configure.ac
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Add a line saying "ACLOCAL_AMFLAGS = -I m4" to Makefile.am or add -I m4 if ACLOCAL_AMFLAGS is already declared
and so it still fails, but at least I have a working cross compiler now, thanks!
Also I noticed that linking libdvdnavmini is missing the "-ldvdread" for some reason, for it fails..
Ah for that one it must be an error.. -- Rafaël Carré
in mingw I don't get the libtoolize messages:
$ autoreconf libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
Oops I should have been more explicit. In linux (despite the warnings), it works, and autoreconf create ./ltmain.sh In msys, no ltmain.sh file is created, and when I then run autoreconf, it says this error message: configure.ac:101: required file `./ltmain.sh' not found (though I did try your suggestions as well). It might be an msys bug. Cross compiling works at least :) -r
Oops I should have been more explicit. In linux (despite the warnings), it works, and autoreconf create ./ltmain.sh In msys, no ltmain.sh file is created, and when I then run autoreconf, it says this error message:
configure.ac:101: required file `./ltmain.sh' not found
Looks like the fix may be: $ sh ./autogen.sh $ ./configure ... though it's not mentioned in the documentation. It compiles on mingw and cross compiles well now. Thanks for your help on this. ref: http://forums.newdoom.com/showthread.php?t=31007
Also I noticed that linking libdvdnavmini is missing the "-ldvdread" for some reason, for it fails..
Ah for that one it must be an error..
I still get this one, linux cross compile and mingw. https://gist.github.com/1425686 Seems like some type of bug. Thanks! -roger-
Checking if we're big-endian... ./configure2: line 113: mktemp: command not found
This meant I didn't have msys installed, only mingw (my bad).
As a follow-up note packrd@PACKR-AEEBE1B52 /c/dev/ruby/downloads/libdvdread $ ./autogen.sh /c/installs/devkit451/devkit451/mingw/bin/autoreconf: /c/installs/devkit451/devk it451/mingw/bin/autoreconf-2.67: /bin/perl: bad interpreter: No such file or dir ectory /c/installs/devkit451/devkit451/mingw/bin/autoreconf: line 157: /c/installs/devk it451/devkit451/mingw/bin/autoreconf-2.67: error 0 meant that I need not only "msys" installed, but also the developer tools which include mktemp, perl, msys itself is apparently not enough. then autogen.sh and configure worked.
participants (2)
-
Rafaël Carré -
Roger Pack