AW: Using flex bison with Kdevelop
Incani, Maximilian, OPEE14
Maximilian.Incani at eads.com
Mon Mar 10 17:14:39 GMT 2008
Hello Andreas and also all others too,
Does a) mean i have to mantipuate the autogenerated automake/autoconf source files of Kdevelop. I think this could not be the right way, because i have a integrated developer environment in order to avoid such steps during development. Furthermore i do not know something about this tools. And Jonas Jacobi told me that it isn't needed to manipulate this files by hand. He told me inside a "Simple Hello World program"-Project to activate in Project Options/Filetemplates/Used global types flex and bison sources. By try and error i find out that i had to insert AM_PROG_LEX and AM_PROG_YACC in configure.in and executing automake --add-missing. But also this doesn't work satisfactory.
b) Do you mean to write the complete Makefile. I do not hope so, because as far as I can see, kdevelop does not support a project with selfmade makefiles. Or have I to write makefile in order to generate *.tab.c, *.yy.c and call this makefile from the project.
Best regards,
M.Incani
EADS Deutschland GmbH
Defence Electronics
OPEE14 - IFF Processing
Registered Office: Ottobrunn
District Court of Munich HRB 107 648
Chairman of the Supervisory Board: Dr. Thomas Enders Managing Directors: Dr. Stefan Zoller (chairman), Michael Hecht
Landshuterstrasse 26
85705 Unterschleissheim
Germany
Telefon +49(0)89/3179-3385
> -----Ursprüngliche Nachricht-----
> Von: kdevelop-bounces at barney.cs.uni-potsdam.de
> [mailto:kdevelop-bounces at barney.cs.uni-potsdam.de] Im Auftrag
> von Andreas Pakulat
> Gesendet: Montag, 10. März 2008 14:47
> An: kdevelop at barney.cs.uni-potsdam.de
> Betreff: Re: Using flex bison with Kdevelop
>
> On 10.03.08 13:54:49, Incani, Maximilian, OPEE14 wrote:
> > A few time ago i tried unsuccessful to create a parser with
> flex/bison
> > in Kdevelop. Now i need it again and after searching in the web and
> > trying some tutorials i am still unsuccessful. In case of
> doubt Jonas
> > Jacobi counseled me to contact you here. Therefore i ask for an
> > working example which i can copy. But nevertheless i have a
> question.
> >
> > If i like to use flex/bison which project is recommended?
> At the time
> > i am using a qmake project, but i tried a simle the "Simple Hello
> > world program" too. In a qmake project i can add flex,
> bison and even
> > CORBA IDL files without editing in files. So it seems more
> appropriated.
> >
> > And i am not completely new with flex/bison.
>
> There are about 3 options I think:
>
> a) use automake/autoconf and find out how to integrate
> flex/bison into it.
> There's an example in the kdevelop3 sources
> (buildtools/lib/parsers/qmake) which allows to run flex/bison manually
>
> b) write your own Makefile's
>
> c) use CMake, which has no GUI support in KDevelop but is a
> relatively easy buildsystem. More information at www.cmake.org
>
> There simply is no direct GUI support in KDevelop for
> defining a rule to run flex/bison and qmake is probably the
> "hardest" way to run flex/bison to produce some source files
> (in comparison to the above).
>
> Andreas
>
> --
> Your true value depends entirely on what you are compared with.
>
> _______________________________________________
> kdevelop mailing list
> kdevelop at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
>
More information about the KDevelop
mailing list