SourceForge has been redesigned. Learn more.
Close

problem with waf

fred
2010-05-10
2013-04-24
  • fred

    fred - 2010-05-10

    Hi all,

    have search for this here, but can't find, so :

    When build with waf, the configure step is ok, but build can't be done.
    Here is the output, any help appreciate !

    f@f:~/Desktop/b/wired-0.7.0$ ./waf configure -prefix=/usr
    Checking for program g++                 : ok /usr/bin/g++
    Checking for program cpp                 : ok /usr/bin/cpp
    Checking for program ar                  : ok /usr/bin/ar
    Checking for program ranlib              : ok /usr/bin/ranlib
    Checking for g++                         : ok 
    Checking for                             : ok
    Checking for libxml-2.0 >= 2.6.32        : ok
    Checking for portaudio-2.0 >= 19         : ok
    Checking for sndfile >= 1.0.17           : ok
    Checking for samplerate >= 0.1.3         : ok
    Checking for soundtouch-1.0 >= 1.3.1     : ok
    Checking for header portmidi.h           : ok
    Checking for header porttime.h           : ok
    Configuration finished successfully (00:00:01); project is now ready to build.
    f@f:~/Desktop/b/wired-0.7.0$ ./waf
    cxx: src/libs/WiredAkai/src/akai.cpp -> build/default/src/libs/WiredAkai/src/akai_1.o
    cxx: src/libs/WiredAkai/src/list.cpp -> build/default/src/libs/WiredAkai/src/list_1.o
    cxx: src/libs/WiredWidgets/src/ChoiceButton.cpp -> build/default/src/libs/WiredWidgets/src/ChoiceButton_1.o
    cxx: src/libs/WiredWidgets/src/DownButton.cpp -> build/default/src/libs/WiredWidgets/src/DownButton_1.o
    cxx: src/libs/WiredWidgets/src/FaderCtrl.cpp -> build/default/src/libs/WiredWidgets/src/FaderCtrl_1.o
    cxx: src/libs/WiredWidgets/src/HoldButton.cpp -> build/default/src/libs/WiredWidgets/src/HoldButton_1.o
    cxx: src/libs/WiredWidgets/src/IdButton.cpp -> build/default/src/libs/WiredWidgets/src/IdButton_1.o
    cxx: src/libs/WiredWidgets/src/KnobCtrl.cpp -> build/default/src/libs/WiredWidgets/src/KnobCtrl_1.o
    cxx: src/libs/WiredWidgets/src/StaticBitmap.cpp -> build/default/src/libs/WiredWidgets/src/StaticBitmap_1.o
    /usr/local/include/wx-2.8/wx/window.h:1432: error: ‘const wxEventTable wxWindowBase::sm_eventTable’ is protected
    ../src/libs/WiredWidgets/src/StaticBitmap.cpp:7: error: within this context
    Build failed
    -> task failed (err #1):
    {task: cxx StaticBitmap.cpp -> StaticBitmap_1.o}
    f@f:~/Desktop/b/wired-0.7.0$

     
  • Doomsday

    Doomsday - 2010-05-10

    Hi there,

    Its an issue with GCC 4.4, but you can fix it with updating StaticBitmap.c line 7 :
    replace wxStaticText with wxStaticBitmap.

    The fix will be commited today on SVN.

    Thanks for support!

    Good luck

     
  • fred

    fred - 2010-05-10

    Thanks for quick reply !

    Sorry for this newbie question, but  where is the file to modify ?

     
  • Doomsday

    Doomsday - 2010-05-10

    You should find it in the folder ~/Desktop/b/wired-0.7.0/src/libs/WiredWidgets/src/.

    I guess GCC 4.4 brings some other bugs, I've not a computer to test it right now.

     
  • fred

    fred - 2010-05-10

    Thanks for your good help !
    It's ok for the StaticBitmap.c, (named .cpp here on Debian SID), now build crash at line 27 with the following :

    cxx: src/wiredvideo/WiredVideo.cpp -> build/default/src/wiredvideo/WiredVideo_1.o
    ../src/wiredvideo/WiredVideo.cpp:4:21: error: MainApp.h: Aucun fichier ou dossier de ce type
    ../src/wiredvideo/WiredVideo.cpp:5:24: error: MainWindow.h: Aucun fichier ou dossier de ce type
    Build failed
    -> task failed (err #1):
    {task: cxx WiredVideo.cpp -> WiredVideo_1.o}

    Maybe you have something else to do than teaching me step by step… This I can understand !!
    I'll continue to search and keep a trace of what have been done if it could help one.

     
  • Doomsday

    Doomsday - 2010-05-10

    The waf/wscript system is not heavily maintened. You have to update src/wiredvideo/wscript and insert line includes = '../gui/', before line export_incdirs var.

    This var 'includes' define all header location needed by sources files of this directory (wiredvideo). Maybe you have to add other folder in wscript of other directory.

     
  • fred

    fred - 2010-05-10

    Hum, it seems many work to do, and my knowledge here is too small.
    Have to try to understand, comparing the wscript in /src/gui with the one in /src/wiredvideo,
    but can't understand what to add where !

    So, maybe I will wait some time, and have another try with waf (the ./configure way to build just
    don't want to do "make")

    Do you think there is a chance for the waf/script system to be maintened ?

    Anyway, thanks again.
    Just for info, the last output :

    f@f:~/Desktop/b/wired-0.7.0$ ./waf
    cxx: src/wiredvideo/WiredVideo.cpp -> build/default/src/wiredvideo/WiredVideo_1.o
    In file included from ../src/wiredvideo/WiredVideo.cpp:5:
    ../src/gui/MainWindow.h:24:20: error: Plugin.h: Aucun fichier ou dossier de ce type
    ../src/gui/MainWindow.h:25:24: error: WiredVideo.h: Aucun fichier ou dossier de ce type
    ../src/gui/MainWindow.h:27:27: error: WiredDocument.h: Aucun fichier ou dossier de ce type
    In file included from ../src/wiredvideo/WiredVideo.cpp:5:
    ../src/gui/MainWindow.h:40: error: expected class-name before ‘{’ token
    ../src/gui/MainWindow.h:42: error: ‘WiredDocument’ has not been declared
    ../src/gui/MainWindow.h:107: error: ‘Plugin’ has not been declared
    ../src/gui/MainWindow.h:114: error: ‘SaveElementArray’ has not been declared
    ../src/gui/MainWindow.h:225: error: ISO C++ forbids declaration of ‘list’ with no type
    ../src/gui/MainWindow.h:225: error: expected ‘;’ before ‘<’ token
    Build failed
    -> task failed (err #1):
    {task: cxx WiredVideo.cpp -> WiredVideo_1.o}
    f@f:~/Desktop/b/wired-0.7.0$

     

Log in to post a comment.