Code: Select all
oxt@oxt-dev:~/livecode$ make config-linux
travis_fold:start:config
CONFIGURE
./config.sh --platform linux-x86_64
CC=cc
CXX=c++
AR=ar
LINK=c++
OBJCOPY=objcopy
OBJDUMP=objdump
STRIP=strip
LD=c++
gyp --format make-linux --depth . --generator-output build-linux-x86_64/livecode -DOS=linux -Dbuild_edition=community -Duniform_arch=x86_64 -Dtarget_arch=x86_64 -Djavahome=/usr/lib/jvm/java-11-openjdk-amd64/bin/java
fatal: not a git repository (or any of the parent directories): .git
gyp: Call to 'git -C . rev-parse HEAD' returned exit status 128.
make: *** [Makefile:102: config-linux-x86_64] Error 1
Code: Select all
grep -r "git -C"
prebuilt/scripts/lib_versions.bat:FOR /F "tokens=*" %%x IN ('git -C ../thirdparty/ log -n 1 "--format=%%H"') DO SET Thirdparty_VERSION=%%x
config/version.gypi: 'git_revision': '<!(git -C <(DEPTH)/.. rev-parse HEAD)',
config/version.gypi: 'git_revision': '<!(git -C <(DEPTH) rev-parse HEAD)',
Code: Select all
make config-linux
travis_fold:start:config
CONFIGURE
./config.sh --platform linux-x86_64
CC=cc
CXX=c++
AR=ar
LINK=c++
OBJCOPY=objcopy
OBJDUMP=objdump
STRIP=strip
LD=c++
gyp --format make-linux --depth . --generator-output build-linux-x86_64/livecode -DOS=linux -Dbuild_edition=community -Duniform_arch=x86_64 -Dtarget_arch=x86_64 -Djavahome=/usr/lib/jvm/java-11-openjdk-amd64/bin/java
gyp: Undefined variable git_revision in engine/engine-common.gyp
make: *** [Makefile:102: config-linux-x86_64] Error 1
I'm not sure what to do next, and I'm hoping someone could point me in the right direction.

Also, am I doing this the hard way? Or is setting up the build environment still a very difficult task overall?
Again, thank you for any guidance you can offer.
If this helps, here's my install log (a mix of notes and bash commands):
Code: Select all
Installed Ubuntu Desktop 22.04.5 (Minimal Install) onto a new VirtualBox VM.
Updated & Upgraded all installed packages
Restart
Installed VirtualBox Guest Additions
### Installer complaint: unable to compile kernel modules
sudo apt install gcc make perl
Restart
Installed VirtualBox Guest Additions -> Kernel Modules Installed
Shut Down
Enabled Shared Clipboard & Drag'n'Drop for VM
Shared my Downloads folder with VM, copied livecode-git-dump-fixed.zip, LCCE_PrebuiltBinaries-20240127T130653Z-001.zip
Extracted livecode-git-dump-fixed.zip, moved "livecode" folder to Home directory.
Extracted LCCE_PrebuiltBinaries-20240127T130653Z-001.zip to Desktop.
Executed:
sudo apt-get install build-essential automake libtool gawk git curl flex &&
sudo apt-get install bison libx11-dev libxext-dev libxrender-dev libxft-dev &&
sudo apt-get install libxinerama-dev libxv-dev libxcursor-dev libfreetype6-dev &&
sudo apt-get install libpopt-dev libesd0-dev liblcms2-dev pkg-config libgtk2.0-dev zip
E: Unable to locate package libesd0-dev
sudo nano /etc/apt/sources.list
### Added to the end of the list
deb [allow-insecure=yes] http://us.archive.ubuntu.com/ubuntu/ xenial main universe
deb-src [allow-insecure=yes] http://us.archive.ubuntu.com/ubuntu/ xenial main universe
sudo apt update
sudo apt-get install build-essential automake libtool gawk git curl flex &&
sudo apt-get install bison libx11-dev libxext-dev libxrender-dev libxft-dev &&
sudo apt-get install libxinerama-dev libxv-dev libxcursor-dev libfreetype6-dev &&
sudo apt-get install libpopt-dev libesd0-dev liblcms2-dev pkg-config libgtk2.0-dev zip
### Success! Commented out the Xenial repos before continuing
sudo apt update
### https://www.openxtalk.org/forum/viewtopic.php?p=9307&hilit=libesd0+dev#p9307
Installing Python 2.7.18
cd ~/Downloads
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar -xf Python-2.7.18.tgz
cd Python-2.7.18/
sudo apt install build-essential pkg-config \
libbz2-dev libffi-dev libgdbm-dev liblzma-dev \
libncurses5-dev libreadline6-dev libsqlite3-dev \
libssl-dev tk-dev uuid-dev zlib1g-dev
./configure --enable-optimizations \
--enable-shared \
--enable-loadable-sqlite-extensions \
--prefix /usr/local \
LDFLAGS=-Wl,-rpath=/usr/local/lib
make
### Failed due to libftp ssl eerors.
make -i ### Running ignoring tests
### Failed. Same reason.
## Failed to install Python 2.7.18. Trying the install with pyenv (Python Version Management)
curl https://pyenv.run | bash
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
pyenv install 2.7.18
pyenv global 2.7.18
python --version
Python 2.7.18
## Apparently this file has to be marked as executable
chmod +x config.sh
VirtualBox Snapshot Taken
### Python not reporting installed. Followed install instructions from: https://github.com/pyenv/pyenv?tab=readme-ov-file#1-automatic-installer-recommended
curl https://pyenv.run | bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init - bash)"' >> ~/.bashrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init - bash)"' >> ~/.profile
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init - bash)"' >> ~/.bash_profile
exec "$SHELL"
### Java SDK needed now.
sudo apt update
sudo apt install openjdk-11-jdk
export JAVA_SDK=/usr/lib/jvm/java-11-openjdk-amd64
## Manually added to ~/.bashrc (because at this point, my brain hurts.)
Restart
### Posting error on Forums, because I'm out of ideas.