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

Qt build fail on linux #7753

Closed
sergiobenrocha2 opened this issue May 19, 2015 · 4 comments
Closed

Qt build fail on linux #7753

sergiobenrocha2 opened this issue May 19, 2015 · 4 comments
Labels
Platform-specific (Linux/POSIX) Qt Issue on Qt but not all ports.

Comments

@sergiobenrocha2
Copy link
Contributor

Build fail on Linux (ubuntu 14.04, 14.10 and 15.04)

g++ -c -m64 -pipe -Wno-unused-function -Wno-unused-variable -Wno-strict-aliasing -fno-strict-aliasing -Wno-unused-parameter -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -std=c++11 -msse2 -O3 -ffast-math -Wall -W -D_REENTRANT -DUSING_QT_UI -DUSE_FFMPEG -D_M_X64 -D_ARCH_64 -DPPSSPP_GIT_VERSION="\"1.0.1.0\"" -D__STDC_CONSTANT_MACROS -DSDL -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I../ext/zlib -I../Common -I../ffmpeg/linux/x86_64/include -I../../ppsspp-qt-1.0.1+r56.f46.n1184.l1578.a159.t83~12~ubuntu14.04.1 -I../Common -I../native -I../native/ext -I../native/ext/glew -I. -IDebugger -I/usr/include/SDL2 -I/usr/X11R6/include -I.moc/ppsspp -I.ui/ppsspp -o .obj/ppsspp/QtMain.o ../native/base/QtMain.cpp
In file included from ../native/base/QtMain.cpp:32:0:
../native/base/QtMain.h: In member function 'virtual void MainUI::resizeEvent(QResizeEvent*)':
../native/base/QtMain.h:83:58: error: too few arguments to function 'bool UpdateScreenScale(int, int, bool)'
   UpdateScreenScale(e->size().width(), e->size().height());
                                                          ^
In file included from ../native/base/QtMain.h:34:0,
                 from ../native/base/QtMain.cpp:32:
../../ppsspp-qt-1.0.1+r56.f46.n1184.l1578.a159.t83~12~ubuntu14.04.1/Core/Core.h:45:6: note: declared here
 bool UpdateScreenScale(int width, int height, bool smallWindow);
      ^
make[3]: *** [.obj/ppsspp/QtMain.o] Error 1

https://launchpadlibrarian.net/206897447/buildlog_ubuntu-trusty-amd64.ppsspp-qt_1.0.1%2Br56.f46.n1184.l1578.a159.t83~12~ubuntu14.04.1_BUILDING.txt.gz

@sergiobenrocha2
Copy link
Contributor Author

Broke between 5d0d671 and 83182a0.

@scjacobi
Copy link

It was this commit: 28d8ed5. Can get past it by changing line 83 of native/base/QtMain.h from

UpdateScreenScale(e->size().width(), e->size().height());

to

UpdateScreenScale(e->size().width(), e->size().height(), false);

@unknownbrackets
Copy link
Collaborator

Probably should be UpdateScreenScale(e->size().width(), e->size().height(), e->size().width() < 480 + 80); or something, but more ideally Qt would also support the rotation.

Anyone care to give that a stab?

-[Unknown]

hrydgard added a commit that referenced this issue May 21, 2015
@thedax thedax added Platform-specific (Linux/POSIX) Qt Issue on Qt but not all ports. labels May 29, 2015
@sergiobenrocha2
Copy link
Contributor Author

Fixed some time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform-specific (Linux/POSIX) Qt Issue on Qt but not all ports.
Projects
None yet
Development

No branches or pull requests

4 participants