janstarke / rexgen

API Documentation
https://github.com/janstarke/rexgen/blob/master/doc/api.md
GNU General Public License v2.0
52 stars 20 forks source link

install.sh: cmake,doxygen, file does not exist. #51

Closed capsicumw closed 7 years ago

capsicumw commented 7 years ago

May just be a simple dir creation issue. install.sh fails at the Doxygen stage rexgen v2.0.8 The system is: Ubuntu 16.04.4, kernel is Linux - 4.4.0-87-generic - x86_64 When I run install.sh mypc:~/localpacks/src/rexgen$./install.sh output is

entering /home/user/localpackages/src/rexgen/build
running >>> cmake  -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_BUILD_TYPE=RELEASE /home/user/localpackages/src/rexgen/src <<<
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") 
CMake Error: File /home/user/localpackages/src/rexgen/src/../docs/Doxyfile.in does not exist.
CMake Error at cmake/doxygen.cmake:4 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:8 (include)

 creating rexgen 2.0.8
-- COMPILING OPTIMIZED VERSION: RELEASE
-- Found BISON: /usr/bin/bison (found suitable version "3.0.4", minimum required is "2.3") 
-- Found FLEX: /usr/bin/flex (found suitable version "2.6.0", minimum required is "2.5") 
-- Configuring incomplete, errors occurred!
See also "/home/user/localpackages/src/rexgen/build/CMakeFiles/CMakeOutput.log".
[sudo] password for user: 
capsicumw commented 7 years ago

I haven't tested beyond successfully running ./install.sh but I solved the upfront issue. Added ./rexgen/docs/DoxyFile.in which I generated with $doxygen -g The only mods I made to the default DoxyFile was to add the ".in" file extension (as that is how it is written in rexgen/src/cmake/doxygen.cmake and it wouldn't recgnize the plain DoxyFile name) and I changed from default NO to YES on the line OPTIMIZE_OUTPUT_FOR_C = YES though I also had success with it set to NO. NO is intended for C++.

capsicumw commented 7 years ago

Made changes in a fork and submitted pull request.