I'm using an IDE called Qt Creator but looking at the C++ stuff in it, it says that it can't find much of the inbuilt libraries. If I run 'echo$PATH', it's empty. But I've modified the ~/.bash_profile to look like this :- =============== [chris@localhost ~]$ cat ~/.bash_profile # .bash_profile
# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc PATH=$PATH:/home/chris/qt/bin fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH unset USERNAME ===============
The question is, well 2 questions, 1, have I modified the correct file, and 2 if I have done the correct file, have I modified it in the correct way?
I'm not 100% clear on what you are trying to do but setting PATH will have no affect on whether or not something can find libraries. PATH is just the search path used to search for executable files when you try and run them.
Are we talking about libraries QT Creator needs to start or development libraries you need to build something ?
On Fri, 04 Oct 2013 21:00:15 +0100 Wayne Stallwood ALUGlist@digimatic.co.uk wrote:
I'm not 100% clear on what you are trying to do but setting PATH will have no affect on whether or not something can find libraries. PATH is just the search path used to search for executable files when you try and run them.
Are we talking about libraries QT Creator needs to start or development libraries you need to build something ?
Yes. It's the Qt stuff that Creator can't find. I had the same problem in Windows and fixed that by editing the path in Environment Variables. I assumed I would need to do the same here.
On 3 October 2013 11:28, Chris Walker cdw_alug@the-walker-household.co.uk wrote:
I'm using an IDE called Qt Creator but looking at the C++ stuff in it,
What's 'it' in this context?
it says that it can't find much of the inbuilt libraries. If I run
What's 'it' in this context?
Are you trying to get Qt Creator to detect where your Qt libraries are so it knows how to build your project? In Qt Creator, Tools -> Options -> Build & Run.
Check what Auto-detected contains. On my system this is empty.. Odd. I have a manual entry, I believe you just browse to the the directory where qmake is installed and select qmake (may have to remove file filter and select the file in the dialog). Seems it somehow pulls out all relevant QT_* environment variables.
'echo$PATH', it's empty. But I've modified the ~/.bash_profile to look
In a terminal, type:
which qmake
if it returns qmake, your path is probably correct.
Regards, Srdjan
On Fri, 4 Oct 2013 21:19:33 +0100 Srdjan Todorovic todorovic.s@googlemail.com wrote:
On 3 October 2013 11:28, Chris Walker cdw_alug@the-walker-household.co.uk wrote:
I'm using an IDE called Qt Creator but looking at the C++ stuff in it,
What's 'it' in this context?
My project within Creator.
it says that it can't find much of the inbuilt libraries. If I run
What's 'it' in this context?
The C++ code.
Are you trying to get Qt Creator to detect where your Qt libraries are so it knows how to build your project? In Qt Creator, Tools -> Options -> Build & Run.
I've set that so it knows where to look.
Check what Auto-detected contains. On my system this is empty.. Odd.
It is here too.
I have a manual entry, I believe you just browse to the the directory where qmake is installed and select qmake (may have to remove file filter and select the file in the dialog). Seems it somehow pulls out all relevant QT_* environment variables.
I'm running Qt Creator 2.7.0 which then says Based on Qt 5.0.2 (64 bit) but I've added Qt 4.8.3 as that's the latest version supported on Blackberry Playbook.
'echo$PATH', it's empty. But I've modified the ~/.bash_profile to look
In a terminal, type:
which qmake
It returns this:- [chris@localhost ~]$ which qmake /usr/bin/qmake
if it returns qmake, your path is probably correct.
OK.
I've got QtCreator pointing at /home/chris/qt/bin/qmake for the Playbook which is set under 'Kits'. Under Compilers, two are autodetected. They're in /usr/bin and are 32 bit and 64 bit. I have then added the 32 bit linux-generic under Manual.
So if the path is set correctly, I'm guessing I need to look elsewhere to see why Creator can't find the C++ libraries.
Thanks to you and Wayne for your help. I'll see what google says about fixing the libraries problem.