Coder Social home page Coder Social logo

Compilation fails about sdl-jstest HOT 2 CLOSED

Chais avatar Chais commented on July 17, 2024
Compilation fails

from sdl-jstest.

Comments (2)

Grumbel avatar Grumbel commented on July 17, 2024

Something wrong with ncurses/tinfo. stdscr is provided by libtinfo, so it's probably missing a -ltinfo, cmake should however check for that. You could try:

Make sure that tinfo is installed.

In CMakeLists.txt add the line:

set(CURSES_NEED_NCURSES TRUE)

before:

find_package(Curses REQUIRED)

compile with:

make VERBOSE=1

Start compilation from a clean checkout if you haven't. ncurses6 is relatively new, no there might be issues when it was previously compiled with ncurses5.

from sdl-jstest.

Chais avatar Chais commented on July 17, 2024

It compiles fine with the the variable set, thanks.

$ make VERBOSE=1                                                                                                                                                  15:24 
/usr/bin/cmake -H/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest -B/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
make -f CMakeFiles/sdl2-jstest.dir/build.make CMakeFiles/sdl2-jstest.dir/depend
make[2]: Entering directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
cd /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/sdl2-jstest.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
make -f CMakeFiles/sdl2-jstest.dir/build.make CMakeFiles/sdl2-jstest.dir/build
make[2]: Entering directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
[ 25%] Linking C executable sdl2-jstest
/usr/bin/cmake -E cmake_link_script CMakeFiles/sdl2-jstest.dir/link.txt --verbose=1
/usr/bin/cc  -std=c99  -rdynamic CMakeFiles/sdl2-jstest.dir/sdl2-jstest.c.o  -o sdl2-jstest -lSDL2 -lncurses -ltinfo -lform 
make[2]: Leaving directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
[ 50%] Built target sdl2-jstest
make -f CMakeFiles/doc.dir/build.make CMakeFiles/doc.dir/depend
make[2]: Entering directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
cd /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/doc.dir/DependInfo.cmake --color=
Dependee "/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/doc.dir/DependInfo.cmake" is newer than depender "/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/doc.dir/depend.internal".
Dependee "/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/doc.dir/depend.internal".
Scanning dependencies of target doc
make[2]: Leaving directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
make -f CMakeFiles/doc.dir/build.make CMakeFiles/doc.dir/build
make[2]: Entering directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
make[2]: Nothing to be done for 'CMakeFiles/doc.dir/build'.
make[2]: Leaving directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
[ 50%] Built target doc
make -f CMakeFiles/sdl-jstest.dir/build.make CMakeFiles/sdl-jstest.dir/depend
make[2]: Entering directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
cd /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/sdl-jstest.dir/DependInfo.cmake --color=
Dependee "/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/sdl-jstest.dir/DependInfo.cmake" is newer than depender "/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/sdl-jstest.dir/depend.internal".
Dependee "/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles/sdl-jstest.dir/depend.internal".
Scanning dependencies of target sdl-jstest
make[2]: Leaving directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
make -f CMakeFiles/sdl-jstest.dir/build.make CMakeFiles/sdl-jstest.dir/build
make[2]: Entering directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
[ 75%] Building C object CMakeFiles/sdl-jstest.dir/sdl-jstest.c.o
/usr/bin/cc  -I/usr/include/SDL  -std=c99   -o CMakeFiles/sdl-jstest.dir/sdl-jstest.c.o   -c /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/sdl-jstest.c
[100%] Linking C executable sdl-jstest
/usr/bin/cmake -E cmake_link_script CMakeFiles/sdl-jstest.dir/link.txt --verbose=1
/usr/bin/cc  -std=c99  -rdynamic CMakeFiles/sdl-jstest.dir/sdl-jstest.c.o  -o sdl-jstest -Wl,-Bstatic -lSDLmain -Wl,-Bdynamic -lSDL -lpthread -lncurses -ltinfo -lform 
make[2]: Leaving directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
[100%] Built target sdl-jstest
make[1]: Leaving directory '/home/chais/AUR/sdl2-jstest-git/src/sdl-jstest'
/usr/bin/cmake -E cmake_progress_start /home/chais/AUR/sdl2-jstest-git/src/sdl-jstest/CMakeFiles 0

I can see no other issues in the verbose output.

from sdl-jstest.

Related Issues (12)

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.