Menu

How to cross compile ptpd to ARM?

Help
kaven
2007-05-30
2012-11-23
  • kaven

    kaven - 2007-05-30

    I have already run ptpd on two X86 computers.It worked well.
    Now I wanna run the program on ARM,so I have to cross compile the ptpd.
    But when I use the arm-elf-tools,it always say:constants_dep.h:Not ported to this architecture, please update

    So How can I cross compile the program?

     
    • kendall

      kendall - 2007-06-25

      That header file looks for a #define of linux, __NetBSD__, or __FreeBSD__. If you're _not_ running on one of those platforms, you need to port the OS specific stuff (mostly the network interface binding) to your platform. If you are running on Linux, NetBSD, or FreeeBSD, make sure your compiler is built for the right target platform. Finally, I've heard newer GCC versions use __linux__ instead of linux, so try replacing that in constants_dep.h.

       

Log in to post a comment.