Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6172839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:27:46+00:00 2026-05-23T23:27:46+00:00

I’m having a problem with CMake finding Boost headers (specifically thread ). In my

  • 0

I’m having a problem with CMake finding Boost headers (specifically thread).

In my CMakeLists.txt file… (non-Boost related script omitted for brevity)

… 
find_package(Boost COMPONENTS thread REQUIRED)

…

#this prints /Users/thomas/boost_1_47_0/boost
MESSAGE(${Boost_INCLUDE_DIR}) 

include_directories(${Boost_INCLUDE_DIR})

…

target_link_libraries(MY_PROG ${Boost_THREAD_LIBRARY})

CMake configures and generates makefiles fine, but I get this compile error:

error: boost/thread.hpp: No such file or directory

Thanks,
Dragonwrenn

P.S: Here’s the generated Makefile in case its useful

# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8

# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target

#=============================================================================
# Special targets provided by cmake.

# Disable implicit rules so canoncical targets will work.
.SUFFIXES:

# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =

.SUFFIXES: .hpux_make_needs_suffix_list

# Suppress display of executed commands.
$(VERBOSE).SILENT:

# A target that is always out of date.
cmake_force:
.PHONY : cmake_force

#=============================================================================
# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh

# The CMake executable.
CMAKE_COMMAND = "/Applications/CMake 2.8-3.app/Contents/bin/cmake"

# The command to remove a file.
RM = "/Applications/CMake 2.8-3.app/Contents/bin/cmake" -E remove -f

# The program to use to edit the cache.
CMAKE_EDIT_COMMAND = "/Applications/CMake 2.8-3.app/Contents/bin/ccmake"

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /Users/thomas/svn/simple-atlas-texture-generator

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /Users/thomas/svn/simple-atlas-texture-generator/unix_makefiles

#=============================================================================
# Targets provided globally by CMake.

# Special rule for the target edit_cache
edit_cache:
    @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
    "/Applications/CMake 2.8-3.app/Contents/bin/ccmake" -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : edit_cache

# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast

# Special rule for the target rebuild_cache
rebuild_cache:
    @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
    "/Applications/CMake 2.8-3.app/Contents/bin/cmake" -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache

# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast

# The main all target
all: cmake_check_build_system
    $(CMAKE_COMMAND) -E cmake_progress_start /Users/thomas/svn/simple-atlas-texture-generator/unix_makefiles/CMakeFiles /Users/thomas/svn/simple-atlas-texture-generator/unix_makefiles/CMakeFiles/progress.marks
    $(MAKE) -f CMakeFiles/Makefile2 all
    $(CMAKE_COMMAND) -E cmake_progress_start /Users/thomas/svn/simple-atlas-texture-generator/unix_makefiles/CMakeFiles 0
.PHONY : all

# The main clean target
clean:
    $(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean

# The main clean target
clean/fast: clean
.PHONY : clean/fast

# Prepare targets for installation.
preinstall: all
    $(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall

# Prepare targets for installation.
preinstall/fast:
    $(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast

# clear depends
depend:
    $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend

#=============================================================================
# Target rules for targets named Atlas_Texture_Generator

# Build rule for target.
Atlas_Texture_Generator: cmake_check_build_system
    $(MAKE) -f CMakeFiles/Makefile2 Atlas_Texture_Generator
.PHONY : Atlas_Texture_Generator

# fast build rule for target.
Atlas_Texture_Generator/fast:
    $(MAKE) -f CMakeFiles/Atlas_Texture_Generator.dir/build.make CMakeFiles/Atlas_Texture_Generator.dir/build
.PHONY : Atlas_Texture_Generator/fast

src/Controller.o: src/Controller.cpp.o
.PHONY : src/Controller.o

# target to build an object file
src/Controller.cpp.o:
    $(MAKE) -f CMakeFiles/Atlas_Texture_Generator.dir/build.make CMakeFiles/Atlas_Texture_Generator.dir/src/Controller.cpp.o
.PHONY : src/Controller.cpp.o

src/Controller.i: src/Controller.cpp.i
.PHONY : src/Controller.i

# target to preprocess a source file
src/Controller.cpp.i:
    $(MAKE) -f CMakeFiles/Atlas_Texture_Generator.dir/build.make CMakeFiles/Atlas_Texture_Generator.dir/src/Controller.cpp.i
.PHONY : src/Controller.cpp.i

src/Controller.s: src/Controller.cpp.s
.PHONY : src/Controller.s

# target to generate assembly for a file
src/Controller.cpp.s:
    $(MAKE) -f CMakeFiles/Atlas_Texture_Generator.dir/build.make CMakeFiles/Atlas_Texture_Generator.dir/src/Controller.cpp.s
.PHONY : src/Controller.cpp.s

src/ImageHandler.o: src/ImageHandler.cpp.o
.PHONY : src/ImageHandler.o

# target to build an object file
src/ImageHandler.cpp.o:
    $(MAKE) -f CMakeFiles/Atlas_Texture_Generator.dir/build.make CMakeFiles/Atlas_Texture_Generator.dir/src/ImageHandler.cpp.o
.PHONY : src/ImageHandler.cpp.o

src/ImageHandler.i: src/ImageHandler.cpp.i
.PHONY : src/ImageHandler.i

# target to preprocess a source file
src/ImageHandler.cpp.i:
    $(MAKE) -f CMakeFiles/Atlas_Texture_Generator.dir/build.make CMakeFiles/Atlas_Texture_Generator.dir/src/ImageHandler.cpp.i
.PHONY : src/ImageHandler.cpp.i

src/ImageHandler.s: src/ImageHandler.cpp.s
.PHONY : src/ImageHandler.s

# target to generate assembly for a file
src/ImageHandler.cpp.s:
    $(MAKE) -f CMakeFiles/Atlas_Texture_Generator.dir/build.make CMakeFiles/Atlas_Texture_Generator.dir/src/ImageHandler.cpp.s
.PHONY : src/ImageHandler.cpp.s

# Help Target
help:
    @echo "The following are some of the valid targets for this Makefile:"
    @echo "... all (the default if no target is provided)"
    @echo "... clean"
    @echo "... depend"
    @echo "... Atlas_Texture_Generator"
    @echo "... edit_cache"
    @echo "... rebuild_cache"
    @echo "... src/Controller.o"
    @echo "... src/Controller.i"
    @echo "... src/Controller.s"
    @echo "... src/ImageHandler.o"
    @echo "... src/ImageHandler.i"
    @echo "... src/ImageHandler.s"
.PHONY : help



#=============================================================================
# Special targets to cleanup operation of make.

# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
    $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:27:47+00:00Added an answer on May 23, 2026 at 11:27 pm

    Since the error states error: boost/thread.hpp: No such file or directory, your Boost_INCLUDE_DIR should be changed from /Users/thomas/boost_1_47_0/boost to /Users/thomas/boost_1_47_0

    That should solve the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want use html5's new tag to play a wav file (currently only supported
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
i want to parse a xhtml file and display in UITableView. what is the
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a reasonable size flat file database of text documents mostly saved in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.