juanmanzanero/fastest-lap

Problem Compilation Project

Xperience94 opened this issue · 29 comments

Hello,

I am using a Kali-linux VM.
I am currently trying to compile the project and follow the different steps of the README.md. On the Linux part

sudo sh ./src/scripts/linux/docker_compile.sh

I'm having this following error, what am I doing wrong ?

[100%] Linking CXX shared library libcppad_lib.so
CMake Error: failed to create symbolic link 'libcppad_lib.so': operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
make[8]: *** [cppad_lib/CMakeFiles/cppad_lib.dir/build.make:146: cppad_lib/libcppad_lib.so.1227] Error 1
make[8]: *** Deleting file 'cppad_lib/libcppad_lib.so.1227'
make[8]: Leaving directory '/src/build/lion/build/cppad/build'
make[7]: Leaving directory '/src/build/lion/build/cppad/build'
make[7]: *** [CMakeFiles/Makefile2:953: cppad_lib/CMakeFiles/cppad_lib.dir/all] Error 2
make[6]: Leaving directory '/src/build/lion/build/cppad/build'
make[6]: *** [Makefile:130: all] Error 2
make[5]: *** [CMakeFiles/cppad.dir/build.make:112: /src/build/lion/build/cppad/src/cppad-stamp/cppad-build] Error 2
make[5]: Leaving directory '/src/build/lion/build/thirdparty'
make[4]: *** [CMakeFiles/Makefile2:80: CMakeFiles/cppad.dir/all] Error 2
make[4]: Leaving directory '/src/build/lion/build/thirdparty'
make[3]: Leaving directory '/src/build/lion/build/thirdparty'
make[3]: *** [Makefile:84: all] Error 2
-- Configuration of fastest-lap

CMake Error at CMakeLists.txt:90 (install):
  install TARGETS given target "tinyxml2" which does not exist.


