Coder Social home page Coder Social logo

Comments (13)

Larpon avatar Larpon commented on August 30, 2024

@MCMic - wow - didn't know it was getting packaged :-o
That's awesome!
In my new game I've made a separate qmake make target - that runs rcc on the command line and build an external assets.rcc that gets detected and loaded at runtime - this is way faster let alone more memory efficient than compiling it all into the binary - will an extra make target (make assets) be a problem you think?

from deadascend.

Larpon avatar Larpon commented on August 30, 2024

Woops. Wrong button

from deadascend.

MCMic avatar MCMic commented on August 30, 2024

No I don’t think an extra make target would be a problem. I can test it if you push it to a branch.
I’m not used to QML…

If there are commands to build and install the game packaging to ArchLinux should be easy ^^
You can look at what I did for FreeSiege for instance: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=freesiege
I expect Dead Ascend to be about the same steps but with qmake instead of cmake.

from deadascend.

Larpon avatar Larpon commented on August 30, 2024

@MCMic you should be able to build it more efficiently now by running something like

qmake DeadAscend.pro
make assets # <- Note this extra step
make

from deadascend.

MCMic avatar MCMic commented on August 30, 2024

I’m failing to use this. It says «make: *** Aucune règle pour fabriquer la cible « assets ». Arrêt.» (it cannot find assets target)

I tried deleting Makefile and running qmake with option «-nocache» without any success. qmake does not give any output so it’s not helpful, not sure what I’m doing wrong.

from deadascend.

akien-mga avatar akien-mga commented on August 30, 2024

The assets target is only defined in App/Makefile, so you need to run make assets -C App.

from deadascend.

MCMic avatar MCMic commented on August 30, 2024

@akien-mga Thanks that works.
But it seems make install does not support the DESTDIR option so it cannot be used for packaging. (+ it tries to install in /opt it seems instead of /usr/share/…)

from deadascend.

akien-mga avatar akien-mga commented on August 30, 2024

See #4 for a clarification on build instructions.

from deadascend.

akien-mga avatar akien-mga commented on August 30, 2024

With QMake-based projects you should use INSTALL_ROOT instead of DESTDIR. But yes, the install instructions are not packaging-friendly yet, it will only install the binary without the assets and into /opt instead of /usr/bin or /usr/games.

from deadascend.

akien-mga avatar akien-mga commented on August 30, 2024

@MCMic See #7 for further discussion of Linux packaging.

from deadascend.

MCMic avatar MCMic commented on August 30, 2024

assets.rcc does not get built.
I think it’s because the target is named assets and there is a folder named assets in App and make thinks it’s the target.
If I rename the target from assets to assets.rcc and run «make assets.rcc» it works.

Also make install should install assets.rcc as well (but see #7 about installation process)

from deadascend.

akien-mga avatar akien-mga commented on August 30, 2024

@MCMic See #5, that's fixed already :)

from deadascend.

MCMic avatar MCMic commented on August 30, 2024

Oh, ok, sorry for the noise

from deadascend.

Related Issues (5)

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.