Giter Site home page Giter Site logo

Run in different arch machine about snapcast HOT 9 CLOSED

badaix avatar badaix commented on August 20, 2024
Run in different arch machine

from snapcast.

Comments (9)

maosuyun2009 avatar maosuyun2009 commented on August 20, 2024

I have know about my problem, first problem is because of different platform have different byte order, maybe should to change byte order in different platform.
But I'm still curious about my second problem, In my mips board, I have to change stream.write(reinterpret_cast<const char *>(&request), sizeof(uint16_t)) to
stream.write(reinterpret_cast<const char *>(&request), sizeof(uint32_t)). so snapserver can receive requestMsg.request == kServerSettings.

from snapcast.

badaix avatar badaix commented on August 20, 2024

On stackoverflow they say that an enum has the size of an int (with arch default size). So it seems to be a bad idea to do the seralization/deserialization the way it's done in Snapcast.
BTW: it was a design decision to do serialization "manually" because there a not too many different messages. In the beginning I was afraid that the day will come where someone has a system with different byte order..
What kind of MIPS board do you have? Did you solve the byte order problem?

from snapcast.

maosuyun2009 avatar maosuyun2009 commented on August 20, 2024

@badaix I haven't solved the byte order problem, My MIPS board is atheros AR9331, But I have successful run snapserver and snapclient in my 3 mips board, It's work fine

from snapcast.

badaix avatar badaix commented on August 20, 2024

@maosuyun2009 can you give me a hint how to build for MIPS?
I have an idle TP-Link TL-WR1043ND router with OpenWrt Chaos Calmer firmware installed. I would really like to have this router running as a snapclient.
Is the cross-compiler the way to go or do I have to create a package.mk? Or maybe both?

from snapcast.

maosuyun2009 avatar maosuyun2009 commented on August 20, 2024

@badaix I alsa build snapcast with openwrt, I just create a package.mk and build to a ipk package

from snapcast.

badaix avatar badaix commented on August 20, 2024

@maosuyun2009 can you share the package.mk script? 😃

from snapcast.

maosuyun2009 avatar maosuyun2009 commented on August 20, 2024

@badaix I don't know how send package.mk to you, so i new a repository, this repository is full package contain old snapcast code.
https://github.com/maosuyun2009/snapcast-for-openwrt.git

from snapcast.

badaix avatar badaix commented on August 20, 2024

thanks @maosuyun2009 👍

from snapcast.

badaix avatar badaix commented on August 20, 2024

Added support for OpenWrt in v0.6.0

from snapcast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.