Thanks to all who have helped, I am trying, will resend the result later.
saint_...@aliyun.com From: Dave Barach via Lists.Fd.Io Date: 2018-12-20 00:29 To: Andrew Pinski; dmar...@me.com CC: vpp-dev Subject: Re: [vpp-dev] regarding cross compiling Please give the instructions at https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling a try and let us know what happens. Suffice it to say that the vpp committer community saw sufficient value in switching to cmake to do so. D. -----Original Message----- From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Andrew Pinski Sent: Wednesday, December 19, 2018 10:40 AM To: dmar...@me.com Cc: Saxena, Nitin <nitin.sax...@cavium.com>; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] regarding cross compiling On Wed, Dec 19, 2018 at 8:54 AM Damjan Marion via Lists.Fd.Io <dmarion=me....@lists.fd.io> wrote: > > i > > On 19 Dec 2018, at 14:00, Saxena, Nitin <nitin.sax...@cavium.com> wrote: > > Hi Damjan, > > >>Somebody needs to spend a bit of time to teach CMake how to properly > >>cross-compile.... > > Correct me if I am wrong but I think cross-compilation support was there > before CMake transition. > > I guess so, never used it... I am still disappointed moving away from autotools. CMake has too much junk science of getting it right; autotools just work for all of these special cases. Yes it is a bit slower to build with autotools but it makes cross compiling and debugging what is going wrong with the build easier. > > Also I am not finding capability to link VPP with externally compiled > dpdk? Am I correct or missing anything > > You can just specify -DCMAKE_INSTALL_PREFIX:PATH=..... to the tree where dpdk > tree is. > That is what we do today with /opt/vpp/external/$(uname -m)/ Also it makes help messages from configure easier to find the needed options including but not limited to the above. Having reading cmake files in the past and autoconfig files, the autoconf is easier to understand and understand how it works. Also autoconf is standard, while cmake is very much unstandardized when it comes to finding headers, etc. You need to pull in a library, here have a weird cmake file which might or might not work. Thanks, Andrew Pinski > > -- > Damjan > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#11694): > https://lists.fd.io/g/vpp-dev/message/11694 > Mute This Topic: https://lists.fd.io/mt/28800506/912176 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [pins...@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11700): https://lists.fd.io/g/vpp-dev/message/11700 Mute This Topic: https://lists.fd.io/mt/28800506/1454168 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [saint_...@aliyun.com] -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11719): https://lists.fd.io/g/vpp-dev/message/11719 Mute This Topic: https://lists.fd.io/mt/28800506/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-