-- Configuring incomplete, errors occurred!
See also "/src/build/lion/build/CMakeFiles/CMakeOutput.log".
See also "/src/build/lion/build/CMakeFiles/CMakeError.log".
make[2]: *** [CMakeFiles/lion.dir/build.make:107: /src/build/lion/src/lion-stamp/lion-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/lion.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
-- Configuration of fastest-lap

CMake Error at cmake/get-third-party.cmake:35 (find_package):
  Could not find a package configuration file provided by "GTest" with any of
  the following names:

    GTestConfig.cmake
    gtest-config.cmake

  Add the installation prefix of "GTest" to CMAKE_PREFIX_PATH or set
  "GTest_DIR" to a directory containing one of the above files.  If "GTest"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:18 (include)


-- Configuring incomplete, errors occurred!
See also "/src/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.

Thanks for you time

Hello!

i am not sure. The docker file was provided by another contributor ( @kktse ). I have no clue of what it does, if I am honest.

Can you try the cmake steps instead? Thanks

thank you for your fast answer !

I'm trying the cmake steps and have this following error :

──(kali㉿kali)-[/media/sf_fastest-lap_1/fastest-lap/src/build]
└─$ cmake .. -DCODE_COVERAGE=Yes              
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must                                                                                                      
  contain a literal, direct call to the project() command.  Add a line of                                                                                                       
  code such as                                                                                                                                                                  
                                                                                                                                                                                
    project(ProjectName)                                                                                                                                                        
                                                                                                                                                                                
  near the top of the file, but after cmake_minimum_required().                                                                                                                 
                                                                                                                                                                                
  CMake is pretending there is a "project(Project)" command on the first                                                                                                        
  line.                                                                                                                                                                         
This warning is for project developers.  Use -Wno-dev to suppress it.                                                                                                           
                                                                                                                                                                                
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as                                                                                                         
                                                                                                                                                                                
    cmake_minimum_required(VERSION 3.22)                                                                                                                                        
                                                                                                                                                                                
  should be added at the top of the file.  The version specified may be lower                                                                                                   
  if you wish to support older CMake versions for this project.  For more                                                                                                       
  information run "cmake --help-policy CMP0000".                                                                                                                                
This warning is for project developers.  Use -Wno-dev to suppress it.                                                                                                           
                                                                                                                                                                                
-- Configuring done
CMake Warning (dev) at main/c/CMakeLists.txt:1 (add_library):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or                                                                                                         
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.                                                                                                       
  Use the cmake_policy command to set the policy and suppress this warning.                                                                                                     
                                                                                                                                                                                
  Target "fastestlapc" links to target "lion::lion" but the target was not                                                                                                      
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or                                                                                                   
  an ALIAS target is missing?                                                                                                                                                   
This warning is for project developers.  Use -Wno-dev to suppress it.                                                                                                           
                                                                                                                                                                                
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:                                                                                                                    
                                                                                                                                                                                
    CODE_COVERAGE                                                                                                                                                               
                                                                                                                                                                                
                                                                                                                                                                                
-- Build files have been written to: /media/sf_fastest-lap_1/fastest-lap/src/build
                                                                                                                                                                                
┌──(kali㉿kali)-[/media/sf_fastest-lap_1/fastest-lap/src/build]
└─$ make  
make: Warning: File 'Makefile' has modification time 818 s in the future
make[1]: Warning: File 'CMakeFiles/Makefile2' has modification time 818 s in the future
make[2]: Warning: File 'main/c/CMakeFiles/fastestlapc.dir/progress.make' has modification time 818 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'main/c/CMakeFiles/fastestlapc.dir/progress.make' has modification time 818 s in the future
[ 50%] Building CXX object main/c/CMakeFiles/fastestlapc.dir/fastestlapc.o
/media/sf_fastest-lap_1/fastest-lap/src/main/c/fastestlapc.cpp:6:10: fatal error: src/core/vehicles/lot2016kart.h: No such file or directory
    6 | #include "src/core/vehicles/lot2016kart.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [main/c/CMakeFiles/fastestlapc.dir/build.make:76: main/c/CMakeFiles/fastestlapc.dir/fastestlapc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: main/c/CMakeFiles/fastestlapc.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Did I miss something in the compilation ?

Looks incorrect. Can you kill the build folder and start over again, without the code coverage flag?

I kill the build folder and start over again

the result seem the same :

┌──(kali㉿kali)-[/media/sf_fastest-lap_1/fastest-lap/src]
└─$ rm -r build            
                                                                                                                                                                                
┌──(kali㉿kali)-[/media/sf_fastest-lap_1/fastest-lap/src]
└─$ ls
CMakeLists.txt  core  main  scripts  test
                                                                                                                                                                                
┌──(kali㉿kali)-[/media/sf_fastest-lap_1/fastest-lap/src]
└─$ mkdir build  
                                                                                                                                                                                
┌──(kali㉿kali)-[/media/sf_fastest-lap_1/fastest-lap/src]
└─$ cd build 
                                                                                                                                                                                
┌──(kali㉿kali)-[/media/sf_fastest-lap_1/fastest-lap/src/build]
└─$ cmake ..                     
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must                                                                                                      
  contain a literal, direct call to the project() command.  Add a line of                                                                                                       
  code such as                                                                                                                                                                  
                                                                                                                                                                                
    project(ProjectName)                                                                                                                                                        
                                                                                                                                                                                
  near the top of the file, but after cmake_minimum_required().                                                                                                                 
                                                                                                                                                                                
  CMake is pretending there is a "project(Project)" command on the first                                                                                                        
  line.                                                                                                                                                                         
This warning is for project developers.  Use -Wno-dev to suppress it.                                                                                                           
                                                                                                                                                                                
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as                                                                                                         
                                                                                                                                                                                
    cmake_minimum_required(VERSION 3.22)                                                                                                                                        
                                                                                                                                                                                
  should be added at the top of the file.  The version specified may be lower                                                                                                   
  if you wish to support older CMake versions for this project.  For more                                                                                                       
  information run "cmake --help-policy CMP0000".                                                                                                                                
This warning is for project developers.  Use -Wno-dev to suppress it.                                                                                                           
                                                                                                                                                                                
-- Configuring done
CMake Warning (dev) at main/c/CMakeLists.txt:1 (add_library):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or                                                                                                         
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.                                                                                                       
  Use the cmake_policy command to set the policy and suppress this warning.                                                                                                     
                                                                                                                                                                                
  Target "fastestlapc" links to target "lion::lion" but the target was not                                                                                                      
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or                                                                                                   
  an ALIAS target is missing?                                                                                                                                                   
This warning is for project developers.  Use -Wno-dev to suppress it.                                                                                                           
                                                                                                                                                                                
-- Generating done
-- Build files have been written to: /media/sf_fastest-lap_1/fastest-lap/src/build
                                                                                                                                                                                
┌──(kali㉿kali)-[/media/sf_fastest-lap_1/fastest-lap/src/build]
└─$ make       
make: Warning: File 'Makefile' has modification time 15 s in the future
make[1]: Warning: File 'CMakeFiles/Makefile2' has modification time 15 s in the future
make[2]: Warning: File 'main/c/CMakeFiles/fastestlapc.dir/flags.make' has modification time 15 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'main/c/CMakeFiles/fastestlapc.dir/flags.make' has modification time 15 s in the future
[ 50%] Building CXX object main/c/CMakeFiles/fastestlapc.dir/fastestlapc.o
/media/sf_fastest-lap_1/fastest-lap/src/main/c/fastestlapc.cpp:6:10: fatal error: src/core/vehicles/lot2016kart.h: No such file or directory
    6 | #include "src/core/vehicles/lot2016kart.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [main/c/CMakeFiles/fastestlapc.dir/build.make:76: main/c/CMakeFiles/fastestlapc.dir/fastestlapc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: main/c/CMakeFiles/fastestlapc.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I think you must create the build dir under ./fastest-lap instead of ./fastest-lap/src

Thank you ,

it seems, I'm going further, so thanks a lot.
In the comprehension with cmake I'm totally new.

below the new error during the cmake steps :

                                                                                                                                                                                
┌──(kali㉿kali)-[/media/sf_fastest-lap_1/fastest-lap/build]
└─$ cmake ..                               

        Configure third party libraries 
        =============================== 

-- Found Python3: /usr/bin/python3.9 (found version "3.9.10") found components: Interpreter Development Development.Module Development.Embed 
-- Found Python3: /usr/include/python3.9 (found version "3.9.10") found components: NumPy Interpreter Development.Module 
-- Numpy found
-- Matplotlib found. Plotting tools will be available
-- Compilation of the required third party libraries
-- Configuring done
-- Generating done
-- Build files have been written to: /media/sf_fastest-lap_1/fastest-lap/build/thirdparty
gmake: Warning: File 'Makefile' has modification time 62 s in the future
gmake[1]: Warning: File 'CMakeFiles/Makefile2' has modification time 62 s in the future
gmake[2]: Warning: File 'CMakeFiles/lion.dir/progress.make' has modification time 62 s in the future
gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
gmake[2]: Warning: File 'CMakeFiles/lion.dir/progress.make' has modification time 62 s in the future
[ 12%] Performing update step for 'lion'
HEAD is now at d17a9c0 [JMT] Added options for crank nicolson
[ 25%] No patch step for 'lion'
[ 37%] Performing configure step for 'lion'
-- The Fortran compiler identification is GNU 11.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
-- Found Python3: /usr/bin/python3.9 (found version "3.9.10") found components: Interpreter Development Development.Module Development.Embed 
-- Found Python3: /usr/include/python3.9 (found version "3.9.10") found components: NumPy Interpreter Development.Module 
-- Numpy found
-- Matplotlib found. Plotting tools will be available
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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 BLAS (missing: BLAS_LIBRARIES) 
-- Could NOT find LAPACK (missing: LAPACK_LIBRARIES) 
    Reason given by package: LAPACK could not be found because dependency BLAS could not be found.

-- Compilation of the required third party libraries
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /media/sf_fastest-lap_1/fastest-lap/build/lion/build/thirdparty
gmake[3]: Entering directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/thirdparty'
gmake[3]: Warning: File 'Makefile' has modification time 62 s in the future
gmake[4]: Entering directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/thirdparty'
gmake[4]: Warning: File 'CMakeFiles/Makefile2' has modification time 62 s in the future
gmake[5]: Entering directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/thirdparty'
gmake[5]: Warning: File 'CMakeFiles/lapack.dir/progress.make' has modification time 62 s in the future
gmake[5]: Leaving directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/thirdparty'
gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
gmake[5]: Entering directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/thirdparty'
gmake[5]: Warning: File 'CMakeFiles/lapack.dir/progress.make' has modification time 62 s in the future
[  1%] Creating directories for 'lapack'
[  3%] Performing download step (git clone) for 'lapack'
Cloning into 'source'...

Already on 'master'
Your branch is up to date with 'origin/master'.
[  5%] Performing update step for 'lapack'
HEAD is now at 25274dfeb Merge pull request #622 from matcross/master
[  7%] No patch step for 'lapack'
[  8%] Performing configure step for 'lapack'
-- The Fortran compiler identification is GNU 11.2.0
-- The C compiler identification is GNU 11.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Setting build type to 'Release' as none was specified.
-- Checking if build type is 'Coverage'
-- Checking if build type is 'Coverage': 0
-- Performing Test _frecursiveFlag
-- Performing Test _frecursiveFlag - Success
-- Build tests: OFF
-- Reducing RELEASE optimization level to O2
-- Looking for Fortran NONE - found
-- Looking for Fortran INT_CPU_TIME - found
-- Looking for Fortran EXT_ETIME - not found
-- Looking for Fortran EXT_ETIME_ - not found
-- Looking for Fortran INT_ETIME - found
-- --> Will use second_INT_ETIME.f and dsecnd_INT_ETIME.f as timing function.
-- Build deprecated routines: OFF
-- Build single precision real: ON
-- Build double precision real: ON
-- Build single precision complex: ON
-- Build double precision complex: ON
-- Using supplied NETLIB BLAS implementation
-- Using supplied NETLIB LAPACK implementation
-- Detecting Fortran/C Interface
-- Detecting Fortran/C Interface - Found GLOBAL and MODULE mangling
-- Verifying Fortran/C Compiler Compatibility
-- Verifying Fortran/C Compiler Compatibility - Success
-- Build html documentation: OFF
-- Build man documentation: OFF
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_COMPILER


-- Build files have been written to: /media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/build
[ 10%] Performing build step for 'lapack'
gmake[6]: Entering directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/build'
gmake[6]: Warning: File 'Makefile' has modification time 58 s in the future
gmake[7]: Entering directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/build'
gmake[7]: Warning: File 'CMakeFiles/Makefile2' has modification time 62 s in the future
gmake[8]: Entering directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/build'
gmake[8]: Warning: File 'BLAS/SRC/CMakeFiles/blas.dir/flags.make' has modification time 59 s in the future
Scanning dependencies of target blas
gmake[8]: Leaving directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/build'
gmake[8]: warning:  Clock skew detected.  Your build may be incomplete.
gmake[8]: Entering directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/build'
gmake[8]: Warning: File 'BLAS/SRC/CMakeFiles/blas.dir/flags.make' has modification time 59 s in the future
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/isamax.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sasum.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/saxpy.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/scopy.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sdot.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/snrm2.f90.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/srot.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/srotg.f90.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sscal.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sswap.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sdsdot.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/srotmg.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/srotm.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/lsame.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/xerbla.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/xerbla_array.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sgemv.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sgbmv.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ssymv.f.o
[  0%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ssbmv.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sspmv.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/strmv.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/stbmv.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/stpmv.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/strsv.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/stbsv.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/stpsv.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sger.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ssyr.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sspr.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ssyr2.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sspr2.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/sgemm.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ssymm.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ssyrk.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ssyr2k.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/strmm.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/strsm.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/idamax.f.o
[  1%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dasum.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/daxpy.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dcopy.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ddot.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dnrm2.f90.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/drot.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/drotg.f90.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dscal.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dsdot.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dswap.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/drotmg.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/drotm.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dgemv.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dgbmv.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dsymv.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dsbmv.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dspmv.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dtrmv.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dtbmv.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dtpmv.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dtrsv.f.o
[  2%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dtbsv.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dtpsv.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dger.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dsyr.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dspr.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dsyr2.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dspr2.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dgemm.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dsymm.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dsyrk.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dsyr2k.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dtrmm.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dtrsm.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/scabs1.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/scasum.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/scnrm2.f90.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/icamax.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/caxpy.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ccopy.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cdotc.f.o
[  3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cdotu.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/csscal.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/crotg.f90.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cscal.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cswap.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/csrot.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cgemv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cgbmv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/chemv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/chbmv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/chpmv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ctrmv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ctbmv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ctpmv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ctrsv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ctbsv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ctpsv.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cgerc.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cgeru.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cher.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/chpr.f.o
[  4%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cher2.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/chpr2.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cgemm.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/csymm.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/csyrk.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/csyr2k.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ctrmm.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ctrsm.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/chemm.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cherk.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/cher2k.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dcabs1.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dzasum.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dznrm2.f90.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/izamax.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zaxpy.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zcopy.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zdotc.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zdotu.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zdscal.f.o
[  5%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zrotg.f90.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zscal.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zswap.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zdrot.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zgemv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zgbmv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zhemv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zhbmv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zhpmv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ztrmv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ztbmv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ztpmv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ztrsv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ztbsv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ztpsv.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zgerc.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zgeru.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zher.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zhpr.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zher2.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zhpr2.f.o
[  6%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zgemm.f.o
[  7%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zsymm.f.o
[  7%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zsyrk.f.o
[  7%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zsyr2k.f.o
[  7%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ztrmm.f.o
[  7%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/ztrsm.f.o
[  7%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zhemm.f.o
[  7%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zherk.f.o
[  7%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/zher2k.f.o
[  7%] Linking Fortran shared library ../../lib/libblas.so
CMake Error: failed to create symbolic link '../../lib/libblas.so.3': Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
CMake Error: failed to create symbolic link '../../lib/libblas.so': Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
gmake[8]: *** [BLAS/SRC/CMakeFiles/blas.dir/build.make:2347: lib/libblas.so.3.10.1] Error 1
gmake[8]: *** Deleting file 'lib/libblas.so.3.10.1'
gmake[8]: Leaving directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/build'
gmake[7]: Leaving directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/build'
gmake[7]: *** [CMakeFiles/Makefile2:164: BLAS/SRC/CMakeFiles/blas.dir/all] Error 2
gmake[6]: Leaving directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/build'
gmake[6]: *** [Makefile:156: all] Error 2
gmake[5]: *** [CMakeFiles/lapack.dir/build.make:86: /media/sf_fastest-lap_1/fastest-lap/build/lion/build/lapack/src/lapack-stamp/lapack-build] Error 2
gmake[5]: Leaving directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/thirdparty'
gmake[4]: Leaving directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/thirdparty'
gmake[4]: *** [CMakeFiles/Makefile2:95: CMakeFiles/lapack.dir/all] Error 2
gmake[3]: Leaving directory '/media/sf_fastest-lap_1/fastest-lap/build/lion/build/thirdparty'
gmake[3]: *** [Makefile:91: all] Error 2
-- Configuration of fastest-lap

CMake Error at CMakeLists.txt:90 (install):
  install TARGETS given target "ipopt" which does not exist.


-- Configuring incomplete, errors occurred!
See also "/media/sf_fastest-lap_1/fastest-lap/build/lion/build/CMakeFiles/CMakeOutput.log".
See also "/media/sf_fastest-lap_1/fastest-lap/build/lion/build/CMakeFiles/CMakeError.log".
gmake[2]: *** [CMakeFiles/lion.dir/build.make:92: /media/sf_fastest-lap_1/fastest-lap/build/lion/src/lion-stamp/lion-configure] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/lion.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

-- Configuration of fastest-lap
CMake Error at cmake/get-third-party.cmake:36 (find_package):
  Could not find a package configuration file provided by "lion" with any of                                                                                                    
  the following names:                                                                                                                                                          
                                                                                                                                                                                
    lionConfig.cmake                                                                                                                                                            
    lion-config.cmake                                                                                                                                                           
                                                                                                                                                                                
  Add the installation prefix of "lion" to CMAKE_PREFIX_PATH or set                                                                                                             
  "lion_DIR" to a directory containing one of the above files.  If "lion"                                                                                                       
  provides a separate development package or SDK, be sure it has been                                                                                                           
  installed.                                                                                                                                                                    
Call Stack (most recent call first):                                                                                                                                            
  CMakeLists.txt:18 (include)                                                                                                                                                   
                                                                                                                                                                                
                                                                                                                                                                                
-- Configuring incomplete, errors occurred!
See also "/media/sf_fastest-lap_1/fastest-lap/build/CMakeFiles/CMakeOutput.log".
See also "/media/sf_fastest-lap_1/fastest-lap/build/CMakeFiles/CMakeError.log".

and thanks again for you time !

I think you have a problem with your VM. It does not allow you to create symbolic links for some reason.. you might want to investigate on that. You have the same problem with the docker file above

Hi,
I started again on a macOS and it seems that I go further, but I have a new problem :

[  7%] No install step for 'mumps'
[ 10%] Completed 'mumps'
[ 20%] Built target mumps
[ 22%] Creating directories for 'ipopt'
[ 25%] Performing download step (git clone) for 'ipopt'
Cloning into 'source'...
HEAD is now at 29717273 set release date
[ 27%] Performing update step for 'ipopt'
[ 30%] Performing patch step for 'ipopt'
Checking patch src/Algorithm/IpIpoptAlg.cpp...
Applied patch src/Algorithm/IpIpoptAlg.cpp cleanly.
[ 32%] Performing configure step for 'ipopt'
checking build system type... x86_64-apple-darwin21.3.0
checking host system type... x86_64-apple-darwin21.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ../source/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking whether the C compiler works... no
configure: error: in `/Users/hugolopes/fastest_lap/fastest-lap/build/lion/build/ipopt/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[5]: *** [/Users/hugolopes/fastest_lap/fastest-lap/build/lion/build/ipopt/src/ipopt-stamp/ipopt-configure] Error 77
make[4]: *** [CMakeFiles/ipopt.dir/all] Error 2
make[3]: *** [all] Error 2
-- Configuration of fastest-lap

CMake Error at CMakeLists.txt:90 (install):
  install TARGETS given target "ipopt" which does not exist.


-- Configuring incomplete, errors occurred!
See also "/Users/hugolopes/fastest_lap/fastest-lap/build/lion/build/CMakeFiles/CMakeOutput.log".
See also "/Users/hugolopes/fastest_lap/fastest-lap/build/lion/build/CMakeFiles/CMakeError.log".
make[2]: *** [/Users/hugolopes/fastest_lap/fastest-lap/build/lion/src/lion-stamp/lion-configure] Error 1
make[1]: *** [CMakeFiles/lion.dir/all] Error 2
make: *** [all] Error 2

-- Configuration of fastest-lap
CMake Error at cmake/get-third-party.cmake:36 (find_package):
  Could not find a package configuration file provided by "lion" with any of
  the following names:

    lionConfig.cmake
    lion-config.cmake

  Add the installation prefix of "lion" to CMAKE_PREFIX_PATH or set
  "lion_DIR" to a directory containing one of the above files.  If "lion"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:18 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/hugolopes/fastest_lap/fastest-lap/build/CMakeFiles/CMakeOutput.log".
See also "/Users/hugolopes/fastest_lap/fastest-lap/build/CMakeFiles/CMakeError.log".


It seems I have a problem on my C compiler.
"re: error: C compiler cannot create executables"

do you have any idea ?

and thanks again !

Hi! Can you try clang by setting:

cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..

(I use a 2013 MacBook pro with clang and the gfortran installed through homebrew)

since you have successfully installed mumps, you are good on the fortran side

thanks a lot all the cmake and make went well, now i'm doing the steps 4 "ctest --verbose"

now i just have one more question maybe it's stupid but now i can run the fastest_lap.py in the "exemple/python" folder ?
otherwise, is there an example i can run?

You can try running the jupyter notebooks in the examples folder 😌 since the problem is resolved, I will close this thread! Cheers

I'm sorry but I don't have jupyter notebooks in the exemple folder

hugolopes@MacBook-Pro-de-Hugo f1 % cd ..
hugolopes@MacBook-Pro-de-Hugo python % ls
f1		fastest_lap.py	kart
hugolopes@MacBook-Pro-de-Hugo python % 

Look for them in the subfolders, for example: examples/python/f1/optimal_laptime

Oh sorry I just realized it's a tool I'm downloading it
and thank you again

Hi again ,
I'm really new to all of this !
and sorry to bother you with my problems !

# Put parent folder in the pythonpath
import sys,os,inspect

import matplotlib.pyplot as plt
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))))
import ../../fastest_lap
from fastest_lap import KMH

i'm getting this error :

Input In [3]
    import ../../fastest_lap
           ^
SyntaxError: invalid syntax

So I decided to put this at the begining

sys.path.insert(0, '../../')

but I have another error.
So I think I'm doing something wrong do you have any idea ?

I think you should leave that as it was before, without ../../ in the import fastest-lap

Hi ,
when I leave that as it was before, I'm getting this error :
Capture d’écran 2022-04-22 à 17 32 56

What I'm doing wrong ?

I think the problem is that you should start the python kernel on the same folder where the notebook is.

Try:

cd examples/python/f1/optimal-laptime
jupyter notebook Optimal_laptime.ipynb

Hi,
I tried multiple times, but I'm always getting the same error.

What these lines do is to find fastest_lap.py. Do you have ./examples/python/fastest_lap.py ?

This line appends ./examples/python to the python path:
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))))

This line includes fastest_lap.py

import fastest_lap

There's no much else to be said about this if I am honest, this is a python issue

Hello, can I close this issue, then?

Hello,

I did a "find -name fastest_lap.py".
you can see below, it's in the correct directory.

 cd fastest-lap 
hugolopes@MacBook-Pro-de-Hugo fastest-lap % ls
CMakeLists.txt	README.md	cmake		docs		projects
LICENSE		build		database	examples	src
hugolopes@MacBook-Pro-de-Hugo fastest-lap % find . -name fastest_lap.py 
./examples/python/fastest_lap.py
./src/main/python/fastest_lap.py

So I tried to see what is written in "sys.path.append()" as you can see below, the path is really strange.

what do you think ?

Capture d’écran 2022-04-26 à 18 51 42

Yes, the path should be '/full/path/to/fastest-lap/examples/python'. Maybe just do

sys.path.append('/full/path/to/fastest-lap/examples/python')

I put the full path to "fastest-lap" but I'm getting this error :

Capture d’écran 2022-04-27 à 20 28 58

I decide to copy into /usr/local/lib/libfastestlapc.dylib and I have no error in all the rest of the projects but I have nothing at launch.

What do you think ?

I think libname must be just

libname="/Users/hugolopes/fastest_lap/fastest-lap/build/lib/libfastestlap.dylib"

copying dylib files manually from place to place is never a good idea, as you can break dependencies on the way

Ok I put this
libname="/Users/hugolopes/fastest_lap/fastest-lap/build/lib/libfastestlap.dylib"

and I'm going further but I'm still getting an error as you can see below :

Capture d’écran 2022-04-27 à 21 44 23

and thanks for your time

Fastf1 is an app that downloads real F1 telemetry. You can just download it in your computer by doing

pip install fastf1

If you find any other errors related to FastF1 please head here: https://pypi.org/project/fastf1/

Tell me if everything works. Thank you!

Thanks, I feel stupid for not seeing this.

Ok, I think everything works, I get the whole diagram in it,
some warnings but nothing alarming.

and my last question if i want to have a video like you did in the presentation what should i do?

It is not easy. These videos are not quite ready for production. But I have used the MATLAB scripts in the ./projects folder