You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add LetMeCreate package in Buildroot. While testing it in static only environment, build fails with following errors.
rahul@rahul-Aspire-4736Z:~/upstream/LetMeCreate/build$ cmake .. -DBUILD_SHARED=OFF
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rahul/upstream/LetMeCreate/build
rahul@rahul-Aspire-4736Z:~/upstream/LetMeCreate/build$ make
Scanning dependencies of target letmecreate_core_s
[ 1%] Building C object CMakeFiles/letmecreate_core_s.dir/src/core/uart.c.o
In file included from /home/rahul/upstream/LetMeCreate/src/core/uart.c:9:0:
/home/rahul/upstream/LetMeCreate/include/letmecreate/core/common.h:17:37: fatal error: letmecreate/core/export.h: No such file or directory
compilation terminated.
CMakeFiles/letmecreate_core_s.dir/build.make:62: recipe for target 'CMakeFiles/letmecreate_core_s.dir/src/core/uart.c.o' failed
make[2]: *** [CMakeFiles/letmecreate_core_s.dir/src/core/uart.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/letmecreate_core_s.dir/all' failed
make[1]: *** [CMakeFiles/letmecreate_core_s.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Thanks,
Rahul
The text was updated successfully, but these errors were encountered:
Running cmake in source directory didn't help, it is failing with same error. Probably you have CMake generated files present from previous configuration.
generate_export_header() is only called if BUILD_SHARED is set. So CMake won't be generating export headers in case of static only builds.
I think export headers are only meant to be used in shared library cases as static libraries are just archive of object files where there is no visibility.
Hello,
I'm trying to add LetMeCreate package in Buildroot. While testing it in static only environment, build fails with following errors.
rahul@rahul-Aspire-4736Z:~/upstream/LetMeCreate/build$ cmake .. -DBUILD_SHARED=OFF
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rahul/upstream/LetMeCreate/build
rahul@rahul-Aspire-4736Z:~/upstream/LetMeCreate/build$ make
Scanning dependencies of target letmecreate_core_s
[ 1%] Building C object CMakeFiles/letmecreate_core_s.dir/src/core/uart.c.o
In file included from /home/rahul/upstream/LetMeCreate/src/core/uart.c:9:0:
/home/rahul/upstream/LetMeCreate/include/letmecreate/core/common.h:17:37: fatal error: letmecreate/core/export.h: No such file or directory
compilation terminated.
CMakeFiles/letmecreate_core_s.dir/build.make:62: recipe for target 'CMakeFiles/letmecreate_core_s.dir/src/core/uart.c.o' failed
make[2]: *** [CMakeFiles/letmecreate_core_s.dir/src/core/uart.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/letmecreate_core_s.dir/all' failed
make[1]: *** [CMakeFiles/letmecreate_core_s.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Thanks,
Rahul
The text was updated successfully, but these errors were encountered: