problem compiling acdk_wx

Help
Chee Yee
2004-06-08
2004-06-09
  • Chee Yee

    Chee Yee - 2004-06-08

    Got the following error while trying to compile acdk_wx with wxGTK-2.4.2 and gcc-3.3.3.

    cheexp:/opt/acdk/acdk_wx # make
    make[1]: Entering directory `/opt/acdk/acdk_wx'
    installcfgs
    cd src; make -f acdk_wx.linux
    make[2]: Entering directory `/opt/acdk/acdk_wx/src'
    g++ -Wall -Wno-unused -fpic -O2 -g   -I .  -I ../../include   -DACDK_NO_TRACE_CALLS -DACDK_HAS_LIBERTY -D__SMP__  -DOS_LINUX -D_REENTRANT -DUSE_ACDK_CORE_LIB -DIN_ACDK_WX_LIB   -o ../tobj/acdk_wx/Event.o -c acdk/wx/Event.cpp
    In file included from acdk/wx/DataObject.h:30,
                     from acdk/wx/DropTarget.h:29,
                     from acdk/wx/Window.h:37,
                     from acdk/wx/Event.cpp:28:
    /usr/local/include/wx/string.h: In constructor `
       acdk::wx::DataFormat::DataFormat(int)':
    /usr/local/include/wx/string.h:288: error: `wxString::wxString(int)' is private
    acdk/wx/DataFormat.h:83: error: within this context
    acdk/wx/DataFormat.h: In member function `int
       acdk::wx::DataFormat::getFormatId() const':
    acdk/wx/DataFormat.h:103: error: invalid conversion from `_GdkAtom*' to `int'
    acdk/wx/DataFormat.h: In function `acdk::wx::RDataFormat acdk::wx::fromWx(const
       wxDataFormat&)':
    acdk/wx/DataFormat.h:130: error: invalid conversion from `_GdkAtom*' to `int'
    acdk/wx/DataFormat.h:130: error:   initializing argument 1 of `
       acdk::wx::DataFormat::DataFormat(int)'
    In file included from acdk/wx/DropTarget.h:29,
                     from acdk/wx/Window.h:37,
                     from acdk/wx/Event.cpp:28:
    acdk/wx/DataObject.h: In member function `virtual acdk::wx::RDataFormat
       acdk::wx::DataObject::getPreferredFormat(acdk::wx::DataObjectDirection)
       const':
    acdk/wx/DataObject.h:72: error: invalid conversion from `_GdkAtom*' to `int'
    acdk/wx/DataObject.h:72: error:   initializing argument 1 of `
       acdk::wx::DataFormat::DataFormat(int)'
    acdk/wx/DataObject.h: In member function `virtual acdk::wx::RDataFormatArray
       acdk::wx::DataObject::getAllFormats(acdk::wx::DataObjectDirection) const':
    acdk/wx/DataObject.h:88: error: invalid conversion from `_GdkAtom*' to `int'
    acdk/wx/DataObject.h:88: error:   initializing argument 1 of `
       acdk::wx::DataFormat::DataFormat(int)'
    make[2]: *** [../tobj/acdk_wx/Event.o] Error 1
    make[2]: Leaving directory `/opt/acdk/acdk_wx/src'
    make[1]: *** [acdk_wx] Error 2
    make[1]: Leaving directory `/opt/acdk/acdk_wx'

     
    • Roger Rene Kommer

      I use the same combination of gcc and wxWidgets (under Suse 9.1) and compile it without any problems.

      Do you use the last recent version of ACDK?

      Please look if DataObject.h has the revision number 1.3 (see at top of the file for the %Header line).

      Roger

       
    • Chee Yee

      Chee Yee - 2004-06-09

      I downloaded acdk-4.11.0-src.tgz from sourceforge. But the header reads revision 1.2. I will try to grab the source from the CVS and give it a try.

       

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

Sign up for the SourceForge newsletter:





No, thanks