Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Linux #1

Open
darealshinji opened this issue Dec 21, 2014 · 1 comment
Open

Build fails on Linux #1

darealshinji opened this issue Dec 21, 2014 · 1 comment

Comments

@darealshinji
Copy link

Building it on Ubuntu 14.04 (64 Bit) fails:

libtool: compile:  g++ -DPACKAGE_NAME=\"vapoursynth-plugins\" -DPACKAGE_TARNAME=\"vapoursynth-plugins\" -DPACKAGE_VERSION=\"1\" "-DPACKAGE_STRING=\"vapoursynth-plugins 1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBM=1 -DHAVE_LIBPNG=1 -DHAVE_LIBZ=1 -DHAVE_LIBXVIDCORE=1 -DHAVE_FLOAT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_PNG_H=1 -DHAVE__BOOL=1 -DHAVE_FSEEKO=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRTOUL=1 -I. -DVS_TARGET_CPU_X86 -I/usr/include/vapoursynth -Wall -Wextra -Wno-unused-parameter -g -O2 -std=c++11 -MT src/libremovedirt_la-RemoveDirt.lo -MD -MP -MF src/.deps/libremovedirt_la-RemoveDirt.Tpo -c src/RemoveDirt.cpp  -fPIC -DPIC -o src/.libs/libremovedirt_la-RemoveDirt.o
src/RemoveDirt.cpp: In function 'void markblocks(MotionDetectionDistData*, const uint8_t*, int32_t, const uint8_t*, int32_t)':
src/RemoveDirt.cpp:762:41: error: cast from 'const uint8_t* {aka const unsigned char*}' to 'uint32_t {aka unsigned int}' loses precision [-fpermissive]
     if(((pitch1 - pitch2) | (((uint32_t)p1) & 15) | (((uint32_t)p2) & 15)) == 0) {
                                         ^
src/RemoveDirt.cpp:762:65: error: cast from 'const uint8_t* {aka const unsigned char*}' to 'uint32_t {aka unsigned int}' loses precision [-fpermissive]
     if(((pitch1 - pitch2) | (((uint32_t)p1) & 15) | (((uint32_t)p2) & 15)) == 0) {
                                                                 ^

@in3omnia
Copy link

Change uint32_t to uintptr_t in line 762

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants