Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it possible to compile pcsx2 from git without qt6?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 159
Location: Spain

PostPosted: Sun Jul 10, 2022 11:47 am    Post subject: Is it possible to compile pcsx2 from git without qt6? Reply with quote

Hi, I have tried to compile pcsx2 the latest version, but it asks for qt6. I tried to use the qt repository, but not everything is all ported to qt6.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2727

PostPosted: Sun Jul 10, 2022 12:34 pm    Post subject: Reply with quote

How are you building it? The pcsx2-9999 ebuild is hard-disabling qt6 at the moment (-DQT_BUILD=off) and builds without it (will add a optional USE=qt6 when everything needed is in the tree).
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30954
Location: here

PostPosted: Sun Jul 10, 2022 12:36 pm    Post subject: Reply with quote

Maybe with -DQT_BUILD=FALSE flag passed to cmake.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 159
Location: Spain

PostPosted: Sun Jul 10, 2022 12:51 pm    Post subject: Reply with quote

Ionen wrote:
How are you building it? The pcsx2-9999 ebuild is hard-disabling qt6 at the moment (-DQT_BUILD=off) and builds without it (will add a optional USE=qt6 when everything needed is in the tree).


Does not compile

this is error:

Code:
In file included from /tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999/pcsx2/PrecompiledHeader.h:92,
                 from /tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999_build/pcsx2/CMakeFiles/PCSX2.dir/cmake_pch.hxx:5,
                 from <command-line>:
/tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999/pcsx2/PCSX2Base.h:33:18: error: #error PCSX2 requires compiling for at least SSE 4.1
   33 |                 #error PCSX2 requires compiling for at least SSE 4.1
      |                  ^~~~~
ninja: build stopped: subcommand failed.
 * ERROR: games-emulation/pcsx2-9999::gentoo failed (compile phase):
 *   ninja -v -j8 -l16 failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2878:  Called cmake_src_compile
 *   environment, line 1079:  Called cmake_build
 *   environment, line 1048:  Called eninja
 *   environment, line 1528:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=games-emulation/pcsx2-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/pcsx2-9999::gentoo'`.
 * The complete build log is located at '/var/log/portage/games-emulation:pcsx2-9999:20220710-124014.log'.
 * The ebuild environment file is located at '/tmp/portage/games-emulation/pcsx2-9999/temp/environment'.
 * Working directory: '/tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999_build'
 * S: '/tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999'
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2727

PostPosted: Sun Jul 10, 2022 1:41 pm    Post subject: Reply with quote

What cpu? If it doesn't suport sse4.1 you may be out of luck, seems all the alternate code paths were killed last year:
https://github.com/PCSX2/pcsx2/pull/4329

If lucky, double check that you're passing -march=native and not, e.g. -march=core2 or none in C(XX)FLAGS (don't see arguments in the above snipplet).

Will probably add a cpu_flags_* check to the ebuild for this whenever do a release/snapshot, but it'll mostly be a bringer of sad news rather than a full solution.
Back to top
View user's profile Send private message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 159
Location: Spain

PostPosted: Sun Jul 10, 2022 2:37 pm    Post subject: Reply with quote

My cpu is a Ryzen 2700x , I tried with native and same error.

emerge --info
Code:
emerge --info
Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12.1.1, glibc-2.35-r8, 5.18.9-gentoo x86_64)
=================================================================
System uname: Linux-5.18.9-gentoo-x86_64-AMD_Ryzen_7_2700X_Eight-Core_Processor-with-glibc2.35
KiB Mem:    16271964 total,   2190132 free
KiB Swap:   32767996 total,  32764412 free
Timestamp of repository gentoo: Sun, 10 Jul 2022 10:30:01 +0000
Head commit of repository gentoo: dbac8fa5229d99b4ffd95d3f121a22f781aefbf4
Head commit of repository librewolf: 7ea356b0ea09b9a4f6705e881673d92229ad3112

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
ccache version 4.6.1 [disabled]
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.5::gentoo, 3.11.0_beta3_p2::gentoo
dev-lang/rust-bin:         1.62.0::gentoo
dev-util/ccache:           4.6.1::gentoo
dev-util/cmake:            3.23.2::gentoo
dev-util/meson:            0.63.0::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo, 14.0.6::gentoo
sys-devel/gcc:             11.3.0::gentoo, 12.1.1_p20220625::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

juanpe
    location: /var/db/repos/juanpe
    masters: gentoo

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://gitlab.com/librewolf-community/browser/gentoo.git
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE-SOFTWARE @FSF-APPROVED-OTHER"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d/consolefont /etc/conf.d/keymaps /etc/eixrc/00-eixrc /etc/locale.gen /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/vmware-installer"
CXXFLAGS="-mtune=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --autounmask-use=y  --autounmask-use=y --binpkg-respect-use=y --color=y --complete-graph-if-new-use=y --complete-graph  --alert  --alphabetical  --buildpkg    --autounmask-write=y  --keep-going=y  --with-bdeps=y  --autounmask=n   --complete-graph=y  --ask-enter-invalid  --autounmask-keep-masks=y  --autounmask-keep-keywords=y  --load-average=16  --fail-clean=y  --autounmask-license=y  --jobs=4"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live candy cgroup clean-logs collision-protect config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://ftp.free.fr/mirrors/ftp.gentoo.org/     http://gentoo.mirror.garr.it/     http://mirrors.aliyun.com/gentoo/"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi activities alsa amd64 ao apng archive bluetooth bluray branding bzip2 cairo cdda cddb cdr cdrom cli crypt cryptsetup cups dav1d dbus declarative designer dri dts dv dvb dvd dvdr elogind encode eps epub exif fdk ffmpeg fftw flac fortran frei0r gdbm gif gpg gpm gstreamer gtk gui handbook harfbuzz heif hwaccel iconv icu imagemagick inkjar ipv6 java jit jpeg jpeg2k jumbo-build kde kipi kwallet lame lcms libass libglvnd libnotify libtirpc lm-sensors logrotate lua luajit lzo mad mng modplug mp3 mp4 mpeg mtp multilib multimedia ncurses networkmanager nfs nls npm nptl nvenc odf office ogg opencl openexr opengl openh264 openmp openssl pam pango pcre pdf pdfimport perl phonon plasma png policykit postproc ppds pulseaudio qml qt5 quicktime rar raw readline ruby samba scanner sdl sdl2 seccomp semantic-desktop sftp share sound speech spell split-usr ssh ssl startup-notification sudo svg theora tiff truetype twolame udev udisks unicode upower usb utils v4l vcd vdpau video vim-pager vlc vorbis vpx vulkan wavpack webengine webp widgets wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xpm xscreensaver xv xvid zlib zstd" ABI_X86="32 64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="keyboard mouse libinput" KERNEL="linux" L10N="es es-ES ca ca-ES" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_9 python3_10" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="x86_64 i386 aarch64" RUBY_TARGETS="ruby26 ruby27 ruby30 ruby31" SANE_BACKENDS="pixma net" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30954
Location: here

PostPosted: Sun Jul 10, 2022 2:47 pm    Post subject: Reply with quote

Change -mtune=native with -march=native in your CFLAGS.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 159
Location: Spain

PostPosted: Sun Jul 10, 2022 3:12 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Change -mtune=native with -march=native in your CFLAGS.



I compile... I've been using -mtune=znver1 for 6 months and I haven't had any problems.... I used to use march=native so I'll leave it like this.
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum