In ETL/ETL/_clock_system.h
60 class clock_desc_sys_clock
61 {
62 public:
63 typedef float value_type;
64
65 inline static bool realtime()
66 { return false; }
In synfig-studio/src/gui/states/state_width.cpp
if(event.key == EVENT_WORKAREA_MOUSE_BUTTON_DRAG)
{
dtime = min(1/15.0,clocktime());
}
clocktime is float, while 1/15.0 is double.
This error line gave me some hint:
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument
deduction/substitution failed:
states/state_width.cpp:524:34: note: deduced conflicting types for
parameter 'const _Tp' ('double' and
'etl::clock_base<etl::clock_desc_sys_clock>::value_type {aka float}')
The problems happend to that min(double, float) not there.
A quick fix is to change 1/15.0 to (float)(1/15.0), but I recommend to use
some float variables to hold this 1/15.0, to make it at least code level
configurable.
2015-05-08 18:09 GMT-05:00 Pengfei Hao <int...@gmail.com>:
> sorry for the wrong spelling of your name, should be Konstantin
>
>
> 2015-05-08 18:09 GMT-05:00 Pengfei Hao <int...@gmail.com>:
>
> Hi, :
>>
>> Konstantian sent me a new version to fix the configure bug, now based on
>> the tarball he provided, I get another problem, this happened when I
>> compile synfigstudio part, it says a function called *min* not defined.
>>
>> Please check it.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Below is the compilation output.
>> ===========================================
>>
>>
>>
>> make[3]: Entering directory
>> '/home/abuild/rpmbuild/BUILD/synfigstudio-1.0.1/src/gui'
>> g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -pthread -D_REENTRANT
>> -I/usr/include/synfig-1.0 -I/usr/include/giomm-2.4
>> -I/usr/lib64/giomm-2.4/include -I/usr/include/libxml++-2.6
>> -I/usr/lib64/libxml++-2.6/include -I/usr/include/libxml2
>> -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include
>> -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0
>> -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
>> -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16
>> -I/usr/include/mlt++ -I/usr/include/mlt -I/usr/include/sigc++-2.0
>> -I/usr/lib64/sigc++-2.0/include -pthread -I/usr/include/gtkmm-3.0
>> -I/usr/lib64/gtkmm-3.0/include -I/usr/include/atkmm-1.6
>> -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0
>> -I/usr/lib64/gdkmm-3.0/include -I/usr/include/giomm-2.4
>> -I/usr/lib64/giomm-2.4/include -I/usr/include/pangomm-1.4
>> -I/usr/lib64/pangomm-1.4/include -I/usr/include/glibmm-2.4
>> -I/usr/lib64/glibmm-2.4/include -I/usr/include/gtk-3.0
>> -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0
>> -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
>> -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/
>> -I/usr/include/pkg/wayland -I/usr/include/pkg/libxkbcommon
>> -I/usr/include/pkg/wayland -I/usr/include/cairo -I/usr/include/pango-1.0
>> -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0
>> -I/usr/include/cairo -I/usr/include/cairomm-1.0
>> -I/usr/lib64/cairomm-1.0/include -I/usr/include/cairo
>> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm
>> -I/usr/include/libpng16 -I/usr/include/sigc++-2.0
>> -I/usr/lib64/sigc++-2.0/include -I/usr/include/gdk-pixbuf-2.0
>> -I/usr/include/libpng16 -I/usr/include/glib-2.0
>> -I/usr/lib64/glib-2.0/include
>> -DIMAGE_DIR=\"/usr/share/pixmaps/synfigstudio\" -DIMAGE_EXT=\"png\"
>> -DPLUGIN_DIR=\"/usr/share/synfig/plugins\"
>> -DLOCALEDIR=\"/usr/share/locale\" -fmessage-length=0 -grecord-gcc-switches
>> -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
>> -fasynchronous-unwind-tables -O2 -DNDEBUG -W -c -o
>> states/synfigstudio-state_width.o `test -f 'states/state_width.cpp' || echo
>> './'`states/state_width.cpp
>> In file included from /usr/include/ETL/stringf:32:0,
>> from /usr/include/synfig-1.0/synfig/general.h:31,
>> from /usr/include/synfig-1.0/synfig/type.h:35,
>> from /usr/include/synfig-1.0/synfig/base_types.h:30,
>> from /usr/include/synfig-1.0/synfig/value.h:32,
>> from /usr/include/synfig-1.0/synfig/valuenode.h:33,
>> from
>> /usr/include/synfig-1.0/synfig/valuenodes/valuenode_dynamiclist.h:34,
>> from states/state_width.cpp:39:
>> /usr/include/ETL/_stringf.h:128:2: warning: #warning Potential for
>> Buffer-overflow bug using vsprintf [-Wcpp]
>> #warning Potential for Buffer-overflow bug using vsprintf
>> ^
>> states/state_width.cpp: In member function
>> ‘etl::smach<studio::CanvasView, studio::EventKey>::event_result
>> studio::StateWidth_Context::event_mouse_handler(const
>> etl::smach<studio::CanvasView, studio::EventKey>::event&)’:
>> *states/state_width.cpp:524:34: error: no matching function for call to
>> ‘min(double, etl::clock_base<etl::clock_desc_sys_clock>::value_type)’*
>> dtime = min(1/15.0,clocktime());
>> ^
>> states/state_width.cpp:524:34: note: candidates are:
>> In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
>> from /usr/include/c++/4.8/ios:40,
>> from /usr/include/c++/4.8/ostream:38,
>> from /usr/include/c++/4.8/iterator:64,
>> from /usr/include/glibmm-2.4/glibmm/ustring.h:29,
>> from /usr/include/gtkmm-3.0/gtkmm/dialog.h:7,
>> from states/state_width.cpp:34:
>> /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp>
>> const _Tp& std::min(const _Tp&, const _Tp&)
>> min(const _Tp& __a, const _Tp& __b)
>> ^
>> /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument
>> deduction/substitution failed:
>> states/state_width.cpp:524:34: note: deduced conflicting types for
>> parameter ‘const _Tp’ (‘double’ and
>> ‘etl::clock_base<etl::clock_desc_sys_clock>::value_type {aka float}’)
>> dtime = min(1/15.0,clocktime());
>> ^
>> In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
>> from /usr/include/c++/4.8/ios:40,
>> from /usr/include/c++/4.8/ostream:38,
>> from /usr/include/c++/4.8/iterator:64,
>> from /usr/include/glibmm-2.4/glibmm/ustring.h:29,
>> from /usr/include/gtkmm-3.0/gtkmm/dialog.h:7,
>> from states/state_width.cpp:34:
>> /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp,
>> class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
>> min(const _Tp& __a, const _Tp& __b, _Compare __comp)
>> ^
>> /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template argument
>> deduction/substitution failed:
>> states/state_width.cpp:524:34: note: deduced conflicting types for
>> parameter ‘const _Tp’ (‘double’ and
>> ‘etl::clock_base<etl::clock_desc_sys_clock>::value_type {aka float}’)
>> dtime = min(1/15.0,clocktime());
>> ^
>> Makefile:2515: recipe for target 'states/synfigstudio-state_width.o'
>> failed
>>
>>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl