Results 1 to 2 of 2

Thread: Referencing environment variables in eclipse integration project

  1. #1
    Join Date
    Feb 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Referencing environment variables in eclipse integration project

    I am trying to use boost in an QT Eclipse Integration project. I got an example to compile, but the indexer see the boost directory.

    Here's my .pro file:
    Qt Code:
    1. TEMPLATE = app
    2. TARGET = qtest
    3.  
    4. BOOST_VER = 1_45_0
    5.  
    6. QT += core gui
    7. INCLUDEPATH += "$$(BOOST)/include/boost-$$BOOST_VER"
    8. LIBS += -L"$$(BOOST)/lib/boost-$$BOOST_VER"
    9. HEADERS += qtest.h
    10. SOURCES += main.cpp \
    11. qtest.cpp
    12. FORMS += qtest.ui
    13. RESOURCES +=
    To copy to clipboard, switch view to plain text mode 

    BOOST is an environment variable pointing to the boost directory, and I would like to use that variable everywhere I reference it.

    How can I make the indexer see the boost dir? In other words, how do I use this environment variable in Project->Properties->C++ Include paths and symbols?

    Regards,
    Kris

  2. #2
    Join Date
    Feb 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Referencing environment variables in eclipse integration project

    Does noone know the answer, or did I ask in an invalid way?

Similar Threads

  1. Replies: 7
    Last Post: 22nd December 2010, 09:13
  2. Replies: 0
    Last Post: 24th November 2010, 12:11
  3. Environment variables in project .includes?
    By Karmaflute in forum Qt Tools
    Replies: 4
    Last Post: 26th November 2009, 01:59
  4. [Eclipse/Integration] Project Settings dialog problems
    By BrainB0ne in forum Installation and Deployment
    Replies: 0
    Last Post: 23rd January 2008, 16:52
  5. Accessing Environment Variables
    By mhoover in forum Qt Programming
    Replies: 6
    Last Post: 21st September 2006, 16:05

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.