Comments (9)
Same problem here, also with High Sierra.
@LorenzMeier I think this is a High Sierra related Problem.
from homebrew-px4.
==> Installing px4-dev from px4/px4
==> Installing dependencies for px4/px4/px4-dev: fastrtps, fastcdr
==> Installing px4/px4/px4-dev dependency: fastrtps
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-v1.5.0p.tar.gz
Already downloaded: /Users/fabian/Library/Caches/Homebrew/fastrtps-1.5.0.tar.gz
==> Patching
patching file CMakeLists.txt
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 373 with fuzz 1.
==> cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/fastrtps/1.5
Last 15 lines from /Users/fabian/Library/Logs/Homebrew/fastrtps/01.cmake:
CMake Error at /usr/local/Cellar/cmake/3.9.3_1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Java: Found unsuitable version "..", but required is at
least "1.6" (found
/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/java)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.9.3_1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:375 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.9.3_1/share/cmake/Modules/FindJava.cmake:243 (find_package_handle_standard_args)
cmake/dev/java_support.cmake:16 (find_package)
CMakeLists.txt:226 (gradle_build)
from homebrew-px4.
Had the same issues like @fabianschilling . Solved it by downgrading to Java 1.6.
Could NOT find Java: Found unsuitable version "..", but required is at least "1.6"
Also solved the issue from @meteor0530 by installing Java 1.8 from here which is the source described in the manual.
But, got a new issue (solved):
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/fastcdr
/usr/local/include is not writable.
Solved it by setting correct rights:
sudo chown -R
whoami /usr/local
from homebrew-px4.
UNKNOWN ERROR DURING INSTALL
System: MacOS High Sierra 10.13
Java: Installed the lasted Java 9, but I switched to both version 1.7, 1.8 as recommended by @KochC, using command, i.e., switch to java version 1.8 by,
frankmbp:~ appleapple$ export JAVA_HOME=/usr/libexec/java_home -v 1.8
frankmbp:~ appleapple$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
-------- The error messages during installation of brew install px4-dev -------------
brew install px4-dev
Updating Homebrew...
==> Installing px4-dev from px4/px4
==> Installing dependencies for px4/px4/px4-dev: fastrtps, fastcdr
==> Installing px4/px4/px4-dev dependency: fastrtps
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-v1.5.0p.tar.gz
Already downloaded: /Users/appleapple/Library/Caches/Homebrew/fastrtps-1.5.0.tar.gz
==> Patching
patching file CMakeLists.txt
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 373 with fuzz 1.
==> cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local
==> make
Last 15 lines from /Users/appleapple/Library/Logs/Homebrew/fastrtps/02.make:
[ 86%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/builtin/data/ReaderProxyData.cpp.o
[ 88%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputController.cpp.o
[ 89%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputControllerDescriptor.cpp.o
[ 90%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/FlowController.cpp.o
[ 91%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/exceptions/Exception.cpp.o
[ 92%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/attributes/PropertyPolicy.cpp.o
[ 93%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/common/Token.cpp.o
[ 94%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLParserCommon.cpp.o
[ 95%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileElementParser.cpp.o
[ 96%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLEndpointParser.cpp.o
[ 97%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileParser.cpp.o
[ 98%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir///thirdparty/tinyxml2/tinyxml2.cpp.o
[100%] Linking CXX shared library libfastrtps.dylib
[100%] Built target fastrtps
make: *** [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/px4/homebrew-px4/issues
These open issues may also help:
Unable to install fastrtps #16
from homebrew-px4.
I have this issue as well on High Sierra, I have tried to reinstall java and this several times with the same result.
from homebrew-px4.
I think I found a workaround for this Problem.
brew cask install java
will install JAVA9 and there is a Class Name Collision (java.lang.Module) so that part of fastrtps build fails and in sequence the linker. I got it working by uninstalling Java 9 and manually installing the JAVA 8 JDK Version from the Oracle site.
Also there was a Problem installing jinja2 so I had to modify the installation command to : sudo -H pip install pyserial jinja2
which worked well for me.
from homebrew-px4.
Could you please update from Home-brew and see if that resolves your issue? I avoided building with JAVA by adding a new bottle: bd6519b
from homebrew-px4.
Now works for high-sierra with latest master. @LorenzMeier thanks!
from homebrew-px4.
@meteor0530 Please reopen if it's still an issue for you.
from homebrew-px4.
Related Issues (20)
- Error: Cannot tap px4/px4: invalid syntax in tap! HOT 1
- px4-dev currently failing HOT 2
- Failed to install genromfs dependency HOT 1
- Cannot install kconfig-frontends HOT 8
- cannot brew install kconfig-frontends HOT 1
- Compile Error for px4-dev Mac OS Mojave HOT 3
- issue on brew install px4-dev HOT 2
- Update fastrtps bottle HOT 7
- Errors running sitl_gazebo plugins use glog HOT 1
- 'Error 2' when running 'brew install px4-dev' HOT 2
- Error building stable for px4fmu-v3_default on macOS Mojave HOT 2
- macOS installs are failing due to ant/bcel dependency HOT 1
- Simplify dependencies for CI between sim and dev HOT 1
- Error: Cannot tap ardupilot/px4: invalid syntax in tap! HOT 1
- homebrew deprecated the java formula HOT 2
- fastrtps error while 'brew install px4-dev'. HOT 2
- macOS 11.5.1 brew install px4-dev fails for fastrtps HOT 9
- brew install px4-sim-gazebo fails on macOS 11.5.1 HOT 2
- No available formula with the name "gst-libav" HOT 1
- Fails to access libiconv.la
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 homebrew-px4.