Re: NOTE: building libvirt requires srcdir != builddir now

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Aside from what Daniel already said I want to add that, at least in my environments, 'make install' fails if I attempt the following:

    mkdir build
    cd build
    ../autogen.sh --prefix=$PWD
    make
    make install

or

    mkdir build
    cd build
    ../autogen.sh --prefix=$PWD/..
    make
    make install


If I set up '--prefix' with a directory that's not a subdir of srcdir, it works.

I am not sure if setting prefix=srcdir was a good idea in the first place, but it was working for me in the old build setup and now it doesn't work anymore. Thus if anyone is having the same issue, try using a prefix that's not a subdir of 'srcdir'.



Thanks,


DHB


On 11/11/19 7:38 AM, Daniel P. Berrangé wrote:
A quick heads up to people who are pulling latest libvirt this morning.

Late on friday we pushed the series from Pavel which mandates that libvirt
does a VPATH build. ie you can't build directly in the source tree, you
must have a separate build directory.

IOW, instead of doing

     ./autogen.sh
     make

You must change to

    mkdir build
    cd build
    ../autogen.sh
    make

"build" can be any directory you like, and doesn't have to be a subdir
of the src checkout.

Most built files now live outside the srcdir - we only have autotools
related artifacts  in srcdir now, and so the gitignore file is much
simpler.

Regards,
Daniel



--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux