OpenWRT - package missing dependencies when recompiling

前端 未结 4 1833
名媛妹妹
名媛妹妹 2021-02-15 11:17

If anybody can help me with this I would really appreciate it because it\'s driving me insane.

When I compile an OpenWRT image from scratch including my packages, usuall

相关标签:
4条回答
  • 2021-02-15 11:39

    Following this thread, a user noticed in my compilation output that it mentioned:

    make[3]: Nothing to be done for `all'.
    

    Comment:

    Is your src/ directory actually clean? I suspect it contains an "amldmonitor" executable already which was built for your host. Make sure your src/ directory does not contain any junk like *.o files or final executables.

    After inspecting my package source folder, it did indeed contain .o files and an executable.

    Removing this solved the issues I was having!

    0 讨论(0)
  • 2021-02-15 11:41

    OpenWRT doesn't support libc, it is to large to fit. It instead uses uClibc and EGLIBC because they are smaller. I'm not sure how you even get it to compile the first time, but I'll guess it didn't work right.

    You need to change your Makefile to have it reference one of those other libc's, but you could also try it without that dependency entirely and it may also work.

    Check out the "feeds/packages" directory and research for other Makefiles using libc in there, such as "feeds/packages/utils/owfs/Makefile" which has "DEPENDS+= +USE_UCLIBC:librpc".

    Good luck.

    0 讨论(0)
  • 2021-02-15 11:43

    I fixed this issue by including uclibc++.mk

    Add this to your package Makefile just above the include package.mk line.

    include $(INCLUDE_DIR)/uclibc++.mk

    I also added this to the package define:

    DEPENDS:=+libc

    0 讨论(0)
  • 2021-02-15 12:06

    you can try to "make clean "your folder countaining sources maybye it's should be your folder helloworld for some beginner like me (try again);and verify if your path is well define (try again); do this in your openwrt folder

    ./scripts/feeds update mypackages
    ./scripts/feeds install -a -p mypackages
    

    (try again)

    0 讨论(0)
提交回复
热议问题