Giter Site home page Giter Site logo

Comments (11)

Ullaakut avatar Ullaakut commented on July 19, 2024

Do you really need to manually build Cameradar? You should not need to except if you want to make changes to the code.

As the logs state, there is more information in the files that match /home/lionsec/cameradar/deps/mysql-connector/src/deps.mysql_connector-stamp/deps.mysql_connector-configure-*.log.

Please comment the output of the command cat /home/lionsec/cameradar/deps/mysql-connector/src/deps.mysql_connector-stamp/deps.mysql_connector-configure-*.log in here.

from cameradar.

aliabusaad avatar aliabusaad commented on July 19, 2024

lionsec@ubuntu:~/cameradar/deployment$ cat /home/lionsec/cameradar/deps/mysql-connector/src/deps.mysql_connector-stamp/deps.mysql_connector-configure-.log
CMake Error at FindMySQL.cmake:556 (message):
Could not find "mysql.h" from searching "/usr/include/mysql
/usr/local/include/mysql /opt/mysql/mysql/include
/opt/mysql/mysql/include/mysql /usr/local/mysql/include
/usr/local/mysql/include/mysql /MySQL/
/include /MySQL/*/include"
Call Stack (most recent call first):
CMakeLists.txt:217 (INCLUDE)

-- Environment compile flags: -fexceptions
-- Environment link flags:
-- Boost version: 1.58.0
-- BOOST_INCLUDE_DIRS=/usr/include
-- You will link dynamically to the MySQL client library (set with -DMYSQLCLIENT_STATIC_LINKING=)
-- Searching for dynamic libraries with the base name(s) "mysqlclient_r mysqlclient"
-- Configuring incomplete, errors occurred!
See also "/home/lionsec/cameradar/deps/mysql-connector/src/deps.mysql_connector/CMakeFiles/CMakeOutput.log".

from cameradar.

Ullaakut avatar Ullaakut commented on July 19, 2024

You need to install the mysql libraries on your machine in order to manually build cameradar.

Here is everything the Dockerfile uses:

  • nmap
  • ffmpeg
  • libboost-all-dev
  • libgstreamer1.0-dev
  • gstreamer1.0-plugins-base
  • gstreamer1.0-plugins-good
  • libcurl4-openssl-dev
  • libmysqlclient20 (if you have ubuntu 14.04 the version will not be the same. It's the 18 instead iirc)
  • mysql-client

Can you tell me why you need to build Cameradar manually instead of using the Docker image?

from cameradar.

aliabusaad avatar aliabusaad commented on July 19, 2024

so do i use docker better ?

from cameradar.

Ullaakut avatar Ullaakut commented on July 19, 2024

Docker allows you to always use the latest version, avoid installing useless dependencies on your computer, and it avoids the pain to build the software. If you need help on how to use docker, feel free to ask :)

from cameradar.

aliabusaad avatar aliabusaad commented on July 19, 2024

its ok now but i got this when i make a scan
Cameradar version 1.1.4
Build 20170701164735
[2017-07-01 20:17:36.515] [cameradar] [info] (main::main:95): No log level set, using log level 1
[2017-07-01 20:17:36.515] [cameradar] [warning] (main::load:193): No custom path set, trying to use default path: conf/cameradar.conf.json
[2017-07-01 20:17:36.516] [cameradar] [debug] (configuration::load_url:95): Trying to open url file from /cameradar/conf/url.json
[2017-07-01 20:17:36.516] [cameradar] [error] (configuration::load_url:124): Could not load ids file. Make sure you provided a valid path in your configuration file.
[2017-07-01 20:17:36.516] [cameradar] [debug] (configuration::load_ids:50): Trying to open ids file from /cameradar/conf/ids.json
[2017-07-01 20:17:36.516] [cameradar] [error] (configuration::load_ids:85): Could not load ids file. Make sure you provided a valid path in your configuration file.

from cameradar.

Ullaakut avatar Ullaakut commented on July 19, 2024

As the logs say, the configuration file contains the paths to the dictionaries. The default path (used in the docker image) is /cameradar/conf which probably does not exist on your machine. You should edit the configuration file to suit your needs.

Once again, if you're not sure how all of this works, the docker image is way easier to use.

from cameradar.

aliabusaad avatar aliabusaad commented on July 19, 2024

i will try with docker

from cameradar.

aliabusaad avatar aliabusaad commented on July 19, 2024

[100%] Built target mysql_cache_manager
Run CPack packaging tool...
CPack: Create package using TGZ
CPack: Install projects
CPack: - Run preinstall target for: cameradar
CPack: - Install project: cameradar
CPack: Create package
CPack: - package: /home/lionsec/cameradar/build/cameradar_1.1.4_Release_Linux.tar.gz generated.
OK!
lionsec@ubuntu:~/cameradar/deployment$ docker-compose build cameradar
Unsupported config option for services service: 'cameradar'

from cameradar.

Ullaakut avatar Ullaakut commented on July 19, 2024

Your version of docker-composer is probably not right. However, when I said that you could use docker I didnt mean that you needed to build the Docker image yourself: as the first part of the readme says...

screen shot 2017-07-01 at 21 19 11

This will automatically download an already built image of Cameradar on the internet and run it on your machine.

Please tell me if you need more information!

from cameradar.

Ullaakut avatar Ullaakut commented on July 19, 2024

I guess that since you didn't add any questions, using the DH image worked out for you. I'm closing this ticket but feel free to reopen it if your problem isn't solved.

from cameradar.

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.