fhackenberger / ktikz

KtikZ provides a nice user interface for making pictures using TikZ.
Other
355 stars 34 forks source link

Qt build expect sources to be in parent directory #29

Closed ArchangeGabriel closed 6 years ago

ArchangeGabriel commented 6 years ago

When building, I use the following layout:

build/
ktikz-$version/

And then I run qmake ../ktikz-$version/qtikz.pro inside build/. This does not work, while:

ktikz-$version/build/

and qmake ../qtikz.pro works.

Build error:

In file included from ../ktikz-0.12/common/templatewidget.h:22,
                 from ../ktikz-0.12/common/templatewidget.cpp:19:
ui/ui_templatewidget.h:18:10: fatal error: ../common/utils/combobox.h: No such file or directory
 #include "../common/utils/combobox.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1357: obj/templatewidget.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../ktikz-0.12/common/templatewidget.h:22,
                 from ../ktikz-0.12/common/tikzpreviewcontroller.cpp:49:
ui/ui_templatewidget.h:18:10: fatal error: ../common/utils/combobox.h: No such file or directory
 #include "../common/utils/combobox.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
jfmcarreira commented 6 years ago

I think this is fixed in this commit

ArchangeGabriel commented 6 years ago

Yep, that did it, thanks!