When I trigger script (using $HOME instead of my username):
tedades@pyra:~$ ./openmoh.sh
./openmoh.sh: 2: cd: can't cd to /home/$HOME/Medal of Honor - Allied Assault War Chest
rm: cannot remove 'openmohaa': Is a directory
rm: cannot remove '*.so': No such file or directory
Cloning into 'openmohaa'...
remote: Enumerating objects: 22199, done.
remote: Counting objects: 100% (6258/6258), done.
remote: Compressing objects: 100% (1261/1261), done.
remote: Total 22199 (delta 5136), reused 5513 (delta 4997), pack-reused 15941
Receiving objects: 100% (22199/22199), 85.89 MiB | 5.17 MiB/s, done.
Resolving deltas: 100% (15958/15958), done.
Checking out files: 100% (2571/2571), done.
./openmoh.sh: 8: ./openmoh.sh: cmake: not found
make: *** No targets specified and no makefile found. Stop.
cp: cannot stat 'o*': No such file or directory
./openmoh.sh: 11: cd: can't cd to code/client/cgame
cp: cannot stat 'cgamex86_64-dbg.so': No such file or directory
./openmoh.sh: 14: cd: can't cd to code/server/fgame
cp: cannot stat 'gamex86_64-dbg.so': No such file or directory
Probably a good idea to check if the folder exist before running the rest of commands:
cd '/home/users/Medal of Honor - Allied Assault War Chest'
rm o* *.so
cd
rm -Rf openmohaa
From a 'fresh' Pyra you need to install (sudo apt-get install, after a sudo apt-get update):
git
cmake
When I manually run cmake:
tedades@pyra:~/openmohaa/build$ cmake .. -DCMAKE_BUILD_TYPE=Debug -DDEBUG_DROP_ASSERT=1 -DDEBUG_MEMORY=1
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Architecture detected: arm, suffix set to arm.
-- Using Unix naming convention
VERBOSEGit was successfully detected in the source directory. Relevant Git information will be included in the game version.
error: unknown option `show-current'
usage: git branch [<options>] [-r | -a] [--merged | --no-merged]
or: git branch [<options>] [-l] [-f] <branch-name> [<start-point>]
or: git branch [<options>] [-r] (-d | -D) <branch-name>...
or: git branch [<options>] (-m | -M) [<old-branch>] <new-branch>
or: git branch [<options>] (-c | -C) [<old-branch>] <new-branch>
or: git branch [<options>] [-r | -a] [--points-at]
or: git branch [<options>] [-r | -a] [--format]
Generic options
-v, --verbose show hash and subject, give twice for upstream branch
-q, --quiet suppress informational messages
-t, --track set up tracking mode (see git-pull(1))
-u, --set-upstream-to <upstream>
change the upstream info
--unset-upstream Unset the upstream info
--color[=<when>] use colored output
-r, --remotes act on remote-tracking branches
--contains <commit> print only branches that contain the commit
--no-contains <commit>
print only branches that don't contain the commit
--abbrev[=<n>] use <n> digits to display SHA-1s
Specific git-branch actions:
-a, --all list both remote-tracking and local branches
-d, --delete delete fully merged branch
-D delete branch (even if not merged)
-m, --move move/rename a branch and its reflog
-M move/rename a branch, even if target exists
-c, --copy copy a branch and its reflog
-C copy a branch, even if target exists
-l, --list list branch names
--create-reflog create the branch's reflog
--edit-description edit the description for the branch
-f, --force force creation, move/rename, deletion
--merged <commit> print only branches that are merged
--no-merged <commit> print only branches that are not merged
--column[=<style>] list branches in columns
--sort <key> field name to sort on
--points-at <object> print only branches of the object
-i, --ignore-case sorting and filtering are case insensitive
--format <format> format to use for the output
VERBOSEGit branch:
VERBOSEGit revision hash: 85c8769512aff9290a9c2ca7cff6b8d8ea0409d9
VERBOSEGit revision date: May 22 2024 UTC
VERBOSEGit revision build: 0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find BISON (missing: BISON_EXECUTABLE)
-- Could NOT find FLEX (missing: FLEX_EXECUTABLE)
CMake Error at code/sdl/CMakeLists.txt:55 (find_package):
By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "SDL2", but
CMake did not find one.
Could not find a package configuration file provided by "SDL2" with any of
the following names:
SDL2Config.cmake
sdl2-config.cmake
Add the installation prefix of "SDL2" to CMAKE_PREFIX_PATH or set
"SDL2_DIR" to a directory containing one of the above files. If "SDL2"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/home/tedades/openmohaa/build/CMakeFiles/CMakeOutput.log".
See also "/home/tedades/openmohaa/build/CMakeFiles/CMakeError.log".