Thanks for your answer, I have made what you say, and I tried to compile and run this Hello World sample program, but it doesn't work, this is the ouput of C::B:
-------------- Build: Debug in aaa ---------------
Compiling: main.cpp
g++: qt-config: No existe el fichero ó directorio
g++: qt-config: No existe el fichero ó directorio
cc1plus: error: no se reconoce la opción de línea de comando "-fcxxflags"
cc1plus: error: no se reconoce la opción de línea de comando "-fcxxflags"
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings
Anyways, thanks so much for your answer and nice job with the IDE, it's something beautiful, really.
I'll keep in touch waiting for help.
Hi people, I have found and added the include directories of qt in Codeblocks, so I can compile the main.cpp withouth problems, but I can't run the program, I have the following errors:
-------------- Build: Debug in qt4 ---------------
g++ -L/usr/lib -o ./qt4 obj/Debug/main.o `qt-config --libs`
/bin/sh: qt-config: orden no encontrada
obj/Debug/main.o: En funcion `main':/home/rferrer/Codeblocks/qt4/main.cpp:7: referencia a `QApplication::QApplication(int&, char**)' sin definir
:/home/rferrer/Codeblocks/qt4/main.cpp:8: referencia a `QPushButton::QPushButton(QString const&, QWidget*)' sin definir
:/home/rferrer/Codeblocks/qt4/main.cpp:12: referencia a `QApplication::exec()' sin definir
:/home/rferrer/Codeblocks/qt4/main.cpp:12: referencia a `QPushButton::~QPushButton()' sin definir
:/home/rferrer/Codeblocks/qt4/main.cpp:12: referencia a `QPushButton::~QPushButton()' sin definir
:/home/rferrer/Codeblocks/qt4/main.cpp:12: referencia a `QApplication::~QApplication()' sin definir
:/home/rferrer/Codeblocks/qt4/main.cpp:12: referencia a `QApplication::~QApplication()' sin definir
obj/Debug/main.o: En funciñon `~QString':/usr/include/qt4/QtCore/qstring.h:687: referencia a `QString::free(QString::Data*)' sin definir
obj/Debug/main.o: En funciñon `QString':/usr/include/qt4/QtCore/qstring.h:304: referencia a `QString::shared_null' sin definir
:/usr/include/qt4/QtCore/qstring.h:305: referencia a `QString::fromAscii(char const*, int)' sin definir
:/usr/include/qt4/QtCore/qstring.h:305: referencia a `QString::operator=(QString const&)' sin definir
obj/Debug/main.o: En funciñon `QWidget::resize(int, int)':/usr/include/qt4/QtGui/qwidget.h:846: referencia a `QWidget::resize(QSize const&)' sin definir
collect2: ld devolvió el estado de salida 1
Process terminated with status 1 (0 minutes, 1 seconds)
12 errors, 0 warnings
I have added the `qt-config --cxxflags` in "Other compiler options" and `qt-config --libs` in "Other linker options", but it doesn't work. I had the same problems with GTK but I solved it adding the directories and `pkg-config --cflags gtk+-2.0` under "Project" -> "Build Options" -> "Compiler" -> "Other Options" , and `pkg-config --libs gtk+-2.0` under "Project" -> "Build Options" -> "Linker" -> "Other linker options", but what can I do with qt?