PDA

View Full Version : Qt creator Plugin questions



EpicViTTo
19th February 2013, 19:02
Hello everyone! I am running Qt Creator on Linux Mint 14. Before i made the jump to Linux i used Microsoft visual studio, and while Qt Creator is very nice i've come to really miss the code formatter that comes standard in studio. Could someone please offer their preffered formating plugins, and what the steps are for getting it working in the IDE? I haven't had time to learn all the ins and outs with Qt's settings. Any advice given will be apreciated, thanks.

by the way, i'm comfortable with the terminal, however i'm not that familiar with commands that go beyond basic file browsing, adding, removing, copy, etc.. so if it comes to that please be specific. :) Thanks again.

Lykurg
19th February 2013, 19:09
Thank you for asking. (And NO that is not a silly try of me to promote the new release of my plugin :D)

See my signature! It is simply Artistic Style 2.02 (http://astyle.sourceforge.net) for Qt Creator.

EpicViTTo
19th February 2013, 19:15
Thats exactly what i needed! I've downloaded the tar.bz2 file they suggest for the precompiled version. At the bottom of the page it says to put the file in the root directory of Qt i'm sure mine is in the default place, but where would i find that?

Lykurg
19th February 2013, 19:43
The root directory of Qt Creator. So how did you install it? Through the package manager or manual from the downloads of qt-project.org?

EDIT: possible paths: /opt/Qt5.0.1/Tools/QtCreator/ /opt/qtcreator-2.6.2.

EpicViTTo
19th February 2013, 20:01
I've only downloaded it from the website. it says to insert the file into the root directory of Qt, then extract it and it should work but im not sure how to find the root directory of Qt. All i had in the /Opt folder was firefox.

Lykurg
19th February 2013, 20:07
Ok, then during install you got asked where to install. That should be the path. In the path there should be a bin, a lib and share directory.

As you told you are new to linux: try
which qtcreator or
find qtcreator in a shell.

EpicViTTo
19th February 2013, 20:32
I'm sorry am i missing something? "Which qtcreator" returns the executable for QtCreator. How can i extract the plugin to an executable?


I've found the right file:
usr/lib/qt4/plugins

ive extracted Astyle there now what? Qt doesn't seem to have changed..

Lykurg
19th February 2013, 21:03
I'm sorry am i missing something? "Which qtcreator" returns the executable for QtCreator. How can i extract the plugin to an executable?You can't but you see where the executable is located: /some/path/bin/qtcreator, then you have to extract it in /some/path. If you have installed the packages of qt-project.


I've found the right file:
usr/lib/qt4/pluginsNo you haven't. It is the plugin directory of Qt not of Qt Creator. I see I have to write more about the installation on the page....

For now, since it is almost bedtime here, try to locate a file called "Qt4ProjectManager.pluginspec". It should be located in /x/y/z/lib/qtcreator/plugins/QtProject. Then strip lib/qtcreator/plugins/QtProject and you get /x/y/z and that is the place where you should extract the tar.bz2 file.

Hope you will manage to install it. Tomorrow I could help further, till then good luck!

EpicViTTo
19th February 2013, 22:32
I see I have to write more about the installation on the page....

lol glad i could be your test dummy :p

So i've extracted the file into /usr/bin where "where qtcreator" returned. On the site it says thats all i have to do but im still not seeing it in the editor. I've restarted my machine but its not showing up how do i add plugins in creator?

Lykurg
20th February 2013, 07:33
lol glad i could be your test dummy :p
You are welcome!:)

Well if your executable is in /usr/bin you don't use the packages of qt-project.org. Then it is the creator bundled with your distribution. I have updated the documentation a little bit. If it is still unclear, please post the results of locate qtcreator/plugins
locate Welcome.pluginspec
locate QtProject
locate qtcreator.sh

EpicViTTo
21st February 2013, 03:34
I'm sorry for taking so long to respond. I took a look at your improved site but im honestly still lost. Where is the file LorenzHaas you reference? To answer your questions above:

/usr/lib/x86_64-linux-gnu/qtcreator/plugins/Nokia/Welcome.pluginspec

Thats the filepath i come up with when i run those commands.

I've extracted your plugin to:

/usr/lib/x86_64-linux-gnu/qtcreator/plugins

With no results but that's what i thought the website was trying to tell me to do.

Lykurg
21st February 2013, 07:50
Ok, it you have downloaded ArtisticStylePlugin-1.0.0-linux-x86_64-qt_5.0.1-qtc_2.6.2.tar.bz2 extract it an you will get:
8745
And that is the folder "LorenzHaas" I talk about.

And what me still puzzles is that your executable should be in /usr/lib/x86_64-linux-gnu/qtcreator/bin/qtcreator but anyway. Copy "LorenzHaas" to: /usr/lib/x86_64-linux-gnu/qtcreator/plugins. That's how it is done, *hopefully*

Otherwise we should think about a video-live-support...

EpicViTTo
21st February 2013, 15:38
okay i don't have that file or maybe i'm just slow, but i'm normally very good with computers. this is becoming frustrating...

I don't think you need a video, but you might consider a gui installer that does all this automaticly. I'm not even sure what my problem is anymore.