Giter Club home page Giter Club logo

Comments (4)

cielavenir avatar cielavenir commented on August 20, 2024

ccmake CMakeList.txt
Press T to Advanced Mode
Add -msse2 manually to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
worked as workaround, but then:


/work/git/ppsspp/Common/CPUDetect.cpp: In member function 'void CPUInfo::Detect()':
/work/git/ppsspp/Common/CPUDetect.cpp:176:8: warning: variable 'cmp_legacy' set but not used [-Wunused-but-set-variable]
/work/git/ppsspp/Common/CPUDetect.cpp: In function 'void do_cpuid(unsigned int_, unsigned int_, unsigned int_, unsigned int_)':
/work/git/ppsspp/Common/CPUDetect.cpp:65:4: error: PIC register clobbered by 'ebx' in 'asm'

from ppsspp.

hrydgard avatar hrydgard commented on August 20, 2024

I think the issue is there because you're the first to build it for 32-bit Linux x86 - most people run 64-bit these days, and Android, while 32-bit, is on ARM and doesn't build this x86-specific CPU detection code.

Anyway, you can try removing the PIC flag for such builds, which should fix this issue. PIC code (position-independent) is slow on 32-bit anyway.

from ppsspp.

cielavenir avatar cielavenir commented on August 20, 2024

Uh, maybe I don't know how to turn off -fPIC.
cd SDL;grep -R PIC *
Common/CMakeFiles/common.dir/flags.make:(snip) <- this is generated file...

Off topc: well, this server has AthlonX2 (64bit CPU) but disk image is copied from old PC's HDD whose CPU is cerelon, forcing to use i386 mode...

from ppsspp.

hrydgard avatar hrydgard commented on August 20, 2024

Actually, should probably fix that piece of inline assembler to be PIC compatible anyway, it will be needed on Android x86 (although there we maybe don't need to detect cpu as all x86 android CPUs are fairly modern...)

from ppsspp.

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.