#6688 UBUNTU: Build failure due to Unity Taskbar

*None
closed-fixed
nobody
5
2014-11-01
2014-07-24
No

Hello,

trying to compile scummvm 1.7.0 for the Ubuntu gaming site playdeb,net there is this build error:
g++ -MMD -MF "backends/taskbar/unity/.deps/unity-taskbar.d" -MQ "backends/taskbar/unity/unity-taskbar.o" -MP -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -ansi -W -Wno-unused-parameter -Wno-empty-body -pedantic -Wno-long-long -O2 -Wuninitialized -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -Wpointer-arith -Wcast-qual -Wshadow -Wnon-virtual-dtor -Wwrite-strings -fno-exceptions -fcheck-new -DHAVE_CONFIG_H -DRELEASE_BUILD -DSDL_BACKEND -DPOSIX -DDATA_PATH=\"/usr/share/scummvm\" -DPLUGIN_DIRECTORY=\"/usr/lib/scummvm\" -DENABLE_SCUMM=STATIC_PLUGIN -DENABLE_SCUMM_7_8 -DENABLE_HE -DENABLE_AGI=STATIC_PLUGIN -DENABLE_AGOS=STATIC_PLUGIN -DENABLE_AGOS2 -DENABLE_CGE=STATIC_PLUGIN -DENABLE_CINE=STATIC_PLUGIN -DENABLE_COMPOSER=STATIC_PLUGIN -DENABLE_CRUISE=STATIC_PLUGIN -DENABLE_DRACI=STATIC_PLUGIN -DENABLE_DRASCULA=STATIC_PLUGIN -DENABLE_DREAMWEB=STATIC_PLUGIN -DENABLE_GOB=STATIC_PLUGIN -DENABLE_GROOVIE=STATIC_PLUGIN -DENABLE_HOPKINS=STATIC_PLUGIN -DENABLE_HUGO=STATIC_PLUGIN -DENABLE_KYRA=STATIC_PLUGIN -DENABLE_LOL -DENABLE_EOB -DENABLE_LURE=STATIC_PLUGIN -DENABLE_MADE=STATIC_PLUGIN -DENABLE_MOHAWK=STATIC_PLUGIN -DENABLE_MORTEVIELLE=STATIC_PLUGIN -DENABLE_NEVERHOOD=STATIC_PLUGIN -DENABLE_PARALLACTION=STATIC_PLUGIN -DENABLE_PEGASUS=STATIC_PLUGIN -DENABLE_QUEEN=STATIC_PLUGIN -DENABLE_SAGA=STATIC_PLUGIN -DENABLE_IHNM -DENABLE_SCI=STATIC_PLUGIN -DENABLE_SKY=STATIC_PLUGIN -DENABLE_SWORD1=STATIC_PLUGIN -DENABLE_SWORD2=STATIC_PLUGIN -DENABLE_TEENAGENT=STATIC_PLUGIN -DENABLE_TINSEL=STATIC_PLUGIN -DENABLE_TOLTECS=STATIC_PLUGIN -DENABLE_TONY=STATIC_PLUGIN -DENABLE_TOON=STATIC_PLUGIN -DENABLE_TOUCHE=STATIC_PLUGIN -DENABLE_TSAGE=STATIC_PLUGIN -DENABLE_TUCKER=STATIC_PLUGIN -DENABLE_VOYEUR=STATIC_PLUGIN -DENABLE_WINTERMUTE=STATIC_PLUGIN -I. -I. -I./engines -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -c backends/taskbar/unity/unity-taskbar.cpp -o backends/taskbar/unity/unity-taskbar.o
backends/taskbar/unity/unity-taskbar.cpp:33:19: fatal error: unity.h: No such file or directory
#include <unity.h>
^
compilation terminated.

The file actually exists here
/usr/include/unity/unity/unity.h

But the directory is not included.

This is the build log:
http://sprunge.us/HKEh

Discussion

  • digitall

    digitall - 2014-07-31
    • summary: fatal error: unity.h: No such file or directory --> UBUNTU: Build failure due to Unity Taskbar
     
  • digitall

    digitall - 2014-07-31

    Attaching the build log referred to earlier as external services may become inaccesssible before a developer gets time to look at this.

     
  • digitall

    digitall - 2014-08-14

    c-korn:See this message:
    ##718164 "FTBFS: Makefile:87: *** You need to run
    ./configure before you can run make".

    It looks like you have not run the configure script. If you have, please attach the config.mk and config.h as this will help work out why the unity path has not been detected.

    Setting this bug to pending. If it is not updated within 14 days, it will automatically be closed.

     
    Last edit: digitall 2014-08-14
  • digitall

    digitall - 2014-08-14
    • status: open --> pending-works-for-me
     
  • Willem Jan Palenstijn

    The part of configure checking for unity is very broken. If anyone using unity wants to submit a patch, please do.

     
  • Willem Jan Palenstijn

    • status: pending-works-for-me --> open
     
  • Filippos Karapetis

    So, has this been resolved with Tobia's patch?

     
  • Christoph Korn

    Christoph Korn - 2014-10-30

    For me this patch was sufficient:
    http://sprunge.us/hgKR

     
    • Tobia Tesan

      Tobia Tesan - 2014-10-30

      Yes, that was the problem (and that's basically what I did, plus a few
      other things that were weird).

      I suppose it's fixed by now - it seemingly compiles fine and sans
      spurious warnings with libunity.

       
  • Filippos Karapetis

    Attaching the patch from Christoph Korn in the bug report - Thanks for your work!

     
  • Filippos Karapetis

    OK, since the issue has been resolved, this bug report can now be closed.

    Thanks finding the issue, and fixing it!

     
  • Filippos Karapetis

    • labels: --> Compilation, Ubuntu, Unity
    • status: open --> closed-fixed