Giter Club home page Giter Club logo

aistream's People

Contributors

aistream69 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aistream's Issues

webclient compile error

Hello. When I compile the webclient, the build/dev-server.js file cannot be found when execute npm run dev.

The error message is as follows:

image

npm run dev in package.json is as follow:

"scripts": {
  "dev": "cross-env NODE_ENV=online node build/dev-server.js",
  "local": "cross-env NODE_ENV=local node build/dev-server.js",
  "build": "node build/build.js",
  "unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
  "e2e": "node test/e2e/runner.js",
  "test": "npm run unit && npm run e2e",
  "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"
}

project build error: Could not find a package configuration file provided by "Protobuf"

${PROJECT_ROOT_PATH}/work/pkg/pre_build.sh, the file does not exist in the directory.

And Protobuf not found when compiling the grpc_common.cmake:104.

How can I fix this error. Or just miss the pre_build.sh? Looking forward to your answers.

Cmake compilation log is as follows:

-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- BUILD INFO:
--      Plugins: ON
--      Prefix: /app/aistream/build/release
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at cmake/grpc_common.cmake:104 (find_package):
  Could not find a package configuration file provided by "Protobuf" with any
  of the following names:

    ProtobufConfig.cmake
    protobuf-config.cmake

  Add the installation prefix of "Protobuf" to CMAKE_PREFIX_PATH or set
  "Protobuf_DIR" to a directory containing one of the above files.  If
  "Protobuf" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  plugins/official/grpc_test/CMakeLists.txt:5 (include)

-- Configuring incomplete, errors occurred!

The cmakelists.txt as follow:

cmake_minimum_required(VERSION 3.5)

project (AISTREAM)

set(PROJECT_ROOT_PATH "${AISTREAM_SOURCE_DIR}")
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_INSTALL_PREFIX "${PROJECT_ROOT_PATH}/build/release")

if(NOT EXISTS "cfg")
    execute_process(COMMAND ln -s ../cfg cfg)
endif()
if(NOT EXISTS "lib")
    execute_process(COMMAND ln -s ../plugins/lib lib)
endif()
if(NOT EXISTS "samples")
    execute_process(COMMAND ln -s ../samples samples)
endif()
if(NOT EXISTS "data")
    execute_process(COMMAND ln -s ../work/data data)
endif()
if(NOT EXISTS ${PROJECT_ROOT_PATH}/plugins/lib)
    execute_process(COMMAND mkdir -p ${PROJECT_ROOT_PATH}/plugins/lib)
endif()

option(PLUGINS "Plugins" ON)
message(STATUS "BUILD INFO:")
message(STATUS "\tPlugins: ${PLUGINS}")
message(STATUS "\tPrefix: ${CMAKE_INSTALL_PREFIX}")

execute_process(COMMAND ${PROJECT_ROOT_PATH}/work/pkg/pre_build.sh)

add_subdirectory(src)
add_subdirectory(work/cjson)
add_subdirectory(plugins)

include(cmake/libevent.cmake)
include(cmake/opencv.cmake)
include(cmake/ffmpeg.cmake)
include(cmake/x264.cmake)
include(cmake/rtsp.cmake)
include(cmake/eigen.cmake)
include(cmake/rabbitmq.cmake)
include(cmake/mongodb.cmake)
include(cmake/freetype.cmake)
#include(cmake/grpc.cmake)
add_dependencies(ffmpeg x264)

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.