ilpincy / homebrew-argos3

Homebrew tap for ARGoS3
1 stars 2 forks source link

problems with the installation of Argos3 #8

Open giadagibertoni opened 3 years ago

giadagibertoni commented 3 years ago

Hi, i'm having trouble installing argos3 via homebrew. I have macOS Big Sur 11.2.2. I can't solve this problem. Below I report the output after doing brew install argos3:

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 1 formula.
==> Updated Casks
Updated 1 cask.

==> Installing argos3 from ilpincy/argos3
==> Downloading https://github.com/ilpincy/argos3/archive/3.0.0-beta56.tar.gz
Already downloaded: /Users/giada/Library/Caches/Homebrew/downloads/aa6b792a608d99d9c005f22899917c6fd308939eed58fd83a40035fd1e5fd632--argos3-3.0.0-beta56.tar.gz
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/fileutils.rb:128: warning: conflicting chdir during another chdir block
==> cmake ../src -DARGOS_BUILD_NATIVE=ON -DCPACK_PACKAGE_VERSION_MAJOR=3 -DCPACK
==> make
Last 15 lines from /Users/giada/Library/Logs/Homebrew/argos3/02.make:
/tmp/argos3-20210312-30552-nqxduu/argos3-3.0.0-beta56/src/argos3/plugins/simulator/physics_engines/dynamics3d/bullet/BulletDynamics/Featherstone/btMultiBodyJointMotor.h:24:7: note: declared here
class btMultiBodyJointMotor : public btMultiBodyConstraint
      ^
4 errors generated.
make[2]: *** [plugins/robots/e-puck/CMakeFiles/argos3plugin_simulator_epuck.dir/simulator/dynamics3d_epuck_model.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 99%] Building CXX object plugins/robots/prototype/CMakeFiles/argos3plugin_simulator_prototype.dir/simulator/prototype_joints_default_actuator.cpp.o
[ 99%] Building CXX object plugins/robots/prototype/CMakeFiles/argos3plugin_simulator_prototype.dir/simulator/prototype_joints_default_sensor.cpp.o
[100%] Building CXX object plugins/robots/prototype/CMakeFiles/argos3plugin_simulator_prototype.dir/simulator/prototype_link_entity.cpp.o
make[1]: *** [plugins/robots/e-puck/CMakeFiles/argos3plugin_simulator_epuck.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Building CXX object plugins/robots/prototype/CMakeFiles/argos3plugin_simulator_prototype.dir/simulator/prototype_link_equipped_entity.cpp.o
[100%] Linking CXX shared library libargos3plugin_simulator_prototype.dylib
[100%] Built target argos3plugin_simulator_prototype
make: *** [all] Error 2
LFK01 commented 3 years ago

I was installing argos3 via homebrew. I have macOS Big Sur 11.2.3. After brew install bash-completion qt argos3 my output is:

Last 15 lines from /Users/my_name/Library/Logs/Homebrew/argos3/02.make:
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:327:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
13 errors generated.
make[2]: *** [core/CMakeFiles/argos3core_simulator.dir/utility/rate.cpp.o] Error 1
make[1]: *** [core/CMakeFiles/argos3core_simulator.dir/all] Error 2
make: *** [all] Error 2

The prompt suggested me to post this here. Are there any updates on this issue? Thank you in advance

giadagibertoni commented 3 years ago

I'm sorry but i haven't found a solution to the problem yet. For now the only solution has been to install argos on Linux.

I believe your mistake is from Xcode. I think you might find this useful: https://forums.swift.org/t/is-anyone-else-getting-this-error-when-building-the-compiler-from-master-on-macos/36113.

I had the same problem, solved this I still had the above error.

LFK01 commented 3 years ago

Yeah my mistake was from some .sdk in Xcode. I solved it with sudo xcode-select -s /Library/Developer/CommandLineTools. Now I have your same problem.

ilpincy commented 3 years ago

I have encountered this problem and worked on it for a bit, without success. I'll try the command @LFK01 suggest, thanks!

@giadagibertoni It's an issue related to Homebrew specifically - if you compile ARGoS from the sources on Mac, everything works (that's how I develop ARGoS).

ilpincy commented 3 years ago

I tried the command suggested by @LFK01 - no luck. I have also uninstalled and reinstalled Xcode completely - no luck. The thing I noticed is that forcing Homebrew to use a different compiler generates a different error message. This error is related to something Homebrew configures early on, which I have not been able to reproduce fully. By comparing the compilation flags I get when I compile manually and when I do it with Homebrew, I noticed that the include directories are different. For lack of time I haven't been able to make Homebrew behave like my normal compilation environment, although I made some progress by hardcoding a few include folders.

LFK01 commented 3 years ago

I tried the command suggested by @LFK01 - no luck.

Sorry for the lack of clarity but the command I was referring to did not solve the problem. I was able to have the same error of @giadagibertoni with that command. Anyway I'm happy if it has helped you in troubleshouting even a little.

if you compile ARGoS from the sources on Mac, everything works (that's how I develop ARGoS).

I switched to compiling the source code and it is way better than installing linux :D

Newguyonthefield commented 3 years ago

Hello Guys, could somebody explain how to install from the sorces on Mac? Thank you in advance!

kingchou007 commented 11 months ago

Anyone can share how to compile the source code?

LFK01 commented 11 months ago

https://github.com/ilpincy/argos3#compiling-argos

kingchou007 commented 11 months ago

https://github.com/ilpincy/argos3#compiling-argos

Thanks!!!!