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

Compilation error on Amlogic S905 using Libreelec #358

Closed
shantigilbert opened this Issue Jun 17, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@shantigilbert

shantigilbert commented Jun 17, 2017

I am trying to compile Attract Mode for an Amlogic S905, I got SFML to compile after a lot of searching, but now Attract won't compile.

First it gave me this error:

src/fe_vm.cpp: In member function 'virtual bool FeVM::on_new_layout()': <command-line>:0:16: error: 'Sx05RE_150' was not declared in this scope src/fe_vm.cpp:496:32: note: in expansion of macro 'FE_VERSION_NUM' .Const( _SC("FeVersionNum"), FE_VERSION_NUM) ^ src/fe_vm.cpp: In constructor 'FeConfigVM::FeConfigVM(const FeScriptConfigurable&, const string&, const string&, bool)': <command-line>:0:16: error: 'Sx05RE_150' was not declared in this scope src/fe_vm.cpp:1411:33: note: in expansion of macro 'FE_VERSION_NUM' .Const( _SC("FeVersionNum"), FE_VERSION_NUM)

For some reason it was picking up the name of my LibreElec "distro" so I made a patch to replace FE_VERSION_NUM with just a number 1

FE_FLAGS += -DFE_VERSION_D='"$(VER_TAG)"' -DFE_VERSION_NUM=1

But after that this is the error that I am stuck at:

<built-in>: note: this is the location of the previous definition Compiling obj/sqstdlib/sqstdblob.o... In file included from /home/sg/sx05re/Kszaq/build.Sx05RE-S905.arm-1.6/toolchain/armv8a-libreelec-linux-gnueabi/sysroot/usr/include/libavutil/samplefmt.h:24:0, from /home/sg/sx05re/Kszaq/build.Sx05RE-S905.arm-1.6/toolchain/armv8a-libreelec-linux-gnueabi/sysroot/usr/include/libavcodec/avcodec.h:31, from src/media.cpp:30: /home/sg/sx05re/Kszaq/build.Sx05RE-S905.arm-1.6/toolchain/armv8a-libreelec-linux-gnueabi/sysroot/usr/include/libavutil/avutil.h: In function 'void* av_x_if_null(const void*, const void*)': /home/sg/sx05re/Kszaq/build.Sx05RE-S905.arm-1.6/toolchain/armv8a-libreelec-linux-gnueabi/sysroot/usr/include/libavutil/avutil.h:302:40: error: cast from 'const void*' to 'intptr_t {aka int}' loses precision [-fpermissive] return (void *)(intptr_t)(p ? p : x);

Can anyone shed a light as to why this is happening or a way to fix it ?

I am cross-compiling from Ubuntu 16.04 64bits

Thank you!

@mickelson

This comment has been minimized.

Show comment
Hide comment
@mickelson

mickelson Aug 14, 2018

Owner

sorry I have no idea and see this is getting pretty stale. I'm going to close the issue

Owner

mickelson commented Aug 14, 2018

sorry I have no idea and see this is getting pretty stale. I'm going to close the issue

@mickelson mickelson closed this Aug 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment