Menu

How to build Linux x86_64 p7zip?

Help
zanshigang
2012-06-11
2013-05-28
  • zanshigang

    zanshigang - 2012-06-11

    Hi,
    I have downloaded p7zip source code and try to build on Linux X86_64 platform. But I haven't found suitable makefile file for it. Which one is right?
    Then I tried to use makefile.linux_x86_asm_gcc_4.X to replace makefile.machine and modify -m32 to -m64. Then I got an error as below:

    /usr/bin/ld: i386 architecture of input file `7zCrcT8U.o' is incompatible with i386:x86-64 output
    collect2: ld returned 1 exit status
    make: ***  Error 1
    make: Leaving directory `/home/zanshigang/ContentExtractor/p7zip_9.04/CPP/7zip/Bundles/Format7zFree'
    make: ***  Error 2

    What is the proper steps to build p7zip on Linux x86_64 platform?
    Thx.

     
  • my p7zip

    my p7zip - 2012-07-10

    x86_64 is AMD64

    so :
    cp makefile.linux_amd64_asm  makefile.machine
    make clean
    make test

     

Log in to post a comment.