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

Installation issue #5

Open
SebastiaanRobbrecht opened this issue Jan 31, 2023 · 20 comments
Open

Installation issue #5

SebastiaanRobbrecht opened this issue Jan 31, 2023 · 20 comments

Comments

@SebastiaanRobbrecht
Copy link

Hi,
when installing Ui on my raspberry Pi 3B, I went through the following steps

  1. full "hardware" setup. This went smoothly
  2. GTK-Ui: at the Building process, I got an error message and installation was stopped. The build folder could not be found. Is this a known problem? Is there a solution?

Kind regards,
Sebastiaan

@COM8
Copy link
Member

COM8 commented Jan 31, 2023

Could you please provide the exact command that failed, as well as the logs for it?

@SebastiaanRobbrecht
Copy link
Author

SebastiaanRobbrecht commented Jan 31, 2023 via email

@SebastiaanRobbrecht
Copy link
Author

SebastiaanRobbrecht commented Feb 1, 2023

Here is the error:

akerslab@raspberrypi:~ $ # Clone the repository:
git clone https://github.com/Jutta-Proto/gtk-ui.git

Switch into the newly cloned repository:

cd gtk-ui

Check out the correct branch:

git checkout bt

Build the project:

mkdir build
cd build
cmake ..
cmake --build .
fatal: destination path 'gtk-ui' already exists and is not an empty directory.
Already on 'bt'
Your branch is up to date with 'origin/bt'.
mkdir: kan map ‘build’ niet aanmaken: Bestand bestaat al
-- C++ Jutta UI Options
-- =======================================================
-- JUTTA_UI_BUILD_TESTS: ON
-- JUTTA_UI_STATIC_ANALYZE: OFF
-- JUTTA_UI_ENABLE_LINTING: OFF
-- =======================================================
-- Linting is disabled
-- Conan: checking conan executable
-- Conan: Found program /home/makerslab/.local/bin/conan
-- Conan: Version found Conan version 1.57.0
-- Conan executing: /home/makerslab/.local/bin/conan install . --remote conancenter --build missing --settings build_type=Release --settings compiler=clang --settings compiler.version=12 --settings compiler.libcxx=libstdc++11 --settings compiler.cppstd=20
Configuration:
[settings]
arch=armv7
arch_build=armv7
build_type=Release
compiler=clang
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

openssl/1.1.1s: WARN: Package binary is corrupted, removing: b151e1733276fe181b280bdd3bde39f5f17f93d3
conanfile.txt: Installing package
Requirements
catch2/2.13.8 from 'conancenter' - Cache
cryptopp/8.7.0 from 'conancenter' - Cache
fmt/8.1.1 from 'conancenter' - Cache
nlohmann_json/3.10.5 from 'conancenter' - Cache
spdlog/1.10.0 from 'conancenter' - Cache
Packages
catch2/2.13.8:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
cryptopp/8.7.0:0e600af702fd6bd923be36cfc3be560aa8258a89 - Build
fmt/8.1.1:f77c3fe37d16d37d7fc810194caa465441ae1bbe - Cache
nlohmann_json/3.10.5:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
spdlog/1.10.0:1e60e7c83c6c270f989a99c66f1a95b43e0685c1 - Build
Build requirements
cmake/3.20.6 from 'conancenter' - Cache
openssl/1.1.1s from 'conancenter' - Cache
Build requirements packages
cmake/3.20.6:df3070f2eab8556b318b95ef61db52ea89c7530f - Build
openssl/1.1.1s:b151e1733276fe181b280bdd3bde39f5f17f93d3 - Build

