Skip to content

Confusing error message when libsqlite is missing during "cmake ." #1143

@techee

Description

@techee

Details for the issue

When trying to bisect #1142 I didn't quite read what dependencies I need and just tried following the errors that "cmake ." gives me. This eventually lead me to this message:

-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.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
-- Found Antlr2: /usr/lib/libantlr.a  
-- Could NOT find QScintilla (missing:  QSCINTILLA_INCLUDE_DIR) 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBSQLITE
    linked by target "sqlitebrowser" in directory /home/techet/sqlitebrowser

-- Configuring incomplete, errors occurred!
See also "/home/techet/sqlitebrowser/CMakeFiles/CMakeOutput.log".

From this message it seems that what is missing is the QScintilla dependency (which actually isn't true as it's part of the sources) but in fact, the missing dependency was libsqlite in my case. It would save quite a lot of time to the project newcomers if the message was a bit clearer.

Useful extra information

I'm opening this issue because:

  • DB4S is crashing
  • DB4S has a bug
  • DB4S needs a feature
  • DB4S has another problem

I'm using DB4S on:

  • Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using DB4S version:

  • 3.10.0
  • 3.10.0-beta*
  • 3.9.1
  • Other: current master

I have also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions