Cannot build lyx: .h and .cpp naming conventions differ

Asked by Will Furnass

I cloned the lyx-outline branch today using 'bzr branch lp:lyx-outline' then found I was unable to build lyx:

will@guava:~/dev/lyx-outline$ make
...
In file included from docstream.cpp:13:0:
./../support/docstream.h:15:20: fatal error: TexRow.h: No such file or directory
compilation terminated.
  CXX docstring.o
debug.cpp:17:30: fatal error: support/FileName.h: No such file or directory
compilation terminated.

However these files do exist on my machine albeit with differently capitalised names:

will@guava:~/dev/lyx-outline$ find ../lyx-outline -iname FileName.h -or -iname TexRow.h
../lyx-outline/src/texrow.h
../lyx-outline/src/support/filename.h

Are the references to headers in the .cpp files incorrect or the names of the .h files incorrect?

Cheers,

Will

Question information

Language:
English Edit question
Status:
Answered
For:
LyX-Outline Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stefan Garthe (themgt) said :
#1

Indeed, this happened to me too. My guess is that somebody with a caseinsensitive filesystem made some changes and then pushed the files with wrong cases. I spent some time fixing filenames today and now I can get it to compile and install.
But it seems that the build process has some other trouble, maybe related to parallel building.

Btw, thanks for the outlining stuff, I really like it! Regards
the_mgt

Here are the fixed to the filenames (you need to be in the src/ directory!):
mv author.h Author.h
mv box.h Box.h
mv buffer.h Buffer.h
mv bufferlist.h BufferList.h
mv bufferparams.h BufferParams.h
mv changes.h Changes.h
mv color.cpp Color.cpp
mv converter.h Converter.h
mv coordcache.h CoordCache.h
mv counters.h Counters.h
mv dimension.h Dimension.h
mv dispatchresult.h DispatchResult.h
mv dociterator.h DocIterator.h
mv encoding.h Encoding.h
mv errorlist.h ErrorList.h
mv exporter.h Exporter.h
mv format.h Format.h
mv funcrequest.h FuncRequest.h
mv graph.h Graph.h
mv intl.h Intl.h
mv language.h Language.h
mv layout.h Layout.h
mv lyxrc.h LyXRC.h
mv lyxvc.h LyXVC.h
mv metricsinfo.h MetricsInfo.h
mv mover.h Mover.h
mv outputparams.h OutputParams.h
mv paragraph.h Paragraph.h
mv pariterator.h ParIterator.h
mv session.h Session.h
mv texrow.h TexRow.h
mv trans.h Trans.h
mv undo.h Undo.h
mv vspace.h VSpace.h

cd client/
mv messages.h Messages.h

cd ../frontends/
mv Alert.h alert.h

cd qt4/
mv floatplacement.h FloatPlacement.h
mv panelstack.h PanelStack.h
mv emptytable.h EmptyTable.h
mv iconpalette.h IconPalette.h
mv lengthcombo.h LengthCombo.h

cd ../../insets
mv insetquotes.h InsetQuotes.h
mv insetiterator.h InsetIterator.h
mv insetfoot.h InsetFoot.h
mv insetcommand.h InsetCommand.h
mv insetcommandparams.h InsetCommandParams.h
mv insetfootlike.h InsetFootlike.h
mv insetcollapsable.h InsetCollapsable.h
mv insettext.h InsetText.h
mv insetbibitem.h InsetBibitem.h
mv insetnomencl.h InsetNomencl.h
mv insetbibtex.h InsetBibtex.h
mv insetfloat.h InsetFloat.h
mv insetfloatlist.h InsetFloatList.h
mv insetinclude.h InsetInclude.h
mv insetbox.h InsetBox.h
mv insetbranch.h InsetBranch.h
mv insetindex.h InsetIndex.h
mv insetlabel.h InsetLabel.h
mv insetline.h InsetLine.h
mv insetref.h InsetRef.h
mv insetgraphics.h InsetGraphics.h
mv insetgraphicsParams.h InsetGraphicsParams.h
mv insetspecialchar.h InsetSpecialChar.h
mv insetspace.h InsetSpace.h
mv insetexternal.h InsetExternal.h
mv insettabular.h InsetTabular.h
mv insetcaption.h InsetCaption.h
mv insetmarginal.h InsetMarginal.h
mv insetnewline.h InsetNewline.h
mv insetnote.h InsetNote.h
mv insetvspace.h InsetVSpace.h
mv insetwrap.h InsetWrap.h
mv insetert.h InsetERT.h
mv insettoc.h InsetTOC.h

cd ../mathed/
mv textpainter.h TextPainter.h

cd ../support/
mv filename.h FileName.h
mv package.h Package.h
mv path.h Path.h
mv systemcall.h Systemcall.h
mv translator.h Translator.h

cd ../tex2lyx/
mv context.h Context.h

Can you help with this problem?

Provide an answer of your own, or ask Will Furnass for more information if necessary.

To post a message you must log in.