Installing (downloading, building) binaries...
catch2/2.13.8: Already installed!
fmt/8.1.1: Already installed!
nlohmann_json/3.10.5: Already installed!
openssl/1.1.1s: WARN: Build folder is dirty, removing it: /home/makerslab/.conan/data/openssl/1.1.1s///build/b151e1733276fe181b280bdd3bde39f5f17f93d3
openssl/1.1.1s: Copying sources to build folder
openssl/1.1.1s: Building your package in /home/makerslab/.conan/data/openssl/1.1.1s///build/b151e1733276fe181b280bdd3bde39f5f17f93d3
openssl/1.1.1s: Generator txt created conanbuildinfo.txt
openssl/1.1.1s: Calling generate()
openssl/1.1.1s: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
openssl/1.1.1s: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
openssl/1.1.1s: Aggregating env generators
openssl/1.1.1s: Calling build()
openssl/1.1.1s: Apply patch (portability): TVOS and WatchOS don't like fork()
openssl/1.1.1s: gen_info = {'CFLAGS': ['-fPIC', '-O3'], 'CXXFLAGS': ['-fPIC', '-O3'], 'DEFINES': ['NDEBUG'], 'LDFLAGS': []}
openssl/1.1.1s: using target: conan-Release-Linux-armv7-clang-12 -> linux-armv4
openssl/1.1.1s: my %targets = (
"conan-Release-Linux-armv7-clang-12" => {
inherit_from => [ "linux-armv4" ],
cflags => add("-fPIC -O3"),
cxxflags => add("-fPIC -O3"),
defines => add(["NDEBUG"]),
includes => add(),
lflags => add(""),

},

);

openssl/1.1.1s: ['"conan-Release-Linux-armv7-clang-12"', 'no-shared', '--prefix=/', '--openssldir="/etc/ssl"', 'no-unit-test', 'threads', 'PERL=perl', 'no-tests', '--release', '-fPIC', 'no-md2']
Configuring OpenSSL version 1.1.1s (0x1010113fL) for conan-Release-Linux-armv7-clang-12
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile



*** OpenSSL has been successfully configured ***


*** If you encounter a problem while building, please open an ***
*** issue on GitHub https://github.com/openssl/openssl/issues ***
*** and include the output from the following command: ***


*** perl configdata.pm --dump ***


*** (If you are new to OpenSSL, you might want to consult the ***
*** 'Troubleshooting' section in the INSTALL file first) ***



perl "-I." -Mconfigdata "util/dofile.pl"
"-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
perl "-I." -Mconfigdata "util/dofile.pl"
"-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
perl "-I." -Mconfigdata "util/dofile.pl"
"-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make all
make[1]: Entering directory '/home/makerslab/.conan/data/openssl/1.1.1s/
//build/b151e1733276fe181b280bdd3bde39f5f17f93d3/src'
make[1]: Leaving directory '/home/makerslab/.conan/data/openssl/1.1.1s/
//build/b151e1733276fe181b280bdd3bde39f5f17f93d3/src'
make[1]: Entering directory '/home/makerslab/.conan/data/openssl/1.1.1s/
//build/b151e1733276fe181b280bdd3bde39f5f17f93d3/src'
gcc -I. -Iinclude -fPIC -pthread -fPIC -O3 -fPIC -O3 -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR=""/etc/ssl"" -DENGINESDIR=""//lib/engines-1.1"" -DNDEBUG -DNDEBUG -DNDEBUG -c -o apps/app_rand.o apps/app_rand.c
gcc -I. -Iinclude -fPIC -pthread -fPIC -O3 -fPIC -O3 -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR=""/etc/ssl"" -DENGINESDIR=""//lib/engines-1.1"" -DNDEBUG -DNDEBUG -DNDEBUG -c -o apps/apps.o apps/apps.c
/bin/sh: 1: gcc: not found
gcc -I. -Iinclude -fPIC -pthread -fPIC -O3 -fPIC -O3 -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR=""/etc/ssl"" -DENGINESDIR=""//lib/engines-1.1"" -DNDEBUG -DNDEBUG -DNDEBUG -c -o apps/bf_prefix.o apps/bf_prefix.c
/bin/sh: 1: make[1]: *** [Makefile:661: apps/app_rand.o] Error 127
make[1]: *** Waiting for unfinished jobs....
gcc: not found
make[1]: *** [Makefile:663: apps/apps.o] Error 127
/bin/sh: 1: gcc: not found
make[1]: *** [Makefile:665: apps/bf_prefix.o] Error 127
make[1]: Leaving directory '/home/makerslab/.conan/data/openssl/1.1.1s/
//build/b151e1733276fe181b280bdd3bde39f5f17f93d3/src'
make: *** [Makefile:172: all] Fout 2
openssl/1.1.1s:
openssl/1.1.1s: ERROR: Package 'b151e1733276fe181b280bdd3bde39f5f17f93d3' build failed
openssl/1.1.1s: WARN: Build folder /home/makerslab/.conan/data/openssl/1.1.1s/
/_/build/b151e1733276fe181b280bdd3bde39f5f17f93d3/build-release
ERROR: openssl/1.1.1s: Error in build() method, line 738
autotools.make()
ConanException: Error 2 while executing make -j4
CMake Error at build/conan.cmake:651 (message):
Conan install failed='1'
Call Stack (most recent call first):
CMakeLists.txt:86 (conan_cmake_install)

-- Configuring incomplete, errors occurred!
See also "/home/makerslab/gtk-ui/build/CMakeFiles/CMakeOutput.log".
See also "/home/makerslab/gtk-ui/build/CMakeFiles/CMakeError.log".
gmake: *** Geen doelen opgegeven en geen Makefile gevonden. Gestopt.

@COM8
Copy link
Member

COM8 commented Mar 4, 2023

It states: gcc: not found. Did you install a C++ compiler for your system?
If no, you can use for example gcc or clang.

@SebastiaanRobbrecht
Copy link
Author

I installed clang following the hardware configuration of Jutta. So, in my opinion, it is OK.

@COM8
Copy link
Member

COM8 commented Mar 6, 2023

But CMake has an other opinion about it 😜.

Try installing gcc.

@SebastiaanRobbrecht
Copy link
Author

Can't solve the issues... is it possible to share an complete img. file I'm teacher and try to help my students out with there coffee corner project. I'm not the best programmer...

@COM8
Copy link
Member

COM8 commented Mar 17, 2023

Sure! I can send you a complete RPi image. Just let me know, how large your SD-Card is, so you don't have to shrink it :D

@SebastiaanRobbrecht
Copy link
Author

I have a 16GB micro sd card for a raspberry pi 3B+. I would be so grateful.

@SebastiaanRobbrecht
Copy link
Author

When would you be able to make the RPi image?

@SebastiaanRobbrecht
Copy link
Author

Hi Fabian, Where you able to make an RPi image? My pupils would be so gratefull.

@COM8
Copy link
Member

COM8 commented Apr 21, 2023

Oh, I totally forgot about this! Sorry. Will do it tomorrow!

@COM8
Copy link
Member

COM8 commented Apr 22, 2023

OK, here we go! The following image contains a compiled version of the serial, as well as the Bluetooth (bt) UI.
The user credentials are: pi with raspberry as password. SSH is enabled.
To start the UI:

  1. Install the image on a SD-Card. It is intended for SD-Cards with a size of 32GB, but I scaled the image down to about 6GB, so it should be usable on smaller sizes as well.
  2. Boot the Raspberry PI 3, or 4. Only runs on those since it requires the 64-bit OS.
  3. Use the terminal to navigate to either ~/gtk-ui-bt/build for the Bluetooth version, or ~/gtk-ui-serial/build/src for the serial (UART) version.
  4. A) For connecting via serial (UART) follow these instructions: https://github.com/Jutta-Proto/hardware-pi
  5. B) Bluteeoth should be enabled and ready to go.
  6. Start the UI from the terminal via ./Jutta-UI.
  7. Enjoy 🥳

Image download link: rpi.coffee_maker_bt_serial.zip

@SebastiaanRobbrecht
Copy link
Author

Super! I'll try it tomorrow! thanx!!!!

@SebastiaanRobbrecht
Copy link
Author

pi@raspberrypi-coffee:~ $ /gtk-ui-bt/build
bash: /home/pi/gtk-ui-bt/build: Is a directory
pi@raspberrypi-coffee:
$ ./Jutta-UI
bash: ./Jutta-UI: No such file or directory
pi@raspberrypi-coffee:~ $

@COM8
Copy link
Member

COM8 commented May 2, 2023

Try cd ~/gtk-ui-bt/build or cd ~/gtk-ui-serial/build/src

@SebastiaanRobbrecht
Copy link
Author

We are getting there...

pi@raspberrypi-coffee:~ $ cd /gtk-ui-bt/build
pi@raspberrypi-coffee:
/gtk-ui-bt/build $ ./Jutta-UI
bash: ./Jutta-UI: No such file or directory

@COM8
Copy link
Member

COM8 commented May 5, 2023

If you want, we can schedule a meeting, so I can help you starting everything.
My time zone is CET/CETS

@SebastiaanRobbrecht
Copy link
Author

That would be super! When would you be available? I'm available today.

@COM8
Copy link
Member

COM8 commented May 5, 2023

I'm available for the next hour or so and then tomorrow between 08:00 am and 11:00 am Berlin time.

We can use the following room then:
https://bbb.rbg.tum.de/fab-u9q-dh4

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