Coder Social home page Coder Social logo

Comments (13)

 avatar commented on April 28, 2024

Did you install all the libs in the install instructions?

from devilutionx.

slriverin avatar slriverin commented on April 28, 2024

Yes and I edited sdl2-config.cmake according to instructions.

from devilutionx.

 avatar commented on April 28, 2024

You shouldnt need to edit that.

What did you edit exactly?

from devilutionx.

slriverin avatar slriverin commented on April 28, 2024

I changed the last line of /usr/lib/i386-linux-gnu/cmake/SDL2/sdl2-config.cmake for :

set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf ")

This was in the instructions under 'Building XDiablo (For Linux)'

from devilutionx.

 avatar commented on April 28, 2024

@slriverin
I changed the requirements for the game over time. I forgot to pull certian parts out. It should no longer be needed SDL_image and SDL_ttf . I will pull out the font right now.

from devilutionx.

 avatar commented on April 28, 2024

ok @slriverin try now.

I have changed
set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf ")

to

set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} -lSDL2 -lSDL2_mixer ")

Not to mention , I have removed the font.cpp junk.

from devilutionx.

slriverin avatar slriverin commented on April 28, 2024

@ApertureSecurity thanks it removed the error.

However a new one pops up :

[ 50%] Linking CXX executable devilution
/usr/bin/ld: CMakeFiles/devilution.dir/Stub/sdlrender.cpp.o: undefined reference to symbol 'SDL_FreeSurface'

from devilutionx.

 avatar commented on April 28, 2024

Somwthing is missing. Are these 32 bit libs ? Are you mixing 64 bit libs or something ?

from devilutionx.

slriverin avatar slriverin commented on April 28, 2024

See full error message below :

From my understanding it is a 32 bit library : i386-linux-gnu/libSDL2-2.0.so.0

I imported the libraries with the :i386 suffix in apt.

Are there any other libs beside those mentioned in the readme file that should be installed in 32 bits?

[  2%] Linking CXX executable devilution
/usr/bin/ld: CMakeFiles/devilution.dir/Stub/sdlrender.cpp.o: undefined reference to symbol 'SDL_FreeSurface'
/usr/bin/ld: //usr/lib/i386-linux-gnu/libSDL2-2.0.so.0: error adding symbols: DSO manquant dans la ligne de commande
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/devilution.dir/build.make:1419: devilution] Error 1
make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/devilution.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

from devilutionx.

 avatar commented on April 28, 2024

I am not sure what the problem is. I wonder if you're using an old version of debian or something.

If you don't want to compile anymore and just play there is this

https://github.com/diasurgical/devilutionX/blob/master/build/devilution

from devilutionx.

 avatar commented on April 28, 2024

Hey Do you have the normal SDL libs installed? I think they came with my system but you can try

apt-get install libsdl2-2.0-0

from devilutionx.

slriverin avatar slriverin commented on April 28, 2024

@ApertureSecurity my normal SDL libs were installed.

The game works with the already compiled bin file. Awesome work! Cheers!

from devilutionx.

 avatar commented on April 28, 2024

I updated the installation instructions.

from devilutionx.

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.