LRN / gst-avsynth

GStreamer AviSynth plugin wrapper
Other
5 stars 0 forks source link

type issues on 64bit linux #1

Closed bilboed closed 15 years ago

bilboed commented 15 years ago

I'm building gst-avsynth on linux/x86_64 and I'm getting the following build issues. This seems to be caused by the fact that a 64bit integer is defined differently on all the following setups:

... this would be a non-issue if we were using glib (which properly defines gint64/guint64 on all those setups). The macros/defines from glib should be extracted to fix this.

g++ -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I../../gst-libs -I../../gst-libs -Wall -g -MT libgstavsynth_la-gstavsynth_loader.lo -MD -MP -MF .deps/libgstavsynth_la-gstavsynth_loader.Tpo -c gstavsynth_loader.cpp -fPIC -DPIC -o .libs/libgstavsynth_la-gstavsynth_loader.o In file included from gstavsynth_loader.cpp:37: gstavsynthloader.h: In member function 'virtual AVSValue LoaderScriptEnvironment::Invoke(const char, AVSValue, const char__)': gstavsynth_loader.h:56: error: conversion from 'long int' to 'AVSValue' is ambiguous gstavsynthsdk.h:631: note: candidates are: AVSValue::AVSValue(const char) gstavsynth_sdk.h:630: note: AVSValue::AVSValue(double) gstavsynth_sdk.h:629: note: AVSValue::AVSValue(float) gstavsynth_sdk.h:627: note: AVSValue::AVSValue(int) gstavsynth_sdk.h:626: note: AVSValue::AVSValue(bool) gstavsynthsdk.h:624: note: AVSValue::AVSValue(IClip) gstavsynthloader.h: In member function 'virtual AVSValue LoaderScriptEnvironment::GetVar(const char)': gstavsynth_loader.h:57: error: conversion from 'long int' to 'AVSValue' is ambiguous gstavsynthsdk.h:631: note: candidates are: AVSValue::AVSValue(const char) gstavsynth_sdk.h:630: note: AVSValue::AVSValue(double) gstavsynth_sdk.h:629: note: AVSValue::AVSValue(float) gstavsynth_sdk.h:627: note: AVSValue::AVSValue(int) gstavsynth_sdk.h:626: note: AVSValue::AVSValue(bool) gstavsynthsdk.h:624: note: AVSValue::AVSValue(IClip) gstavsynth_videofilter.h: At global scope: gstavsynth_videofilter.h:228: warning: 'gboolean gst_avsynth_video_filter_srcconvert(GstPad, GstFormat, gint64, GstFormat, gint64)' declared 'static' but never defined make: _\ [libgstavsynth_la-gstavsynth_loader.lo] Error 1

LRN commented 15 years ago

Should i close it now (since we've fixed it)?

bilboed commented 15 years ago

Yah, will push my changes to my repo soon

LRN commented 15 years ago

OK. Closing.