Giter Site home page Giter Site logo

how do we compile it from linux? about vkquake HOT 22 CLOSED

novum avatar novum commented on August 19, 2024
how do we compile it from linux?

from vkquake.

Comments (22)

birdie-github avatar birdie-github commented on August 19, 2024 9

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

from vkquake.

fabry92 avatar fabry92 commented on August 19, 2024

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?

from vkquake.

BielBdeLuna avatar BielBdeLuna commented on August 19, 2024

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

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

@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

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

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

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

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/

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

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.

from vkquake.

Novum avatar Novum commented on August 19, 2024

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.

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

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.

from vkquake.

strycore avatar strycore commented on August 19, 2024

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

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

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.

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

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.

from vkquake.

jite avatar jite commented on August 19, 2024

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.

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

@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

from vkquake.

jite avatar jite commented on August 19, 2024

@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. :)

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

@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.

from vkquake.

bviktor avatar bviktor commented on August 19, 2024

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

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

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

from vkquake.

bviktor avatar bviktor commented on August 19, 2024

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

from vkquake.

Novum avatar Novum commented on August 19, 2024

Closing because of build instructions in readme.md

from vkquake.

bviktor avatar bviktor commented on August 19, 2024

@ProfessorKaos64 now I see mkpak.sh. But the file it generates is already in the repo, i.e. Quake\quakespasm.pak, so what about it?

from vkquake.

mdeguzis avatar mdeguzis commented on August 19, 2024

I guess it can be ignored then. This was just anecdotal thoughts from the quakespasm Debian package.

from vkquake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.