Code Monkey home page Code Monkey logo

zelda's Issues

Cannot compile

I am on Debian 12 on a x64 CPU, I followed the instruction and installed all dependencies, but at the last step make failed.
Maybe I did something wrong... Any help?

Output:

$ make
[ 13%] Built target sfml-system
[ 24%] Built target sfml-audio
[ 29%] Built target SOIL
[ 32%] Built target TMXParser
[ 33%] Linking CXX executable zelda
/usr/bin/ld: CMakeFiles/zelda.dir/src/game.cpp.o: in function `Game::Tick()':
game.cpp:(.text+0x57f): undefined reference to `glutPostRedisplay'
/usr/bin/ld: CMakeFiles/zelda.dir/src/game.cpp.o: in function `Game::Render() const':
game.cpp:(.text+0x695): undefined reference to `glutSwapBuffers'
/usr/bin/ld: CMakeFiles/zelda.dir/src/game.cpp.o: in function `Game::Reshape(int, int)':
game.cpp:(.text+0x6c2): undefined reference to `glutReshapeWindow'
/usr/bin/ld: game.cpp:(.text+0x6df): undefined reference to `glutReshapeWindow'
/usr/bin/ld: CMakeFiles/zelda.dir/src/main.cpp.o: in function `main':
main.cpp:(.text+0x186): undefined reference to `glutInit'
/usr/bin/ld: main.cpp:(.text+0x190): undefined reference to `glutInitDisplayMode'
/usr/bin/ld: main.cpp:(.text+0x19a): undefined reference to `glutGet'
/usr/bin/ld: main.cpp:(.text+0x1a7): undefined reference to `glutGet'
/usr/bin/ld: main.cpp:(.text+0x1c7): undefined reference to `glutInitWindowPosition'
/usr/bin/ld: main.cpp:(.text+0x1dc): undefined reference to `glutInitWindowSize'
/usr/bin/ld: main.cpp:(.text+0x1eb): undefined reference to `glutCreateWindow'
/usr/bin/ld: main.cpp:(.text+0x25d): undefined reference to `glutSetCursor'
/usr/bin/ld: main.cpp:(.text+0x26c): undefined reference to `glutDisplayFunc'
/usr/bin/ld: main.cpp:(.text+0x27b): undefined reference to `glutReshapeFunc'
/usr/bin/ld: main.cpp:(.text+0x28a): undefined reference to `glutKeyboardFunc'
/usr/bin/ld: main.cpp:(.text+0x299): undefined reference to `glutKeyboardUpFunc'
/usr/bin/ld: main.cpp:(.text+0x2a8): undefined reference to `glutSpecialFunc'
/usr/bin/ld: main.cpp:(.text+0x2b7): undefined reference to `glutSpecialUpFunc'
/usr/bin/ld: main.cpp:(.text+0x2c6): undefined reference to `glutMouseFunc'
/usr/bin/ld: main.cpp:(.text+0x2d5): undefined reference to `glutIdleFunc'
/usr/bin/ld: main.cpp:(.text+0x2e9): undefined reference to `glutMainLoop'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/zelda.dir/build.make:1260: zelda] Error 1
make[1]: *** [CMakeFiles/Makefile2:189: CMakeFiles/zelda.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

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.