Re: [blfs-dev] v4l-utils and SDL2 (may require setting flags)

2020-03-31 Thread Tim Tassonis via blfs-dev

Hi Ryan

On 3/30/20 8:50 PM, Ryan Marsaw via blfs-dev wrote:

Hello all.

When building v4l-utils per BLFS instructions I get the following at the
configure stage:

[...]
checking for SDL2... no
[...]

The only way I could get v4l-utils to recognize SDL2 was to set
SDL2_LIBS and SDL2_CFLAGS:

SDL2_LIBS=/usr/lib SDL2_CFLAGS=/usr/include/SDL2 ./configure ...

Can anyone else confirm this?



As I have SDL2 in /opt/X11, I always had to use those:

SDL2_CFLAGS="-I/opt/X11/include/SDL2   -D_REENTRANT" export SDL2_CFLAGS
SDL2_LIBS="-L/opt/X11/lib -Wl,-rpath,-L/opt/X11/lib 
-Wl,--enable-new-dtags -lSDL2 -lSDL2_image" export SDL2_LIBS



As Bruce mentioned, your problem might be SDL2_image, this is needed for 
sdl support.




Bye
Tim
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] v4l-utils and SDL2 (may require setting flags)

2020-03-31 Thread Ryan Marsaw via blfs-dev

On Mon, 30 Mar 2020, Bruce Dubbs via blfs-dev wrote:


On 3/30/20 1:50 PM, Ryan Marsaw via blfs-dev wrote:

Hello all.

When building v4l-utils per BLFS instructions I get the following at the
configure stage:

[...]
checking for SDL2... no
[...]

The only way I could get v4l-utils to recognize SDL2 was to set
SDL2_LIBS and SDL2_CFLAGS:

SDL2_LIBS=/usr/lib SDL2_CFLAGS=/usr/include/SDL2 ./configure ...

Can anyone else confirm this?


Did you try running ldconfig?

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page



Hi Bruce.

It appears the reason SDL2 wasn't being picked up by v4l-utils is that
it checks for SDL2 as well as SDL_image, which is a separate package:

https://www.libsdl.org/projects/SDL_image/

I installed SDL_image and v4l-utils was then able to detect SDL2 as per
BLFS instructions.

Perhaps a note on the v4l-utils page should mention that SDL_image is
required in order to have SDL2 support.

Cheers,

--Ryan
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] v4l-utils and SDL2 (may require setting flags)

2020-03-30 Thread Ryan Marsaw via blfs-dev

On Mon, 30 Mar 2020, Bruce Dubbs via blfs-dev wrote:


On 3/30/20 1:50 PM, Ryan Marsaw via blfs-dev wrote:

Hello all.

When building v4l-utils per BLFS instructions I get the following at the
configure stage:

[...]
checking for SDL2... no
[...]

The only way I could get v4l-utils to recognize SDL2 was to set
SDL2_LIBS and SDL2_CFLAGS:

SDL2_LIBS=/usr/lib SDL2_CFLAGS=/usr/include/SDL2 ./configure ...

Can anyone else confirm this?


Did you try running ldconfig?

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page



I ran it just now, and received the same message.

--Ryan
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] v4l-utils and SDL2 (may require setting flags)

2020-03-30 Thread Bruce Dubbs via blfs-dev

On 3/30/20 1:50 PM, Ryan Marsaw via blfs-dev wrote:

Hello all.

When building v4l-utils per BLFS instructions I get the following at the
configure stage:

[...]
checking for SDL2... no
[...]

The only way I could get v4l-utils to recognize SDL2 was to set
SDL2_LIBS and SDL2_CFLAGS:

SDL2_LIBS=/usr/lib SDL2_CFLAGS=/usr/include/SDL2 ./configure ...

Can anyone else confirm this?


Did you try running ldconfig?

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-dev] v4l-utils and SDL2 (may require setting flags)

2020-03-30 Thread Ryan Marsaw via blfs-dev

Hello all.

When building v4l-utils per BLFS instructions I get the following at the
configure stage:

[...]
checking for SDL2... no
[...]

The only way I could get v4l-utils to recognize SDL2 was to set
SDL2_LIBS and SDL2_CFLAGS:

SDL2_LIBS=/usr/lib SDL2_CFLAGS=/usr/include/SDL2 ./configure ...

Can anyone else confirm this?

Cheers,

--Ryan
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page