Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-06-30 22:56:22

bhh1988
Member
Registered: 2012-06-30
Posts: 5

compiling xfwm4 on Precise: required file ./ltmain.sh not found

Hi,

I'm new to the forums and I've never compiled xfce stuff before and wanted to give this a try. I used git to checkout xfwm4:

git clone git://git.xfce.org/xfce/xfwm4

And I followed the instructions here:

http://docs.xfce.org/xfce/building

I couldn't follow the instructions to the letter because dbus-glib doesn't exist so I fetched libdbus-glib-1-dev instead. Also, I couldn't find garcon. I'm on a basically fresh install of Precise Penguin and I already have xfce installed.

When I run ./autogen.sh --prefix=/home/bhh1988/local && make && make install, I get the following:

Preparing package directory /home/bhh1988/dev/xfwm4...
Running glib-gettextize --force --copy...
Copying file mkinstalldirs
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Running intltoolize --automake --copy --force
Patching file 'po/Makefile.in.in'
Running aclocal-1.11   -I /usr/share/xfce4/dev-tools/m4macros -I /usr/share//xfce4/dev-tools/m4macros -I /usr/share/xfce4/dev-tools/m4macros...
configure.ac:222: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
/usr/share/xfce4/dev-tools/m4macros/xdt-features.m4:39: XDT_SUPPORTED_FLAGS is expanded from...
/usr/share/xfce4/dev-tools/m4macros/xdt-features.m4:59: XDT_FEATURE_DEBUG is expanded from...
configure.ac:222: the top level
Running autoheader...
configure.ac:222: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
aclocal.m4:11048: XDT_SUPPORTED_FLAGS is expanded from...
aclocal.m4:11068: XDT_FEATURE_DEBUG is expanded from...
configure.ac:222: the top level
Running automake-1.11 --force-missing --add-missing --copy --gnu...
configure.ac:222: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
aclocal.m4:11048: XDT_SUPPORTED_FLAGS is expanded from...
aclocal.m4:11068: XDT_FEATURE_DEBUG is expanded from...
configure.ac:222: the top level
configure.ac:64: required file `./ltmain.sh' not found

What are the m4 files and what is the autoconf macro directory? Also, what is ltmain.sh?

Any pointers would be extremely appreciated!

Offline

#2 2012-07-01 04:00:09

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,230

Re: compiling xfwm4 on Precise: required file ./ltmain.sh not found

What are the m4 files and what is the autoconf macro directory? Also, what is ltmain.sh?

Make sure you have gettext and libtool installed.

garcon is there:

git clone git://git.xfce.org/xfce/garcon

Offline

#3 2012-07-01 06:50:04

bhh1988
Member
Registered: 2012-06-30
Posts: 5

Re: compiling xfwm4 on Precise: required file ./ltmain.sh not found

I tried doing those things but I still have the same problem... I also tried moving my m4 files to /usr/share/autoconf since my search online seems to indicate that this is the autoconf macro directory, but this also was unsuccessful. I wasn't able to find isc-posix.m4 by the way.

Offline

#4 2012-07-01 11:43:19

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,230

Re: compiling xfwm4 on Precise: required file ./ltmain.sh not found

Have you installed build-essential?

Have you successfully built xfce4-dev-tools and libxfce4util before xfconf?

Also, before compiling, execute the following:

export PKG_CONFIG_PATH="/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="-O2 -pipe"

To compile xfconf, I also had to install the following:

sudo apt-get install libdbus-1-dev libdbus-glib-1-dev libextutils-depends-perl libextutils-pkgconfig-perl

BTW, there is also an ubuntu PPA that allows you to install Xfce 4.10 without the need to compile anything. See: http://www.webupd8.org/2012/05/install- … -1204.html

Offline

#5 2012-07-01 19:54:06

bhh1988
Member
Registered: 2012-06-30
Posts: 5

Re: compiling xfwm4 on Precise: required file ./ltmain.sh not found

Thanks again for replying. I tried those things, and I still have the same issue. I'm pretty sure I built xfce4-dev-tools and libxfce4util before xconf. Doing an sudo apt-get install on any of those leads to 0 upgrades presumably because I've already installed them properly. I also installed the libraries you suggested. None of that seems to work.

The reason why I want to be able to compile from source is that I'd like to make my own modifications to the code. Do you know what ltmain.sh is?

Offline

#6 2012-07-01 20:51:42

jeromeg
Moderator
From: France
Registered: 2010-11-11
Posts: 131
Website

Re: compiling xfwm4 on Precise: required file ./ltmain.sh not found

Try with this as autogen command:

./autogen.sh --enable-maintainer-mode

Offline

#7 2012-07-02 05:52:10

bhh1988
Member
Registered: 2012-06-30
Posts: 5

Re: compiling xfwm4 on Precise: required file ./ltmain.sh not found

same thing sad

Offline

#8 2012-07-02 18:40:26

Sproggy
Member
Registered: 2010-01-14
Posts: 11

Re: compiling xfwm4 on Precise: required file ./ltmain.sh not found

try ./autogen.sh --prefix=/usr --enable-maintainer-mode && make clean && make

old libtool tricks to add to specfiles to get them to build:

%define __libtoolize    /bin/true
%define __check_files %{nil}
%define _use_internal_dependency_generator 0
%define __find_requires /bin/true
%define __find_provides /bin/true
%define __strip /bin/true


autoreconf -i -v -f
autoconf
autoreconf
aclocal
aclocal -I m4
automake --add-missing

Offline

#9 2012-07-04 17:35:59

bhh1988
Member
Registered: 2012-06-30
Posts: 5

Re: compiling xfwm4 on Precise: required file ./ltmain.sh not found

So the first command didn't work. I'm still trying to figure out what you mean by the second part, regarding specfiles. I don't know how specfiles play into this build process and I'm trying to figure it out, but I'd definitely appreciate it if you were to tell me more precisely where I need to put those lines. Thanks.

Offline

Board footer

Powered by FluxBB