It also blows under X11, as you have shown with a minimal benchmark some year(s) ago. I wonder if xv/xvidix [the stuff mplayer uses] could be used instead (or "with").randy wrote:No, if by "portable alternatives" you mean SDL. SDL blows chunks under Windows. So to speak.Chilvence wrote:It would be even better to start depreciating the use of DirectX and stuff like that, when there are portable alternatives.
The official "ZDoom on Linux" thread.
Forum rules
Please don't start threads here asking for help. This forum is not for requesting guides, only for posting them. If you need help, the Editing forum is for you.
Please don't start threads here asking for help. This forum is not for requesting guides, only for posting them. If you need help, the Editing forum is for you.
-
Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
-
Siggi
- Posts: 3288
- Joined: Sun Oct 03, 2004 8:57 am
- Preferred Pronouns: They/Them
- Location: South Africa
I tried that back when I was new to Linux, it didn't end well.Necromage wrote:yeah, andnow that you mention it that is probably the problem
I decided to save myself a whole load of trouble and reinstalled, but as 32bit instead.
Apparently, you can compile ZDoom as a 32bit binary and it'll work. I don't know how to do that though.
-
Necromage
- Posts: 484
- Joined: Thu Feb 10, 2005 3:13 pm
- Location: NJ
-
Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
-m32 on x86_64 works for me.
If it can't find a_artifacts.h or any Zdoom-specific .h file, you, your compiler or your source tree is busted.
Code: Select all
make -f Makefile.linux EXT_CFLAGS="-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -m32" EXT_LDFLAGS="-m32"
-
randi
- Site Admin
- Posts: 7749
- Joined: Wed Jul 09, 2003 10:30 pm
The problem isn't SDL; the problem is that OpenGL is apparently the only decent method of getting access to video memory under X. I doubt xv would be of any use, since that apparently is only for typical video color spaces, which are not RGB. So even if it can get the image to the screen quicker, you'd probably still spend the difference converting it into a format it can use (and losing some information in the process).Hirogen2 wrote:It [SDL] also blows under X11, as you have shown with a minimal benchmark some year(s) ago. I wonder if xv/xvidix [the stuff mplayer uses] could be used instead (or "with").
-
koisidis
- Posts: 2
- Joined: Tue Jan 30, 2007 11:44 am
Hello,Hirogen2 wrote:-m32 on x86_64 works for me.If it can't find a_artifacts.h or any Zdoom-specific .h file, you, your compiler or your source tree is busted.Code: Select all
make -f Makefile.linux EXT_CFLAGS="-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -m32" EXT_LDFLAGS="-m32"
on an AMD Turion64 X2 machine with openSuSE 10.1 x64 I get the same error as Necromage:
src/sc_man_scanner.re: In function ‘bool SC_GetString()’:
src/sc_man_scanner.re:144: error: no matching function for call to ‘MIN(long int, int)’
@Hirogen2 Your make options doesn't change anything during compile. Could you share the download source of your zdoom source code with us? I tried version 2.1.7, which can be downloaded from here
http://www.zdoom.org/files/
and from here
http://sourceforge.net/project/showfile ... _id=459769
Each time the same error.
I know, there is an RPM for openSuSE 10.1 but when I install and start zdoom, it corrupts my screen resolution and crashes.
Thank you in advance and forgive me any forum rules' abuse, this is the second post in my life
-
Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
I basically took the .src.rpm, unpacked it, explicitly added the -m32 flags for testing, and recompiled (rpmbuild -bc zdoom.spec). It did not link for me (lacking 32-bit FLAC library and I am too lazy to produce that), but it compiled, which is a great leap.koisidis wrote:on an AMD Turion64 X2 machine with openSuSE 10.1 x64 I get the same error as Necromage:
src/sc_man_scanner.re: In function ‘bool SC_GetString()’:
src/sc_man_scanner.re:144: error: no matching function for call to ‘MIN(long int, int)’
@Hirogen2 Your make options doesn't change anything during compile. Could you share the download source of your zdoom source code with us? I tried version 2.1.7, which can be downloaded from here
-
Siggi
- Posts: 3288
- Joined: Sun Oct 03, 2004 8:57 am
- Preferred Pronouns: They/Them
- Location: South Africa
I recently uploaded a binary of ZDoom r471 compiled on Ubuntu Linux (6.10 with the most recent updates). If anyone is interested you can download it here.
Keep in mind, this is obviously not official.
Keep in mind, this is obviously not official.
-
koisidis
- Posts: 2
- Joined: Tue Jan 30, 2007 11:44 am
Hello again!
(maybe off topic, but funny) After having tried some dirty solutions I managed to delete my /usr/lib64 folder (please don't laugh
) and then had the chance to do semi-new install openSuSE 10.2. Except for the time that went on this, I don't regret it
.
So, since I obviously don't have sufficient experience in programing, could you please tell me more preciesely where to add the -m32 flags for testing? Thank you!
@Psycho Siggi: I guess, I'll try your binary. Thank you
!
@Hirogen2: I tried your suggestion yesterday, I didn't know however what it means to "add the -m32 flags for testing". I just adapted the file in the SPEC folder and my former problem didn't occur, however the linker used 64bit libraries.Hirogen2 wrote: I basically took the .src.rpm, unpacked it, explicitly added the -m32 flags for testing, and recompiled (rpmbuild -bc zdoom.spec). It did not link for me (lacking 32-bit FLAC library and I am too lazy to produce that), but it compiled, which is a great leap.
(maybe off topic, but funny) After having tried some dirty solutions I managed to delete my /usr/lib64 folder (please don't laugh
So, since I obviously don't have sufficient experience in programing, could you please tell me more preciesely where to add the -m32 flags for testing? Thank you!
@Psycho Siggi: I guess, I'll try your binary. Thank you
-
Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
This is part of the spec file, and tells everything you need to know:koisidis wrote:So, since I obviously don't have sufficient experience in programing, could you please tell me more preciesely where to add the -m32 flags for testing? Thank you!
Code: Select all
make -f Makefile.linux EXT_CFLAGS="$RPM_OPT_FLAGS" \
EXT_LDFLAGS="-L. -Wl,-rpath,%_datadir/%name";
Code: Select all
make -f Makefile.linux EXT_CFLAGS="-O2 -g0 -m32" EXT_LDFLAGS="-m32"
-
Mannequin
- Posts: 441
- Joined: Tue Jul 15, 2003 8:21 pm
- Location: On The Lonely Island somewhere.
I'm having a weird problem with compiling 2.1.7 on Ubuntu Edgy (6.10). Well, I tell a lie. Everything compiles fine, but when I run ZDoom, I get maybe a second of sound, then it's silent.
I've used Grubber's way of installing Fmod. Everything else has been installed via 'apt-get'.
Any clues as to how to do things differently on an Ubuntu system, or what may have gone wrong would be appreciated. I know I haven't gone in to a lot of detail here, but this is really all I know. I'm not getting any errors on the command line or anywhere else.
[EDIT] Okay, I've downloaded r479. I _love_ the wad chooser!
Anyway, I now get sound, but it's very choppy... Anyone else have this problem? [/EDIT]
Thanks.
-M.
I've used Grubber's way of installing Fmod. Everything else has been installed via 'apt-get'.
Any clues as to how to do things differently on an Ubuntu system, or what may have gone wrong would be appreciated. I know I haven't gone in to a lot of detail here, but this is really all I know. I'm not getting any errors on the command line or anywhere else.
[EDIT] Okay, I've downloaded r479. I _love_ the wad chooser!
Thanks.
-M.
-
Siggi
- Posts: 3288
- Joined: Sun Oct 03, 2004 8:57 am
- Preferred Pronouns: They/Them
- Location: South Africa
-
Mannequin
- Posts: 441
- Joined: Tue Jul 15, 2003 8:21 pm
- Location: On The Lonely Island somewhere.
Yeah. Although SuperTux's sound slow a bit when it's loading something. 
But this is something altogether different. Even when ZDoom is just sitting there at the menu just after starting it's very choppy. I've played with the sound settings, but it does no good. I haven't had a good sound compile since r1xx, really. I would have reported it sooner, but I thought it was something that I was doing wrong, then I stopped playing DOOM for a while...
I know that ZDoom uses FMOD for sound, but does it use SDL at all for it as well?
-M.
But this is something altogether different. Even when ZDoom is just sitting there at the menu just after starting it's very choppy. I've played with the sound settings, but it does no good. I haven't had a good sound compile since r1xx, really. I would have reported it sooner, but I thought it was something that I was doing wrong, then I stopped playing DOOM for a while...
I know that ZDoom uses FMOD for sound, but does it use SDL at all for it as well?
-M.
-
Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
-
Mannequin
- Posts: 441
- Joined: Tue Jul 15, 2003 8:21 pm
- Location: On The Lonely Island somewhere.