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

Fix detecting arhitecture on raspberry pi #1342

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
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