Skip to content

sqlite3.h not found on Windows #1001

Closed
Closed

Description

@sprkrd

Describe the bug

The sqlite3.h header is not found on Windows. Although I haven't tried, after taking a look at the CMakeLists.txt file and the conan_build.cmake file, I predict it won't be found also on Linux if SQLite3 is installed in a non-standard path (e.g. not /usr/include, /usr/local/include, etc).

How to Reproduce

Just try to build BT.CPP on Windows following the instructions for Conan. If you want to try on Linux (haven't done it myself), try to reproduce the build steps with sqlite3 in a non-standard path (i.e. a path the compiler doesn't search by default).

Proposed solution

Fortunately, I don't come just with a problem, but also with a solution :)

Fixing this issue is as easy as adding

list(APPEND BTCPP_EXTRA_INCLUDE_DIRS ${SQLite3_INCLUDE_DIRS})

after line 12 in conan_build.cmake. I can build BT.CPP just fine after that.

Activity

  1. changed the title [-]sqlite3.h not found in Windows[/-] [+]sqlite3.h not found on Windows[/+] on Sep 9, 2025
  2. sprkrd commented on Sep 9, 2025

    @sprkrd
    ContributorAuthor

    For your convenience, I've created a PR that solves this issue. Please consider merging it: #1002

  3. sprkrd commented on Sep 15, 2025

    @sprkrd
    ContributorAuthor

    Closed, PR #1002 merged.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions