1

I need the boost library for a project on my Raspberry Pi 2. I use QTCreator for coding but I cant add the Library. I tried to add this to the .pro file of my project in QTCreator:

LIBS += -L/usr/include/boost -lboost_chrono

I installed the boost Library using:

sudo apt-get install libboost1.55-all

If I try to compile my code I get the "boost/chrono.hpp no such file or directory". I read somewhere that I have to compile the Library first using the same compiler as QtCreator (usually mingw) but I have no clue how to do that.(Im a beginner with the raspberry and the linux system in general)

Thx for your help

Dennis
  • 21
  • 1
  • 7

1 Answers1

0
LIBS += -L

This adds a path to the linker. Your error is related to a path in the include. You should add the boost path via

INCLUDEPATH +=

As mentioned here: How to add include path in Qt Creator?

Community
  • 1
  • 1
JefGli
  • 781
  • 3
  • 15