New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile nocode standalone under Linux (Ubuntu)? #189

Closed
devtronic opened this Issue Jan 22, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@devtronic
Copy link

devtronic commented Jan 22, 2019

I'm not very familar with compiling under linux. Can you spot the problem?

I cloned the repo and runned cmake src/nocode

root@h2686404:~/projects/snowman/build# cmake ../src/nocode/
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.10)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /root/projects/snowman/build
root@h2686404:~/projects/snowman/build# cmake --build .
Scanning dependencies of target nocode
[ 50%] Building CXX object CMakeFiles/nocode.dir/main.o
/root/projects/snowman/src/nocode/main.cpp:25:10: fatal error: nc/config.h: No such file or directory
 #include <nc/config.h>
          ^~~~~~~~~~~~~
compilation terminated.
CMakeFiles/nocode.dir/build.make:62: recipe for target 'CMakeFiles/nocode.dir/main.o' failed
make[2]: *** [CMakeFiles/nocode.dir/main.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/nocode.dir/all' failed
make[1]: *** [CMakeFiles/nocode.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
root@h2686404:~/projects/snowman/build#
@yegord

This comment has been minimized.

Copy link
Owner

yegord commented Jan 22, 2019

cmake ../src/nocode/

The /nocode/ part should not be there.

Please consider following the build instructions: https://github.com/yegord/snowman/blob/master/doc/build.asciidoc
They describe the process of building everything, including nocode.

@devtronic

This comment has been minimized.

Copy link
Author

devtronic commented Jan 22, 2019

Thank you, I forgot to install libboost and libqt4-dev :-)

@devtronic devtronic closed this Jan 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment