elizagamedev / mkxp-oneshot

mkxp, forked for OneShot
GNU General Public License v2.0
82 stars 31 forks source link

Linux Mint 19.3 #27

Open wolfpackmars2 opened 4 years ago

wolfpackmars2 commented 4 years ago

In addition to following the steps in the readme for building on Linux, I had to install the following packages:

sudo apt install build-essential g++

pip install cmake

prior to running "conan install .. --build=missing"

I additionally ran "sudo apt install libxcb-xinerama0" but it was already installed on my system. I don't recall what lead me to attempt this to resolve the issue... This didn't fix anything, but just mentioning it just in case.

I also created a python virtualenv with "python3 -m venv oneshot" and then ". oneshot/bin/activate" prior to running any pip commands, but that's just a personal preference.

I'm still working through getting oneshot installed - I'll update this report as I progress...

". oneshot/bin/activate" == "source oneshot/bin/activate"

These are the errors I received while running conan install:

First:

notice: Loading user-config configuration file 'user-config.jam' from '/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build'.
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
warning: toolset gcc initialization: can not find tool g++
warning: initialized from /home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/user-config.jam:5
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/src/tools/gcc.jam:226: in gcc.init from module gcc
error: toolset gcc initialization:
error: no command provided, default command 'g++' not found
error: initialized from /home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/user-config.jam:5
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/src/build/toolset.jam:44: in toolset.using from module toolset
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/src/build/project.jam:1104: in using from module project-rules
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/user-config.jam:5: in modules.load from module user-config
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/src/build-system.jam:255: in load-config from module build-system
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/src/build-system.jam:449: in load-configuration-files from module build-system
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/src/build-system.jam:607: in load from module build-system
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/src/kernel/modules.jam:295: in import from module modules
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module
/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/boost-build.jam:17: in module scope from module

boost/1.73.0: 
boost/1.73.0: ERROR: Package '8428c850cc3f0c89045385ef84aab895eaca6ab6' build failed
boost/1.73.0: WARN: Build folder /home/wolfpack/.conan/data/boost/1.73.0/_/_/build/8428c850cc3f0c89045385ef84aab895eaca6ab6
ERROR: boost/1.73.0: Error in build() method, line 442
    self.run(full_command, run_environment=True)
    ConanException: Error 1 while executing b2 target-os=linux architecture=x86 address-model=64 binary-format=elf abi=sysv --layout=system --user-config=/home/wolfpack/.conan/data/boost/1.73.0/_/_/source/source_subfolder/tools/build/user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.iconv=on boost.locale.icu=off threading=multi link=static variant=release --without-python --without-test toolset=gcc define=_GLIBCXX_USE_CXX11_ABI=0 pch=on cxxflags="-fPIC" install --prefix=/home/wolfpack/.conan/data/boost/1.73.0/_/_/package/8428c850cc3f0c89045385ef84aab895eaca6ab6 -j12 --abbreviate-paths --debug-configuration --build-dir="/home/wolfpack/.conan/data/boost/1.73.0/_/_/build/8428c850cc3f0c89045385ef84aab895eaca6ab6"
`
This was at the top of the conan install response:
`Auto detecting your dev setup to initialize the default profile (/home/wolfpack/.conan/profiles/default)
Found gcc 7
gcc>=5, using the major as version

************************* WARNING: GCC OLD ABI COMPATIBILITY ***********************

Conan detected a GCC version > 5 but has adjusted the 'compiler.libcxx' setting to
'libstdc++' for backwards compatibility.
Your compiler is likely using the new CXX11 ABI by default (libstdc++11).

If you want Conan to use the new ABI for the default profile, run:

    $ conan profile update settings.compiler.libcxx=libstdc++11 default

Or edit '/home/wolfpack/.conan/profiles/default' and set compiler.libcxx=libstdc++11

************************************************************************************

Default settings
    os=Linux
    os_build=Linux
    arch=x86_64
    arch_build=x86_64
    compiler=gcc
    compiler.version=7
    compiler.libcxx=libstdc++
    build_type=Release

First tried conan profile update as recommended, but that didn't solve the conan error. This was the result after updating the conan profile:

checking whether make supports GNU make features... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/home/wolfpack/.conan/data/sigc++/2.10.0/bincrafters/stable/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/libsigc++-2.10.0':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
sigc++/2.10.0@bincrafters/stable: 
sigc++/2.10.0@bincrafters/stable: ERROR: Package '9bfdcfa2bb925892ecf42e2a018a3f3529826676' build failed

Then noticed that g++ was missing after reviewing the log further back. Ran "sudo apt install g++ build-essential". the next error I received was:

libtiff/4.0.9: Calling build()
/bin/sh: 1: cmake: not found
libtiff/4.0.9: 
libtiff/4.0.9: ERROR: Package 'b10cbdbe253d999a1c6290f446b39b5a6558863d' build failed
libtiff/4.0.9: WARN: Build folder /home/wolfpack/.conan/data/libtiff/4.0.9/_/_/build/b10cbdbe253d999a1c6290f446b39b5a6558863d
ERROR: libtiff/4.0.9: Error in build() method, line 107
    cmake = self._configure_cmake()
while calling '_configure_cmake', line 102
    self._cmake.configure(build_folder=self._build_subfolder)
    ConanException: Error 127 while executing cd '/home/wolfpack/.conan/data/libtiff/4.0.9/_/_/build/b10cbdbe253d999a1c6290f446b39b5a6558863d/build_subfolder' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="7" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/home/wolfpack/.conan/data/libtiff/4.0.9/_/_/package/b10cbdbe253d999a1c6290f446b39b5a6558863d" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_MODULE_PATH="/home/wolfpack/.conan/data/libtiff/4.0.9/_/_/build/b10cbdbe253d999a1c6290f446b39b5a6558863d" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Dlzma="True" -Djpeg="True" -Djbig="True" -Dzlib="True" -Dzstd="False" -Dwebp="False" -Dcxx="True" -Wno-dev '/home/wolfpack/.conan/data/libtiff/4.0.9/_/_/build/b10cbdbe253d999a1c6290f446b39b5a6558863d'

After installing cmake with pip, conan install completed without errors.