Update install.md
"linux_ffmpeg" needs to be changed as well as "linux_opencv" for OpenCV 4
This commit is contained in:
		
							parent
							
								
									d144e564d8
								
							
						
					
					
						commit
						b61f5aaf21
					
				| 
						 | 
					@ -70,8 +70,8 @@ To build and run iOS apps:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Note: You may need to modify [`WORKSPACE`] and [`opencv_linux.BUILD`] to
 | 
					    Note: You may need to modify [`WORKSPACE`] and [`opencv_linux.BUILD`] to
 | 
				
			||||||
    point MediaPipe to your own OpenCV libraries, e.g., if OpenCV 4 is installed
 | 
					    point MediaPipe to your own OpenCV libraries, e.g., if OpenCV 4 is installed
 | 
				
			||||||
    in "/usr/local/", you need to update the "linux_opencv" new_local_repository
 | 
					    in "/usr/local/", you need to update the "linux_opencv" and "linux_ffmpeg" new_local_repository
 | 
				
			||||||
    rule in [`WORKSPACE`] and "opencv" cc_library rule in [`opencv_linux.BUILD`]
 | 
					    rules in [`WORKSPACE`] and "opencv" cc_library rule in [`opencv_linux.BUILD`]
 | 
				
			||||||
    like the following:
 | 
					    like the following:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ```bash
 | 
					    ```bash
 | 
				
			||||||
| 
						 | 
					@ -81,6 +81,12 @@ To build and run iOS apps:
 | 
				
			||||||
        path = "/usr/local",
 | 
					        path = "/usr/local",
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    new_local_repository(
 | 
				
			||||||
 | 
					        name = "linux_ffmpeg",
 | 
				
			||||||
 | 
					        build_file = "@//third_party:ffmpeg_linux.BUILD",
 | 
				
			||||||
 | 
					        path = "/usr/local"
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cc_library(
 | 
					    cc_library(
 | 
				
			||||||
        name = "opencv",
 | 
					        name = "opencv",
 | 
				
			||||||
        srcs = glob(
 | 
					        srcs = glob(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user