Posts: 28
Threads: 9
Joined: Feb 2013
Reputation:
0
Hi, I'm trying to build the Qt version for my Ubuntu 12.04, but my GCC throw me this error: "../Common/CPUDetect.cpp:68:4: Error: PIC register clobbered by ‘ebx’ in ‘asm’"
Also, the SDL port of the same version can build successfully.
Is there any problem about my Qt or GCC or the original code?
Please help
Thanks
PS: I tried to create a copy of CPUDetect.o from my SDL build to Qt build, and it works, but I know it wasn't a good idea...
Posts: 2,079
Threads: 62
Joined: Jun 2012
Reputation:
154
Is one of your builds 32-bit and the other 64-bit?
Posts: 2,079
Threads: 62
Joined: Jun 2012
Reputation:
154
No wait, then it wouldn't have worked to copy the .o file.
Posts: 28
Threads: 9
Joined: Feb 2013
Reputation:
0
So nobody knows why? Hmm...
Posts: 16
Threads: 1
Joined: Mar 2013
Reputation:
0
Not sure if it's valid way to fix the problem but adding -fno-pic flag for CPUDetect.cpp compilation fixes the issue. Unfortunatly, I can't verify if it works because I have problems with Qt.
I managed to compile PPSSPP using Qt 5.0.1 but getting this if I try to execute it:
I: ../native/file/zip_read.cpp:215: I: Registered VFS for prefix : assets/
I: ../native/file/zip_read.cpp:215: I: Registered VFS for prefix : ./
QMetaObject::connectSlotsByName: No matching signal for on_language_changed(QAction*)
Cannot make QOpenGLContext current in a different thread
Aborted (core dumped)
I tried to test it using Qt 4.8.1 (in case if the problem was due to using Qt5) but I can't manage to compile because multimedia module doesn't want to work (so QAudioOutput and QAudioFormat can't be included) for some reason.
Posts: 3,228
Threads: 25
Joined: Nov 2012
Reputation:
98
You need qt-mobility, I got confused as well. I think it does not work in Qt 5 right now, but I'm not sure.
As for CPUDetect - I wonder if the right way is just adding a push/pop ebx?
-[Unknown]