#19 camwindow.cpp:225:9: error: 'class wxPaintDC' has no member

None
closed
nobody
General (15)
5
2013-01-04
2011-01-04
No

Get error when build from source:

make[2]: Entering directory `/usr/src/RPM/BUILD/eviacam-1.4.1/wxcamwindow'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../creavision -Wall -fexceptions -Wconversion -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I/usr/include/opencv -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -DNDEBUG -pipe -Wall -O2 -march=pentium4 -Wall -fexceptions -Wconversion -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I/usr/include/opencv -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -DNDEBUG -c -o camwindow.lo camwindow.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../creavision -Wall -fexceptions -Wconversion -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I/usr/include/opencv -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -DNDEBUG -pipe -Wall -O2 -march=pentium4 -Wall -fexceptions -Wconversion -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I/usr/include/opencv -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -DNDEBUG -c camwindow.cpp -fPIC -DPIC -o .libs/camwindow.o
In file included from /usr/include/wx-2.9/wx/event.h:21:0,
from /usr/include/wx-2.9/wx/wx.h:25,
from camwindow.cpp:31:
/usr/include/wx-2.9/wx/gdicmn.h: In member function 'wxSize& wxSize::Scale(float, float)':
/usr/include/wx-2.9/wx/gdicmn.h:269:23: warning: conversion to 'float' from 'int' may alter its value
/usr/include/wx-2.9/wx/gdicmn.h:269:44: warning: conversion to 'float' from 'int' may alter its value
camwindow.cpp: In member function 'void CCamWindow::OnPaint(wxPaintEvent&)':
camwindow.cpp:225:9: error: 'class wxPaintDC' has no member named 'Ok'
make[2]: *** [camwindow.lo] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/eviacam-1.4.1/wxcamwindow'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/eviacam-1.4.1'
make: *** [all] Error 2
make: Leaving directory `/usr/src/RPM/BUILD/eviacam-1.4.1'
error: Bad exit status from /usr/src/tmp/rpm-tmp.4782 (%build)

gcc4.5-c++-4.5.1-alt7
libgtk+2-devel-2.22.1-alt1
libwxGTK2.9-devel-2.9.2-alt1.svn20101203

Discussion

  • Cesar Mauri-Loba

    • milestone: --> linux-specific
    • labels: --> General
    • status: open --> pending
     
  • Cesar Mauri-Loba

    Your are trying to build eViacam against an unstable wxWidgets version (2.9.x) which has not been tested yet.

    I suspect the error you pointed out can be easy solved by just changing line 225 in camwindow.cpp by:

    if(!dc.IsOk()) return;

    Let us know whether it worked.

     
  • Vyacheslav Dubrovskiy

    • status: pending --> open
     
  • Cesar Mauri-Loba

    Thanks for adding. It seems that since wxWidgets v2.8 there is a new method "IsOK()" and the former "Ok()" has been removed on 2.9.

    I left this bug in a pending state since 2.9 becomes stable.

     
  • Cesar Mauri-Loba

    • status: open --> pending
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     
  • Vyacheslav Dubrovskiy

    It help, but get another error

    i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../creavision -I../wxcamwindow -I../wxutil -DLOCALEDIR=\"/usr/share/locale\" -Wall -fexceptions -Wconversion -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I/usr/include/opencv -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libdrm -DNDEBUG -O2 -Wall -fexceptions -Wconversion -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I/usr/include/opencv -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libdrm -DNDEBUG -O2 -c -o eviacam-viacamcontroller.o `test -f 'viacamcontroller.cpp' || echo './'`viacamcontroller.cpp
    In file included from ../wxcamwindow/visiblenormroi.h:29:0,
    from visionpipeline.h:29,
    from viacamcontroller.h:27,
    from viacamcontroller.cpp:22:
    /usr/include/wx-2.9/wx/gdicmn.h: In member function 'wxSize& wxSize::Scale(float, float)':
    /usr/include/wx-2.9/wx/gdicmn.h:269:23: warning: conversion to 'float' from 'int' may alter its value
    /usr/include/wx-2.9/wx/gdicmn.h:269:44: warning: conversion to 'float' from 'int' may alter its value
    In file included from viacamcontroller.cpp:29:0:
    wconfiguration.h: At global scope:
    wconfiguration.h:439:5: error: 'wxTextCtrl' does not name a type
    wconfiguration.h:452:5: error: 'wxTextCtrl' does not name a type
    In file included from viacamcontroller.cpp:31:0:
    wcameradialog.h:76:2: error: 'wxTextCtrl' does not name a type
    make[2]: *** [eviacam-viacamcontroller.o] Error 1
    make[2]: Leaving directory `/usr/src/RPM/BUILD/eviacam-1.5/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/src/RPM/BUILD/eviacam-1.5'
    make: *** [all] Error 2
    make: Leaving directory `/usr/src/RPM/BUILD/eviacam-1.5'
    error: Bad exit status from /usr/src/tmp/rpm-tmp.36934 (%build)

     
  • Cesar Mauri-Loba

    This is most likely caused by a missing include in wconfiguration.h

    Try adding:
    #include <wx/textctrl.h>

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks