LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-09-2021, 04:59 PM   #1
Roman Dyaba
Member
 
Registered: Sep 2020
Location: Russia, 690016 Vladivostok city, street Osipenko home 66, tel: +79247350007
Distribution: Slackware, UbuntuStudio, FreeBSD
Posts: 96

Rep: Reputation: 11
Question Slackware 15.0 compilation: Games, Applications, and CMAKE: example from WARZONE2100 game.


Code:
bash-5.1$ cmake -S src -B build
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:113 (include):
  include could not find requested file:

    IncludeFindCurl


-- Found SQLite3: /usr/include (found suitable version "3.35.4", minimum required is "3.14") 
CMake Warning at CMakeLists.txt:177 (message):
  Could not determine cURL's SSL/TLS backends; if cURL is built with OpenSSL
  < 1.1.0 or GnuTLS < 2.11.0, this may result in thread-safety issues


CMake Error at CMakeLists.txt:520 (INCLUDE):
  INCLUDE could not find requested file:

    AddTargetLinkFlagsIfSupported


CMake Error at CMakeLists.txt:533 (ADD_TARGET_LINK_FLAGS_IF_SUPPORTED):
  Unknown CMake command "ADD_TARGET_LINK_FLAGS_IF_SUPPORTED".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.20)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/roman/Distribution/warzone2100/build/CMakeFiles/CMakeOutput.log".
https://downloads.sourceforge.net/pr...100_src.tar.xz

IS NOT SLACKWARE ISSUES ?
" -- Found SQLite3: /usr/include (found suitable version "3.35.4", minimum required is "3.14")
CMake Warning at CMakeLists.txt:177 (message):
Could not determine cURL's SSL/TLS backends; if cURL is built with OpenSSL
< 1.1.0 or GnuTLS < 2.11.0, this may result in thread-safety issues "

i think about "build from source error"

Last edited by Roman Dyaba; 04-09-2021 at 06:20 PM. Reason: add direct link, add text
 
Old 04-09-2021, 05:05 PM   #2
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,419

Rep: Reputation: 708Reputation: 708Reputation: 708Reputation: 708Reputation: 708Reputation: 708Reputation: 708
The Steam version is listed as "PLATINUM." https://www.protondb.com/app/1241950

Have you tried the Slackbuild? https://slackbuilds.org/repository/1...search=warzone

Last edited by RadicalDreamer; 04-09-2021 at 05:08 PM.
 
Old 04-09-2021, 06:23 PM   #3
Roman Dyaba
Member
 
Registered: Sep 2020
Location: Russia, 690016 Vladivostok city, street Osipenko home 66, tel: +79247350007
Distribution: Slackware, UbuntuStudio, FreeBSD
Posts: 96

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by RadicalDreamer View Post
The Steam version is listed as "PLATINUM." https://www.protondb.com/app/1241950

Have you tried the Slackbuild? https://slackbuilds.org/repository/1...search=warzone
i think about "build from source error", src is preferred for Slackware.
 
Old 04-09-2021, 09:34 PM   #4
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,105
Blog Entries: 11

Rep: Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539
The Slackbuild on SBo DOES build from source. Also the official warzone 2100 source is here: https://github.com/Warzone2100/warzone2100/releases as are the compile instructions. The official site is: https://wz2100.net/

Add you didn't consult the build docs since you are using the wrong cmake command line.

Last edited by kingbeowulf; 04-09-2021 at 09:39 PM. Reason: more detail
 
1 members found this post helpful.
Old 04-10-2021, 05:37 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,122

Rep: Reputation: 5651Reputation: 5651Reputation: 5651Reputation: 5651Reputation: 5651Reputation: 5651Reputation: 5651Reputation: 5651Reputation: 5651Reputation: 5651Reputation: 5651
Based on the build instructions, you should do something like the following once in the source code directory:

Code:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:PATH=~/wz/install -GNinja ../warzone2100
cmake --build . --target install
Or you could just follow what's in the SlackBuild:

Code:
mkdir -p build
cd build
  cmake \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_MANDIR=/usr/man \
    -DCMAKE_INSTALL_BINDIR=games \
    ..
  DESTDIR=$PKG cmake --build . --target install
cd ..
Try running the SlackBuild (ponce doesn't have any modifications for it in his repo) and see if you get any errors there.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] problem with newer cmake options run on slackware cmake 3.5.2 timsoft Slackware 6 05-31-2020 07:51 AM
Slackware-current: /usr/share/cmake and /usr/share/cmake-3.3 directories igor29768 Slackware 1 11-07-2015 12:37 AM
CMake Strange "Install" behaviour with home-grown software [Linux x86_64, CMake 2.8] ajschaeffer Programming 0 10-24-2011 03:21 AM
cmake: Using find_package(Boost) when FindBoost.cmake is not in the default location damien_d Programming 3 10-27-2010 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration