Skip to content

Building using Makefile on platforms without SSE support #284

Closed

Description

@martenf

| Operating System & Version | armbian |
| Kernel Version (Linux Only) | 3.10.102-odroidxu4 |
| Build System | Makefile |

When trying to build the libary using make it's failing with the following error. Im using gcc version 4.9.2

g++ src/image.cpp -std=c++11 -fPIC -pedantic -Ofast -Wno-missing-field-initializ ers -Wno-switch -Wno-multichar -DRS_USE_V4L2_BACKEND pkg-config --cflags --libs libusb-1.0 -mfpu=neon -mfloat-abi=hard -ftree-vectorize -c -o obj/image.o
src/image.cpp: In function ‘void rsimpl::unpack_rw10_from_rw8(rsimpl::byte* cons t_, const byte_, int)’:
src/image.cpp:75:43: error: ISO C++ forbids declaration of ‘type name’ with no t ype [-fpermissive]
auto src = reinterpret_cast<const __m128i *>(s);
^
src/image.cpp:75:43: error: expected ‘>’ before ‘__m128i’
src/image.cpp:75:43: error: expected ‘(’ before ‘__m128i’
src/image.cpp:75:43: error: ‘__m128i’ was not declared in this scope
src/image.cpp:75:52: error: expected primary-expression before ‘>’ token
auto src = reinterpret_cast<const __m128i *>(s);
^
src/image.cpp:75:56: error: expected ‘)’ before ‘;’ token
auto src = reinterpret_cast<const __m128i *>(s);
^
src/image.cpp:76:37: error: ‘__m128i’ does not name a type
auto dst = reinterpret_cast<__m128i >(d[0]);
^
src/image.cpp:76:45: error: expected ‘>’ before ‘
’ token
auto dst = reinterpret_cast<__m128i >(d[0]);
^
src/image.cpp:76:45: error: expected ‘(’ before ‘
’ token
src/image.cpp:76:46: error: expected primary-expression before ‘>’ token
auto dst = reinterpret_cast<__m128i _>(d[0]);
^
src/image.cpp:76:53: error: expected ‘)’ before ‘;’ token
auto dst = reinterpret_cast<__m128i *>(d[0]);
^
src/image.cpp:78:18: error: ‘xin’ was not declared in this scope
_m128i xin = (_m128i)src;
^
src/image.cpp:78:33: error: expected primary-expression before ‘)’ token
_m128i xin = (_m128i)src;
^
src/image.cpp:79:18: error: ‘xout’ was not declared in this scope
_m128i xout = (_m128i) dst;
^
src/image.cpp:79:34: error: expected primary-expression before ‘)’ token
_m128i xout = (_m128i) dst;
^
src/image.cpp:82:22: error: expected ‘;’ before ‘in1_16’
__m128i in1_16 = _mm_load_si128((_m128i)(xin));
^
src/image.cpp:83:22: error: expected ‘;’ before ‘in2_16’
__m128i in2_16 = _mm_load_si128((_m128i)(xin + 1));
^
src/image.cpp:84:22: error: expected ‘;’ before ‘out1_16’
__m128i out1_16 = _mm_srli_epi16(in1_16, 2);
^
src/image.cpp:85:22: error: expected ‘;’ before ‘out2_16’
__m128i out2_16 = _mm_srli_epi16(in2_16, 2);
^
src/image.cpp:86:22: error: expected ‘;’ before ‘out8’
__m128i out8 = _mm_packus_epi16(out1_16, out2_16);
^
src/image.cpp:87:35: error: ‘out8’ was not declared in this scope
_mm_store_si128(xout, out8);
^
src/image.cpp:87:39: error: ‘_mm_store_si128’ was not declared in this scope
mm_store_si128(xout, out8);
^
Makefile:106: recipe for target 'obj/image.o' failed
make: *
* [obj/image.o] Error 1

Activity

  1. dorodnic commented on Sep 11, 2016

    @dorodnic
    Contributor

    Hi @martenf,
    Please note that librealsense doesn't officially support ARM based platforms. However, you are correct that this is a bug - the contents of unpack_rw10_from_rw8 should be under #ifdef __SSSE3__ and an alternative version should be provided. We will do our best of fix it soon or you are welcome to submit a pull-request if you wish.

  2. changed the title [-]Building using Makefile[/-] [+]Building using Makefile on platforms without SSE support[/+] on Sep 11, 2016
  3. mdhorn commented on Sep 13, 2016

    @mdhorn
    Contributor

    @dorodnic @martenf I'm submitting a PR to fix this.

  4. mdhorn commented on Sep 13, 2016

    @mdhorn
    Contributor
  5. dorodnic commented on Sep 13, 2016

    @dorodnic
    Contributor

    Thank you, @mdhorn !

  6. added a commit that references this issue on Nov 29, 2016
  7. added a commit that references this issue on Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions