I have three questions.
Suppose I have new architecture, called. for example "arch". This architecture 
based on linux, so toolchain is arch-gcc, debugger is arch-gdb. and binary 
format is elf.


=== FIRST QUESTION ===
I created new folder in mkspecs - /usr/share/qt4/mkspecs/linux-smg++ with all 
necessary files
Suppose I want to use qmake for Makefile generation, so I do
File -> New File Or Project -> Qt Console Application then remove all 
invocations of qt (qtcore, qtgui...)

1)Then, for compiling main.cpp I add path to arch-gcc to PATH variable in 
Projects -> Build Environment. After it compilation goes well.
2)For running I added custom run configuration in Projects->Run settings in 
Executable i insert path to simalator /home/..../fsim and in arguments - my 
executable. I understand that this way is not good, but it works.
3)Main problem is that I can not run arch-gdb. I can not override standard gdb. 
I can add my toolchain in Tools->Options->Toolchains, but I can not 
apply(select) this toolchain in Projects->Toolchain because this combobox is 
disabled, so, qtcreator does not know about my arch-gdb


=== SECOND QUESTION ===
I can remove one limitation -  limitation of using qmake for Makefile 
generation.
So, I do 
File -> New File Or Project -> Import Existing project and choose folder with 
sources and Makefiles.
This allows me to select my toolchain in Projects->Toolchain (this combobox is 
enabled), and qtcreator knows about arch-gdb, but there is one specific thing 
in arch-gdb - before running executable in arch-gdb I need to pass command
(gdb) target sm_fsim <name of executable>
to gdb. so. is there way to customize gdb run from qtcreator?


=== THIRD QUESTION ===
Is there way to point qtcreator on my simulator? Qtcreator should not try to 
run executable directly, but should run
/home/..../fsim <name of executable>
In other words, is there way to fix workaround described in "FIRST QUESTION.2)"?
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to