Problem compiling in ubuntu 9.10

Anonymous
2009-11-03
2013-04-26

  • Anonymous
    2009-11-03

    Hello. I ran into a few problems trying to compile. I had to install , it would be cool to add this as a reminder to ubuntu newbies in the README file.
    ./configure runs with no problems, but I get when I run make:

        gtimelapse$ make
        Making all in src
        make: Entering directory `/home/gavila/proyectos/timelapse/gtimelapse-svn/gtimelapse/src'
        if g++ -DPACKAGE_NAME=\"gTimelapse\" -DPACKAGE_TARNAME=\"gtimelapse\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"gTimelapse\ 1.0\" -DPACKAGE_BUGREPORT=\"timnugent@gmail.com\" -DPACKAGE=\"gtimelapse\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBGPHOTO2=1  -I. -I.   -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -g -O2  -I/usr/include/gphoto2 -I/usr/include/libexif   -g -O2  -MT gtimelapse-gphotofunctions.o -MD -MP -MF ".deps/gtimelapse-gphotofunctions.Tpo" -c -o gtimelapse-gphotofunctions.o `test -f 'gphotofunctions.cpp' || echo './'`gphotofunctions.cpp; \
        then mv -f ".deps/gtimelapse-gphotofunctions.Tpo" ".deps/gtimelapse-gphotofunctions.Po"; else rm -f ".deps/gtimelapse-gphotofunctions.Tpo"; exit 1; fi
        gphotofunctions.cpp: In function ‘int set_config_action(GPParams*, const char*, const char*)’:
        gphotofunctions.cpp:104: error: ‘sscanf’ was not declared in this scope
        gphotofunctions.cpp:122: error: ‘sscanf’ was not declared in this scope
        gphotofunctions.cpp:157: error: ‘sscanf’ was not declared in this scope
        make: ***  Error 1
        make: Leaving directory `/home/gavila/proyectos/timelapse/gtimelapse-svn/gtimelapse/src'
        make: ***  Error 1

    do you have any ideas of what I could do?

    Thanks allways, and please let me know if there is some more info I could provide you with.

     

  • Anonymous
    2009-11-04

    I found what the problem was, there is a missing include in gphotofunctions.cpp for compilation with gcc4.4, namely

        #include <cstdio>

    It would be cool to fix the actual code, but I'm a complete newbie at this stuff.

     
  • Tim Nugent
    Tim Nugent
    2009-11-30

    Thanks, I committed a fix.

     

  • Anonymous
    2009-12-29

    hi there…

    I 've tried under Ubuntu 9.10,

    configure runs clean through, but compiling is another matter…

    i checked out the latest csv version…. but still:

     

          if g++ -DPACKAGE_NAME=\"gTimelapse\" -DPACKAGE_TARNAME=\"gtimelapse\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"gTimelapse\ 1.0\" -DPACKAGE_BUGREPORT=\"timnugent@gmail.com\" -DPACKAGE=\"gtimelapse\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBGPHOTO2=1  -I. -I.   -I/usr/lib/wx/include/base-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0 -g -O2  -I/usr/include/gphoto2 -I/usr/include/libexif   -g -O2  -MT gtimelapse-globals.o -MD -MP -MF ".deps/gtimelapse-globals.Tpo" -c -o gtimelapse-globals.o `test -f 'globals.cpp' || echo './'`globals.cpp; \
        then mv -f ".deps/gtimelapse-globals.Tpo" ".deps/gtimelapse-globals.Po"; else rm -f ".deps/gtimelapse-globals.Tpo"; exit 1; fi
        In file included from globals.h:9,
                         from globals.cpp:1:
        gtimelapse.h:57: error: invalid use of incomplete type ‘struct wxFrame’
        /usr/include/wx-2.8/wx/utils.h:50: error: forward declaration of ‘struct wxFrame’
        gtimelapse.h:64: error: ‘wxCommandEvent’ has not been declared
        gtimelapse.h:65: error: ‘wxBookCtrlBaseEvent’ has not been declared
        gtimelapse.h:66: error: ‘wxNotebookEvent’ has not been declared
        gtimelapse.h:67: error: ‘wxIdleEvent’ has not been declared
        gtimelapse.h:68: error: ‘wxCommandEvent’ has not been declared
        gtimelapse.h:69: error: ‘wxCommandEvent’ has not been declared
        gtimelapse.h:70: error: ‘wxPaintEvent’ has not been declared
        gtimelapse.h:71: error: ‘wxPaintEvent’ has not been declared
        gtimelapse.h:72: error: ‘wxCommandEvent’ has not been declared
        gtimelapse.h:73: error: ‘wxCommandEvent’ has not been declared
        gtimelapse.h:74: error: ‘wxCommandEvent’ has not been declared
        gtimelapse.h:77: error: ISO C++ forbids declaration of ‘wxBookCtrlBase’ with no type
        gtimelapse.h:77: error: expected ‘;’ before ‘*’ token
        gtimelapse.h:79: error: expected ‘;’ before ‘private’
        gtimelapse.h:87: error: ISO C++ forbids declaration of ‘wxPanel’ with no type
        gtimelapse.h:87: error: expected ‘;’ before ‘*’ token
        gtimelapse.h:100: error: ISO C++ forbids declaration of ‘wxPanel’ with no type
        gtimelapse.h:100: error: expected ‘;’ before ‘*’ token
        gtimelapse.h:101: error: ISO C++ forbids declaration of ‘wxBookCtrlBase’ with no type
        gtimelapse.h:101: error: expected ‘;’ before ‘*’ token
        gtimelapse.h:103: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
        gtimelapse.h:103: error: expected ‘;’ before ‘*’ token
        gtimelapse.h:105: error: ISO C++ forbids declaration of ‘wxImageList’ with no type
        gtimelapse.h:105: error: expected ‘;’ before ‘*’ token
        In file included from globals.cpp:1:
        globals.h:12: error: expected initializer before ‘*’ token
        globals.h:16: error: ‘wxBitmap’ does not name a type
        globals.h:17: error: expected initializer before ‘*’ token
        globals.h:18: error: expected initializer before ‘*’ token
        globals.h:19: error: expected initializer before ‘*’ token
        globals.h:21: error: ‘wxComboBox’ was not declared in this scope
        globals.h:21: error: template argument 1 is invalid
        globals.h:21: error: template argument 2 is invalid
        globals.h:21: error: invalid type in declaration before ‘;’ token
        globals.h:22: error: ‘wxBitmap’ was not declared in this scope
        globals.h:22: error: template argument 1 is invalid
        globals.h:22: error: template argument 2 is invalid
        globals.h:22: error: invalid type in declaration before ‘;’ token
        globals.cpp:11: error: expected constructor, destructor, or type conversion before ‘*’ token
        globals.cpp:21: error: ‘wxBitmap’ does not name a type
        globals.cpp:22: error: expected constructor, destructor, or type conversion before ‘*’ token
        globals.cpp:23: error: expected constructor, destructor, or type conversion before ‘*’ token
        globals.cpp:24: error: expected constructor, destructor, or type conversion before ‘*’ token
        globals.cpp:26: error: ‘wxComboBox’ was not declared in this scope
        globals.cpp:26: error: template argument 1 is invalid
        globals.cpp:26: error: template argument 2 is invalid
        globals.cpp:26: error: invalid type in declaration before ‘;’ token
        globals.cpp:27: error: ‘wxBitmap’ was not declared in this scope
        globals.cpp:27: error: template argument 1 is invalid
        globals.cpp:27: error: template argument 2 is invalid
        globals.cpp:27: error: invalid type in declaration before ‘;’ token
        make: ***  Fehler 1

    nice app idea btw… :)
    greetings!

     

  • Anonymous
    2009-12-29

    okok

    libwxgtk2.8-dev was missing
    so

        apt-get install libwxgtk2.8-dev

    fixed the problem…
    sorry ;)