How can I compile packetbeat in a 64 bits environment (linux) to generate a 32 bits executable?
I have tried "make crosscompile", which worked me on Winlogbeat. Then I read Build packetbeat on windows, so I downloaded beats-packer and tried to compile with "make packetbeat/deb".
Is this the right way? This project seems to clone again the repository, but I want to use mine.
How can I configure it?
The only build tag I see on those files is // +build linux so that package should contain files when building on Linux. The regular 64-bit GOOS=linux GOARCH=amd64 go build command worked as expected?
Yes I have no problem compiling in 64 bits with Ubuntu 14.04. I have also tried to compile the same code with a Kubuntu 32 bits and it works too. But i'm not able to generate the 32 bit executable file from the 64 bits machine.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.