Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error compiling #294

Open
RahRah80 opened this issue Dec 15, 2022 · 23 comments
Open

error compiling #294

RahRah80 opened this issue Dec 15, 2022 · 23 comments

Comments

@RahRah80
Copy link

cmake -DCMAKE_BUILD_TYPE=Release ..
-- GCC or Clang detected
-- Already downloaded https://github.com/g-truc/glm/archive/refs/tags/0.9.9.8.tar.gz
-- Already extracted glm-0.9.9.8.tar.gz
CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find Boost (missing: Boost_INCLUDE_DIR system log log_setup
locale)
Call Stack (most recent call first):
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.18/Modules/FindBoost.cmake:2177 (find_package_handle_standard_args)
cmake/get_boost.cmake:10 (find_package)
CMakeLists.txt:55 (include)

-- Configuring incomplete, errors occurred!

@stohrendorf
Copy link
Owner

After you said in #293 that everything worked fine, I assumed that you managed to compile it. If you're on a debian-based system install libboost-all-dev libglfw3-dev libpng++-dev libopenal-dev libglvnd-dev libfreetype6-dev cimg-dev ffmpeg libutfcpp-dev gettext libavcodec-dev libavformat-dev libavfilter-dev qtbase5-dev qt5-qmake qtbase5-dev-tools qttools5-dev libarchive-dev libjpeg-dev. If you're on an rpm-based system, you need to figure out the package names yourself, sorry.

@RahRah80
Copy link
Author

RahRah80 commented Dec 15, 2022 via email

@RahRah80
Copy link
Author

RahRah80 commented Dec 15, 2022 via email

@stohrendorf
Copy link
Owner

You don't need to create it yourself, the engine will do that for you when you import the data. Remove your created directories and run again, then import your game data.

@RahRah80
Copy link
Author

RahRah80 commented Dec 16, 2022 via email

@stohrendorf
Copy link
Owner

It supports both.

@RahRah80
Copy link
Author

RahRah80 commented Dec 17, 2022 via email

@stohrendorf
Copy link
Owner

Ignore that, that's got nothing to do with the game.

But I'm a bit confused, it should print out the missing files. Can you take a look at the most recent log file?

@RahRah80
Copy link
Author

RahRah80 commented Dec 17, 2022 via email

@stohrendorf
Copy link
Owner

Did you abort the soundtrack download when using the "import data" button?

@RahRah80
Copy link
Author

RahRah80 commented Dec 17, 2022 via email

@stohrendorf
Copy link
Owner

Just use the "import game data" and select the "game.gog" file.

@RahRah80
Copy link
Author

RahRah80 commented Dec 18, 2022 via email

@stohrendorf
Copy link
Owner

  1. You didn't use the GAME.GOG file as I asked you to do, which makes it hard to understand what's happening. Everything I asked you to do was to have a controlled environment to eliminated as many variables as possible.
  2. Please do a ls -ltR /home/rah-rah/GAMES/Linux/croftengine/data/tr1 and post the output here. Do nothing else, don't touch your game data, just post the output of that command.

@RahRah80
Copy link
Author

RahRah80 commented Dec 18, 2022 via email

@stohrendorf
Copy link
Owner

Did you close the "download" window? That's critical. It needs to download the soundtrack, and that's why it isn't working. It does that right after it says "Game Data has been imported".

@RahRah80
Copy link
Author

RahRah80 commented Dec 19, 2022 via email

@stohrendorf
Copy link
Owner

Okay, please do me a favor to get this pinned down:

In src/launcher/downloadprogress.cpp, replace lines 43-47. This means replacing

  if(m_reply->error() != QNetworkReply::NetworkError::NoError)
  {
    close();
    return;
  }

with

  if(m_reply->error() != QNetworkReply::NetworkError::NoError)
  {
    QMessageBox::critical(
      this, tr("Download Failed"), tr("The download failed with an error: %1").arg(m_reply->errorString()));
    close();
    return;
  }

Save, and then in the build directory, use make again.

Then, start croftengine again as before, click Import Data, wait for the message Game Data has been imported., click OK, and then tell me if you either see a dialog with a progress bar, or an error message. If you see an error message, please tell me what it says.

@RahRah80
Copy link
Author

RahRah80 commented Dec 20, 2022 via email

@stohrendorf
Copy link
Owner

The log is cut off. Also please answer this as I asked before:

Then, start croftengine again as before, click Import Data, wait for the message Game Data has been imported., click OK, and then tell me if you either see a dialog with a progress bar, or an error message. If you see an error message, please tell me what it says.

@RahRah80
Copy link
Author

RahRah80 commented Dec 21, 2022 via email

@stohrendorf
Copy link
Owner

This doesn't make any sense. I have no idea what's going on.

@RahRah80
Copy link
Author

RahRah80 commented Dec 21, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants