Skip to content

Fix detecting arhitecture on raspberry pi#1342

Merged
jacobkeeler merged 3 commits intosmartdevicelink:release/4.3.0from
LuxoftAKutsan:fix/arch_detecting_on_rasberry
Mar 8, 2017
Merged

Fix detecting arhitecture on raspberry pi#1342
jacobkeeler merged 3 commits intosmartdevicelink:release/4.3.0from
LuxoftAKutsan:fix/arch_detecting_on_rasberry

Conversation

@LuxoftAKutsan
Copy link
Contributor

Detect architecture depending on size of void

Related to #1329

Detect arhotecture depending on size of void

Related to smartdevicelink#1329
# void ptr = 4 byte --> x86
set(${ARCH} "x86" PARENT_SCOPE)
elseif(ARCH_X64)
set(${ARCH} "x64" PARENT_SCOPE)
Copy link
Contributor

@jacobkeeler jacobkeeler Mar 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LuxoftAKutsan Do you know whether the change from x64 to x86_64 will break anything? From what I've seen of the CMake changes, it looks like this ARCH value is only really relevant when building for Windows.

if(ARCH_X86)
if( CMAKE_SIZEOF_VOID_P MATCHES 8 )
# void ptr = 8 byte --> x86_64
set(${ARCH} "x86" PARENT_SCOPE)
Copy link
Contributor

@jacobkeeler jacobkeeler Mar 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo, should be x64.

Copy link
Contributor

@mrapitis mrapitis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using this branch, cmake process now succeeds and builds fine on raspberry pi

@LuxoftAKutsan
Copy link
Contributor Author

@mrapitis grate! @jacobkeeler @JackLivio please review and merge

@jacobkeeler
Copy link
Contributor

jacobkeeler commented Mar 7, 2017

I ran into the same "unsupported architecture" message when rebasing #1159 onto the new develop. Incorporating this fix resolved the issue.

@jacobkeeler jacobkeeler merged commit 7c96aee into smartdevicelink:release/4.3.0 Mar 8, 2017
@LuxoftAKutsan LuxoftAKutsan deleted the fix/arch_detecting_on_rasberry branch March 9, 2017 14:39
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

Successfully merging this pull request may close these issues.

3 participants