Comments (5)
Did it work for you when you used java 8 @gunnarx ? I tried to do the tutorial manually but I ran into the same problem this script is having. I tried to go down to java 8 but it still didnt work.
from build-common-api-cpp-native.
What was the problem after you downgraded? Can you clarify the error please.
from build-common-api-cpp-native.
Sorry! I received the same problem, meaning "The text still says warning, but this also throws a dialog window which calls it an error.".
The error log is the exact same error as before i used java8. I am a x86_64 Ubuntu 18.04.
from build-common-api-cpp-native.
So I was able to get past that part. The Dbus executable are are created seem to work just fine. The SOMEIP executable on the other hand are not built. There is an error message once the script tryts to make.
[ 5%] Linking CXX executable HelloWorldSomeIPService /usr/bin/ld: warning: libboost_filesystem.so.1.64.0, needed by //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0, not found (try using -rpath or -rpath-link) //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::detail::copy_option, boost::system::error_code*)'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::detail::read_symlink(boost::filesystem::path const&, boost::system::error_code*)' //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::absolute(boost::filesystem::path const&, boost::filesystem::path const&)'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::detail::create_directories(boost::filesystem::path const&, boost::system::error_code*)' //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::detail::dir_itr_close(void*&, void*&)'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::detail::system_complete(boost::filesystem::path const&, boost::system::error_code*)' //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::path::filename() const'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)' //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::detail::current_path(boost::system::error_code*)'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::detail::rename(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code*)' //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::detail::directory_iterator_increment(boost::filesystem::directory_iterator&, boost::system::error_code*)' //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::detail::last_write_time(boost::filesystem::path const&, boost::system::error_code*)'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::detail::file_size(boost::filesystem::path const&, boost::system::error_code*)' //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::detail::remove(boost::filesystem::path const&, boost::system::error_code*)' //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::path::operator/=(boost::filesystem::path const&)'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::path::parent_path() const' //projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to
boost::filesystem::detail::space(boost::filesystem::path const&, boost::system::error_code*)'
//projects/scriptv2/autoscript/build-common-api-cpp-native/install/lib/libboost_log.so.1.64.0: undefined reference to boost::filesystem::detail::equivalent(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code*)' collect2: error: ld returned 1 exit status CMakeFiles/HelloWorldSomeIPService.dir/build.make:198: recipe for target 'HelloWorldSomeIPService' failed make[2]: *** [HelloWorldSomeIPService] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/HelloWorldSomeIPService.dir/all' failed make[1]: *** [CMakeFiles/HelloWorldSomeIPService.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
from build-common-api-cpp-native.
Maybe this was a bug, I'm not sure. It could be that the build environment had boost installed also in a central location. Maybe commit 90a4555 helps.
In any case, I have made a few changes, so please try the latest. Please be aware that this script is just a friendly helper, and not a high priority project for me so I do not have time to give a lot of support.
Just to be confident in the behavior I set up for myself a repeatable setup by running in docker. You can try the run-in-docker.sh script to repeat it. That repeatable setup "proves" that the code generation steps work with java 8. I chose a base distro of Ubuntu 16.04 because it seems to have this version by default and so I had to do nothing special. After everything is built the container contained this java version:
$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.16.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)
Everything now builds OK for me, including vSOMEIP when using the run of run-in-docker.sh. In that setup I now get a runtime error for the generated program (HelloWorld client for D-Bus, the server seems OK though) but I won't put time into debugging that now. The SOMEIP variant of client/server test works. Of course I should note that the docker container was not running as privileged so if any program tries some particular kernel calls that need special permissions then these could fail (just a thought).
You could start with updating everything and see if that helps. If there is still trouble in compiling on your own machine, try to compare your build environment to the repeatable docker setup.
Hope this helps.
from build-common-api-cpp-native.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build-common-api-cpp-native.