Git Product home page Git Product logo

Comments (20)

FD- avatar FD- commented on August 16, 2024

Are you sure this is the whole output? There is no indication on why it failed.

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

This is all output:

pi@raspberrypi:~/RPiPlay/build $ make
[ 0%] Building C object renderers/h264-bitstream/CMakeFiles/h264-bitstream.dir/h264_stream.c.o
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘read_scaling_list’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:466:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int j = 0; j < sizeOfScalingList; j++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:466:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘read_svc_vui_parameters_extension’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:564:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i = 0; i <= sps_svc_ext->vui.vui_ext_num_entries_minus1; i++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘read_hrd_parameters’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:676:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int SchedSelIdx = 0; SchedSelIdx <= hrd->cpb_cnt_minus1; SchedSelIdx++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘read_pic_parameter_set_rbsp’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:726:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i_group = 0; i_group <= pps->num_slice_groups_minus1; i_group++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:733:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i_group = 0; i_group < pps->num_slice_groups_minus1; i_group++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:749:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i = 0; i <= pps->pic_size_in_map_units_minus1; i++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:780:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i = 0; i < 6 + 2* pps->transform_8x8_mode_flag; i++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘write_scaling_list’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:1795:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int j = 0; j < sizeOfScalingList; j++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘write_svc_vui_parameters_extension’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:1893:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i = 0; i <= sps_svc_ext->vui.vui_ext_num_entries_minus1; i++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘write_hrd_parameters’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:2005:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int SchedSelIdx = 0; SchedSelIdx <= hrd->cpb_cnt_minus1; SchedSelIdx++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘write_pic_parameter_set_rbsp’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:2055:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i_group = 0; i_group <= pps->num_slice_groups_minus1; i_group++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:2062:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i_group = 0; i_group < pps->num_slice_groups_minus1; i_group++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:2078:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i = 0; i <= pps->pic_size_in_map_units_minus1; i++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:2109:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i = 0; i < 6 + 2* pps->transform_8x8_mode_flag; i++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘read_debug_scaling_list’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:3124:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int j = 0; j < sizeOfScalingList; j++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘read_debug_svc_vui_parameters_extension’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:3222:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i = 0; i <= sps_svc_ext->vui.vui_ext_num_entries_minus1; i++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘read_debug_hrd_parameters’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:3334:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int SchedSelIdx = 0; SchedSelIdx <= hrd->cpb_cnt_minus1; SchedSelIdx++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c: In function ‘read_debug_pic_parameter_set_rbsp’:
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:3384:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i_group = 0; i_group <= pps->num_slice_groups_minus1; i_group++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:3391:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i_group = 0; i_group < pps->num_slice_groups_minus1; i_group++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:3407:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i = 0; i <= pps->pic_size_in_map_units_minus1; i++ )
^
/home/pi/RPiPlay/renderers/h264-bitstream/h264_stream.c:3438:13: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for( int i = 0; i < 6 + 2* pps->transform_8x8_mode_flag; i++ )
^
renderers/h264-bitstream/CMakeFiles/h264-bitstream.dir/build.make:62: recipe for target 'renderers/h264-bitstream/CMakeFiles/h264-bitstream.dir/h264_stream.c.o' failed
make[2]: *** [renderers/h264-bitstream/CMakeFiles/h264-bitstream.dir/h264_stream.c.o] Error 1
CMakeFiles/Makefile2:569: recipe for target 'renderers/h264-bitstream/CMakeFiles/h264-bitstream.dir/all' failed
make[1]: *** [renderers/h264-bitstream/CMakeFiles/h264-bitstream.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

from rpiplay.

FD- avatar FD- commented on August 16, 2024

Did cmake succeed before that?

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

Yes

from rpiplay.

FD- avatar FD- commented on August 16, 2024

Did you use git clone for getting the project files?

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

Yes, I use this commands
git clone https://github.com/FD-/RPiPlay.git
cd RPiPlay

from rpiplay.

FD- avatar FD- commented on August 16, 2024

Please try if adding

set (CMAKE_C_STANDARD 11)

after

set (CMAKE_CXX_STANDARD 11)

In the top-level CMakeList.txt fixes the problem.

from rpiplay.

FD- avatar FD- commented on August 16, 2024

You must be using an old version of GCC. What system are you running and what gcc version do you use?

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

Please try if adding

set (CMAKE_C_STANDARD 11)

after

set (CMAKE_CXX_STANDARD 11)

In the top-level CMakeList.txt fixes the problem.

Its not help. I check that I have GCC version 4.9.2

from rpiplay.

FD- avatar FD- commented on August 16, 2024

That's the problem then. Why are you using this old gcc version? What system are you using?

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

I don't know) Im not a pro user. I have Raspbian GNU/Linux 8 (jessie)

from rpiplay.

FD- avatar FD- commented on August 16, 2024

You don't need to be a pro user to keep your system updated. Jessie is almost 5 years old.

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

How I can update my system? I make sudo apt-get update and upgrade options yesterday.

from rpiplay.

FD- avatar FD- commented on August 16, 2024

Major OS updates require a reflash. Google is your friend.

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

Thank your very much!)

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

I upgrade my Raspberry to (stretch) and version of GCC now is 6.3.0. I tried to install RPiPlay again, and have new errors:

pi@raspberrypi:~ $ cd RPiPlay
pi@raspberrypi:/RPiPlay $ cd build
pi@raspberrypi:
/RPiPlay/build $ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/RPiPlay/build
pi@raspberrypi:~/RPiPlay/build $ make
[ 2%] Built target h264-bitstream
[ 2%] Built target curve25519
[ 7%] Built target ed25519
[ 10%] Built target playfair
[ 15%] Built target plist
[ 23%] Built target airplay
[ 24%] Built target ilclient
[ 97%] Built target fdk-aac
[ 99%] Built target renderers
[100%] Linking CXX executable rpiplay
lib/libairplay.a(crypto.c.o): In function aes_reset': crypto.c:(.text+0x35c): undefined reference to EVP_CIPHER_CTX_reset'
lib/libairplay.a(crypto.c.o): In function sha_init': crypto.c:(.text+0x754): undefined reference to EVP_MD_CTX_new'
lib/libairplay.a(crypto.c.o): In function sha_reset': crypto.c:(.text+0x8a8): undefined reference to EVP_MD_CTX_reset'
lib/libairplay.a(crypto.c.o): In function sha_destroy': crypto.c:(.text+0x924): undefined reference to EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status
CMakeFiles/rpiplay.dir/build.make:110: recipe for target 'rpiplay' failed
make[2]: *** [rpiplay] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/rpiplay.dir/all' failed
make[1]: *** [CMakeFiles/rpiplay.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

from rpiplay.

FD- avatar FD- commented on August 16, 2024

You have an old version of libssl.

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

Ok, thank you, I installed this) How I can start use this? Then I print rpiplay - nothing happens

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

Sorry for my stupidity. I open folder with rpiplay and start service- and I see rpiplay on my iPhone, but when I tried to send video from iphone - my iPhone said "failed to connect"

from rpiplay.

GhostR111der avatar GhostR111der commented on August 16, 2024

Yeeeeeeee) Its work! Thank you for your great job. I just update AVAHI)

from rpiplay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.