OpenWrt Forum Archive

Topic: [SOLVED] some packages are not shown in openwrt make menuconfig menu

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi
I have this issue that some packages are not shown in make menuconfig menu.
they are available in feeds folder in openwrt git folder but are not available in the menu to select.

the weird part is that I can search them in the menu and in search result it shows their place
like this :



Symbol: PACKAGE_minidlna [=n]                                                                                     │ 
  │ Type  : tristate                                                                                                  │ 
  │ Prompt: minidlna.................................... UPnP A/V & DLNA Media Server                                 │ 
  │   Location:                                                                                                       │ 
  │ (3) -> Multimedia                                                                                                 │ 
  │   Defined at tmp/.config-package.in:43270




but when I select that result it goes to the section that it say  that item is there ,in this example it shows this:
      Base system  --->                                                                      │ │ 
  │ │                        Administration  --->                                                                   │ │ 
  │ │                        Boot Loaders  ----                                                                     │ │ 
  │ │                        Development  --->                                                                      │ │ 
  │ │                        Firmware  --->                                                                         │ │ 
  │ │                        Kernel modules  --->                                                                   │ │ 
  │ │                        Languages  --->                                                                        │ │ 
  │ │                        Libraries  --->                                                                        │ │ 
  │ │                        LuCI  --->                                                                             │ │ 
  │ │                        Mail  --->                                                                             │ │ 
  │ │                        Multimedia  --->



and the multimedia part highlighted
but the item is not there.

the main package that right  now I am searching for is minidlna.

does this have anything to do with my router arch selected in make menuconfig?

ps: i know about single package compile.
I want to know if this behaviour is normal or not and if not how to fix it.

(Last edited by rezad1393 on 5 Nov 2015, 16:02)

rezad1393 wrote:

Symbol: PACKAGE_minidlna [=n]                                                                                     │ 
  │ Type  : tristate                                                                                                  │ 
  │ Prompt: minidlna.................................... UPnP A/V & DLNA Media Server                                 │ 
  │   Location:                                                                                                       │ 
  │ (3) -> Multimedia                                                                                                 │ 
  │   Defined at tmp/.config-package.in:43270
...
I want to know if this behaviour is normal or not and if not how to fix it.

Normal behaviour, but the package definition of minidlna is a bit complicated. The author is probably trying to ensure that you have a ffmpeg library available.

You left out the key line "Depends on:" from your message...

Symbol: PACKAGE_minidlna [=n]
  │ Type  : tristate
  │ Prompt: minidlna.................................... UPnP A/V & DLNA Media Server
  │   Location:
  │ (3) -> Multimedia
  │   Defined at tmp/.config-package.in:43270
  │   Depends on: PACKAGE_libffmpeg-custom [=n] || PACKAGE_libffmpeg-full [=n] ... 
  │   Selects: PACKAGE_libvorbis [=n] && PACKAGE_libc [=y] && PACKAGE_libexif [=n] ...
  │   Selected by: PACKAGE_luci-app-minidlna [=n] && (PACKAGE_libffmpeg-custom [=n] ...

The "Depends on" line shows you the conditions for this package being visible in menuconfig. The condition need to be true. This time there are several libffmpeg variants ORed (with || ), so one is enough. But currently all items on the line are not-selected "=n".

"Depends on" = pre-conditions for enabling this package. Needs to be true.
"Selects" = which packages will get automatically enabled when this package is enabled
"Selected by" = which packages enable this, is they are first enabled

If you first select e.g. libffmpeg-full (from the libraries section), then the minidlna item gets visible. I tested that just now.

Based on last line "Selected by",  this minidlna will also get automatically selected, if you select one libffmpeg variant and then luci-app-minidlna.

(Last edited by hnyman on 5 Nov 2015, 11:36)

before I saw your post I found out that it seems that I cant get minidlna to compile separately in openwrt dev env as  a single package.
it complains with this massage :

........
"
checking for linux/netlink.h... yes
checking libavutil/avutil.h usability... no
checking libavutil/avutil.h presence... no
checking for libavutil/avutil.h... no
checking ffmpeg/libavutil/avutil.h usability... no
checking ffmpeg/libavutil/avutil.h presence... no
checking for ffmpeg/libavutil/avutil.h... no
checking libav/libavutil/avutil.h usability... no
checking libav/libavutil/avutil.h presence... no
checking for libav/libavutil/avutil.h... no
checking avutil.h usability... no
checking avutil.h presence... no
checking for avutil.h... no
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libav/avutil.h usability... no
checking libav/avutil.h presence... no
checking for libav/avutil.h... no
checking libavutil/avutil.h usability... no
checking libavutil/avutil.h presence... no
checking for libavutil/avutil.h... no
checking ffmpeg/libavutil/avutil.h usability... no
checking ffmpeg/libavutil/avutil.h presence... no
checking for ffmpeg/libavutil/avutil.h... no
checking libav/libavutil/avutil.h usability... no
checking libav/libavutil/avutil.h presence... no
checking for libav/libavutil/avutil.h... no
checking avutil.h usability... no
checking avutil.h presence... no
checking for avutil.h... no
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libav/avutil.h usability... no
checking libav/avutil.h presence... no
checking for libav/avutil.h... no
configure: error: libavutil headers not found or not usable"

so it is seems to not accept my ffmpeg (installed on archlinux) as acceptable.

btw the ffmpeg items have the same behaviour as minidlna. they are search-able but not shown.
so 'make menuconfig' command checks the libraries (on my system) for all  packages first? and hide the ones that their dependencies are not available?

how do I fix this ffmpeg issue?
i have the standard archlinux install with ffmpeg installed.(the file that it complains about is in  ffmpeg package ,there is no dev package like in ubuntu's libavutil)


and also thanks for clearing the issue. I didn't know about this point.

and why this isn't in wiki?
this would save a lot of time for people like me.

(Last edited by rezad1393 on 5 Nov 2015, 15:12)

Menuconfig checks the items selected for the target firmware configuration.
host libraries do not have much role.

thank you for the prompt responses.

The discussion might have continued from here.