Giter VIP home page Giter VIP logo

Comments (7)

JaCzekanski avatar JaCzekanski commented on September 2, 2024

Hello
I need more info about your build environment to reproduce this issue:

  • System version and processor architecture (x86/x64, other?)
  • Compilator type and version (gcc/clang)
  • What build commands are you using (make config=release_x64 avocado, something different).

from avocado.

sodomon2 avatar sodomon2 commented on September 2, 2024
  • System version and processor architecture (x86/x64, other?)
    Alpine linux x86_64

  • Compilator type and version (gcc/clang)
    gcc

Well apparently I already found the bug was that it detected the x86 architecture and I have x86_64

and apparently passing this command

  • make config=release_x64 avocado
    the architecture changes to x86_64
    but it gives me another mistake

And here's the mistake.
==== Building core (release_x64) ====
voice.cpp
../../../src/device/spu/voice.cpp: In member function 'void spu::Voice::processEnvelope()':
../../../src/device/spu/voice.cpp:64:69: error: 'ceil' is not a member of 'std'
step = static_cast(static_cast(step) * std::ceil(static_cast(adsrVolume._reg) / static_cast(0x8000)));
^~~~
../../../src/device/spu/voice.cpp:64:69: note: suggested alternative: 'cend'
step = static_cast(static_cast(step) * std::ceil(static_cast(adsrVolume._reg) / static_cast(0x8000)));
^~~~
cend
make[1]: *** [Makefile:360: obj/x64/release/voice.o] Error 1
make: *** [Makefile:107: core] Error 2
make: *** Waiting for unfinished jobs....

from avocado.

JaCzekanski avatar JaCzekanski commented on September 2, 2024

Please try building latest commit e106b75, there were few issues in code that prevented it from building on certain compilers.

In case of merge conflicts, reset branch to origin (I was rebasing the code):

git fetch
git reset --hard origin/develop

from avocado.

sodomon2 avatar sodomon2 commented on September 2, 2024

apparently I cloned the code again and compile with these instructions

  • premake5 gmake
  • make config=release_x64 avocado

and I compile without errors but at the time of running the emulator says to me

Illegal instruction

from avocado.

JaCzekanski avatar JaCzekanski commented on September 2, 2024

It seems like you have older cpu which doesn't support AVX. You have to either build 32 bit version or remove this line from premake5.lua and rebuild the whole project (as 64 bit version)
vectorextensions "AVX"

from avocado.

sodomon2 avatar sodomon2 commented on September 2, 2024

Thank you very much but now that I did it gives me another error here the error

[GL] Cannot load render shader: File doesn't exists.
Cannot setup graphics

from avocado.

JaCzekanski avatar JaCzekanski commented on September 2, 2024

Oops, I forgot to fix that. It will be fixed in future commits.

Simply comment line
chdir(workingDirectory.c_str());
in src/platform/windows/main.cpp

from avocado.

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.