vkQuake icon indicating copy to clipboard operation
vkQuake copied to clipboard

how do we compile it from linux?

Open BielBdeLuna opened this issue 10 years ago • 22 comments

what are it's dependencies?

BielBdeLuna avatar Jul 25 '16 17:07 BielBdeLuna

First of all it's "its" dependencies.

So, it's = it is. its = belonging to it.

Second of all - have you even tried downloading it?

From Makefile:

### Vulkan SDK directory
VULKAN_INCLUDE_DIR=$(VULKAN_SDK)/include

### Enable/Disable SDL2
USE_SDL2=1

### Enable/Disable codecs for streaming music support
USE_CODEC_WAVE=1
USE_CODEC_FLAC=0
USE_CODEC_MP3=1
USE_CODEC_VORBIS=1
USE_CODEC_OPUS=0
# either mikmod (preferred) or modplug, not both
USE_CODEC_MIKMOD=0
USE_CODEC_MODPLUG=0
USE_CODEC_UMX=0

birdie-github avatar Jul 25 '16 18:07 birdie-github

i got this error: quakedef.h:231:27: fatal error: vulkan/vulkan.h: File o directory non esistente compilation terminated. Makefile:200: set di istruzioni per l'obiettivo "gl_refrag.o" non riuscito make: *** [gl_refrag.o] Errore 1

i need to download vulkan sdk?

fabry92 avatar Jul 25 '16 18:07 fabry92

ok, now I see there is a makefile in the quake folder.

BielBdeLuna avatar Jul 25 '16 18:07 BielBdeLuna

@fabry92 You need a GPU with Vulkan support/drivers. beyond that, try here (If using a Debian distro):
https://packages.debian.org/search?keywords=vulkan

Most of those pacakges are in libvulkan-dev:
https://packages.debian.org/search?suite=stretch&arch=any&mode=exactfilename&searchon=contents&keywords=vulkan.h

mdeguzis avatar Jul 25 '16 23:07 mdeguzis

I am working on Debian packaging tonight. Have some errands to do, but started that here:

So far, I get errors.
Log: http://slexy.org/view/s21Ih6pgvN

It relates to use of int in a for loop: "use option -std=c99 or -std=gnu99 to compile your code."

I tried adding this to Quake/Makefile (snippet includes previous 2 lines for reference):

DFLAGS += -DNDEBUG
CFLAGS += -O2
CFLAGS += -std=gnu99

Build completes. Need to do more testing, but fixes build with PR #6

mdeguzis avatar Jul 25 '16 23:07 mdeguzis

I have an initial test Debian package at the below link. I haven't tested it (late here, time to settle down for the night). I'll likely have time to give it a test tomorrow. I merged in debian packaging from quakespasm. Probably adjustments to be made yet as well. I link quakspasm to 'vkquake' so you can use that, aside from the desktop file.

http://packages.libregeek.org/steamos-tools/pool/games/v/vkquake/

mdeguzis avatar Jul 26 '16 03:07 mdeguzis

I had @strycore from Lutris test this out for me as well. If you get the gfx.wad error, be sure to make sure the pk3/wads/id folder are in lowercase. See:

https://steamcommunity.com/linkfilter/?url=http://www.tldp.org/HOWTO/Quake-HOWTO-8.html

I might do an AUR arch linux package after some time.

mdeguzis avatar Jul 26 '16 03:07 mdeguzis

Please mind that there are still bugs in the code, I'm not sure if this should be a package already. Will be fixed in time (after Siggraph). But thank you.

Novum avatar Jul 26 '16 04:07 Novum

Point taken. This shall remain in a testing repository of my own for quite a while regardless. I will try to remind anyone that tries it of this state Thank you.

mdeguzis avatar Jul 26 '16 06:07 mdeguzis

I guess I should also put a warning about this on the Lutris installer I made ;)

strycore avatar Jul 26 '16 06:07 strycore

Well, I would say hold off using it in anything, based on Axel's comment. Up to you. If you want, you could just keep it in your master tree with a warning about it being unfinished.

mdeguzis avatar Jul 26 '16 11:07 mdeguzis

There is also the barrier to entry. Your GPU and GPU driver must support Vulkan. Not everyone falls into this category. As always alternative, you could offer Debian's quakespasm, which is vkquake, sans Vulkan support.

mdeguzis avatar Jul 26 '16 11:07 mdeguzis

A bit off topic but just wanted to mention that there's another quake engine out there called FTE (by Spike) that also has a Vulkan backend (and OGL/DX9/DX11). @Novum If you haven't seen it, you should really take a look. Again, sorry for off topic.

jite avatar Jul 26 '16 20:07 jite

@jite , Quakespasm is the most faithful to the original as far as I kno. There are lists all over the Internet but this is one of the good ones I have bookmarked:

https://steamcommunity.com/sharedfiles/filedetails/?id=118401000

mdeguzis avatar Jul 26 '16 23:07 mdeguzis

@ProfessorKaos64 FTE is a modern high tech engine (and server), and Spike (the guy behind it) is keen on keeping things faithful as far as possible when it comes to Quake. Though FTE can run many different games (Quake single player, Quakeworld, NetQuake, Quake 2, Quake 3, Hexen, etc etc.)

Though my comment about it was meant more like from a developer perspective. :)

jite avatar Jul 27 '16 05:07 jite

@jite, well for fun I am going to make a package out of that today :) If you would like to continue the discussion, I have an issues post here, as to not clutter up more of this thread. I am working through a build, but I only see gl targets.

mdeguzis avatar Jul 27 '16 11:07 mdeguzis

I believe 49ffd7d05edd25ccedfb127e0c1c676a58d297ed solves this issue unless you want to track the packaging tasks here as well.

bviktor avatar Jul 28 '16 08:07 bviktor

@bviktor Does that assume/include SDL2 and mkpak? Here is what I have that mostly carried over form quakespasm (the core code here).

mdeguzis avatar Jul 28 '16 11:07 mdeguzis

I'm not quite sure what mkpak is, couldn't find it anywhere. I tested it on a new, default install of Ubuntu 16.04.1 and yes, SDL2 is there:

apt install git make gcc libsdl2-dev libvulkan-dev libvorbis-dev libmad0-dev

bviktor avatar Jul 28 '16 12:07 bviktor

Closing because of build instructions in readme.md

Novum avatar Jul 30 '16 00:07 Novum