wxWidgets? Is supported or not?

Discussion of Transmission that doesn't fit in the other categories
Post Reply
pianist
Posts: 6
Joined: Tue Sep 16, 2008 1:31 am
Location: Russia, Moscow

wxWidgets? Is supported or not?

Post by pianist »

I tried to compile wx gui, but it failed. Many warnings, error, fixing, but at the end met this:

Code: Select all

MyApp :: OnInit( )
{
    handle = tr_sessionInit( "wx" );
As I see, this version of tr_sessionInit is deprecated. => wx gui is not supported any more?
:roll:
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: wxWidgets? Is supported or not?

Post by Jordan »

It never was supported; it's more of a work in progress... very slow progress at the moment, but I haven't given up on it yet. :)
chrisballinger
Posts: 1
Joined: Fri Jan 09, 2009 11:56 pm

Re: wxWidgets? Is supported or not?

Post by chrisballinger »

I am trying to compile the wxWidgets frontend on the Mac, and am receiving the following errors:

Code: Select all

g++ -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"1.42\" -DPACKAGE_STRING=\"transmission\ 1.42\" -DPACKAGE_BUGREPORT=\"http://trac.transmissionbt.com/newticket\" -DPACKAGE=\"transmission\" -DVERSION=\"1.42\" -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 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LRINTF=1 -DHAVE_STRLCPY=1 -DHAVE_DAEMON=1 -DHAVE_DIRNAME=1 -DHAVE_BASENAME=1 -DHAVE_DAEMON=1 -DHAVE_STRCASECMP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_PTHREAD=1 -DHAVE__TMP_DUMMY1_ZLIB_H=1 -DHAVE_ZLIB=1 -DHAVE_LIBINTL_H=1 -DGETTEXT_PACKAGE=\"transmission\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DHAVE_DARWIN=1 -I.  -I.. -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ -I../third-party/libevent  -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__  -g -Wall -Wformat-security -W -O3 -funroll-loops -MT torrent-list.o -MD -MP -MF .deps/torrent-list.Tpo -c -o torrent-list.o torrent-list.cc
torrent-list.cc: In function ‘wxString<unnamed>::toWxStr(const std::string&)’:
torrent-list.cc:134: error: invalid use of undefined type ‘const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’
/usr/include/c++/4.0.0/bits/stringfwd.h:56: error: declaration of ‘const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’
torrent-list.cc: In member function ‘void TorrentListCtrl::RefreshTorrent(tr_torrent*, int, const<unnamed>::int_v&)’:
torrent-list.cc:230: error: aggregate ‘std::string str’ has incomplete type and cannot be defined
torrent-list.cc:339: error: no matching function for call to ‘std::map<std::string, int, std::less<std::string>, std::allocator<std::pair<const std::string, int> > >::find(const char [41])’
/usr/include/c++/4.0.0/bits/stl_map.h:497: note: candidates are: typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const _Key&) [with _Key = std::string, _Tp = int, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, int> >]
/usr/include/c++/4.0.0/bits/stl_map.h:512: note:                 typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, _Alloc>::const_iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const _Key&) const [with _Key = std::string, _Tp = int, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, int> >]
/usr/include/c++/4.0.0/bits/stl_pair.h: At global scope:
/usr/include/c++/4.0.0/bits/stl_pair.h: In instantiation of ‘std::pair<const std::string, int>’:
torrent-list.cc:341:   instantiated from here
/usr/include/c++/4.0.0/bits/stl_pair.h:73: error: ‘std::pair<_T1, _T2>::first’ has incomplete type
/usr/include/c++/4.0.0/bits/stringfwd.h:56: error: declaration of ‘const struct std::string’
torrent-list.cc: In member function ‘void TorrentListCtrl::RefreshTorrent(tr_torrent*, int, const<unnamed>::int_v&)’:
torrent-list.cc:350: error: no match for ‘operator[]’ in ‘((TorrentListCtrl*)this)->TorrentListCtrl::myHashToItem[info->tr_info::hashString]’
/usr/include/c++/4.0.0/bits/stl_map.h:331: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::string, _Tp = int, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, int> >]
torrent-list.cc:230: warning: unused variable ‘str’
torrent-list.cc: In member function ‘void TorrentListCtrl::Resort()’:
torrent-list.cc:574: error: no match for ‘operator[]’ in ‘tmp[info->tr_info::hashString]’
/usr/include/c++/4.0.0/bits/stl_map.h:331: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::string, _Tp = int, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, int> >]
torrent-list.cc: In member function ‘void TorrentListCtrl::Remove(const torrent_set&)’:
torrent-list.cc:703: error: no match for ‘operator[]’ in ‘htmp[info->tr_info::hashString]’
/usr/include/c++/4.0.0/bits/stl_map.h:331: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::string, _Tp = int, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, int> >]
torrent-list.cc: In member function ‘const tr_stat* TorrentListCtrl::getStat(tr_torrent*)’:
torrent-list.cc:720: error: no match for ‘operator[]’ in ‘((TorrentListCtrl*)this)->TorrentListCtrl::myHashToStat[info->tr_info::hashString]’
/usr/include/c++/4.0.0/bits/stl_map.h:331: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::string, _Tp = TorrentListCtrl::TorStat, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, TorrentListCtrl::TorStat> >]
/usr/include/c++/4.0.0/bits/stl_pair.h: At global scope:
/usr/include/c++/4.0.0/bits/stl_pair.h: In instantiation of ‘std::pair<const std::string, TorrentListCtrl::TorStat>’:
/usr/include/c++/4.0.0/bits/stl_tree.h:135:   instantiated from ‘std::_Rb_tree_node<std::pair<const std::string, TorrentListCtrl::TorStat> >’
/usr/include/c++/4.0.0/bits/stl_tree.h:1056:   instantiated from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase(std::_Rb_tree_node<_Val>*) [with _Key = std::string, _Val = std::pair<const std::string, TorrentListCtrl::TorStat>, _KeyOfValue = std::_Select1st<std::pair<const std::string, TorrentListCtrl::TorStat> >, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, TorrentListCtrl::TorStat> >]’
/usr/include/c++/4.0.0/bits/stl_tree.h:570:   instantiated from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::~_Rb_tree() [with _Key = std::string, _Val = std::pair<const std::string, TorrentListCtrl::TorStat>, _KeyOfValue = std::_Select1st<std::pair<const std::string, TorrentListCtrl::TorStat> >, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, TorrentListCtrl::TorStat> >]’
/usr/include/c++/4.0.0/bits/stl_map.h:92:   instantiated from here
/usr/include/c++/4.0.0/bits/stl_pair.h:73: error: ‘std::pair<_T1, _T2>::first’ has incomplete type
/usr/include/c++/4.0.0/bits/stringfwd.h:56: error: declaration of ‘const struct std::string’
make[2]: *** [torrent-list.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
chrisballinger:transmission-1.42 chrisbal$ 
I don't know enough about wxWidgets to diagnose the problem. Can anyone help with this issue?
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: wxWidgets? Is supported or not?

Post by Jordan »

chrisballinger wrote:I don't know enough about wxWidgets to diagnose the problem. Can anyone help with this issue?
Possibly try asking here in the wxWidgets forum. They will probably be able to help you.
Post Reply