yegord / snowman

Snowman decompiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to compile nocode standalone under Linux (Ubuntu)?

devtronic opened this issue · comments

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#

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.

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