-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: missing binary operator before token "(" #132
Comments
The code failing is this one: /// @return ptr to child number childIdx of node I have to say that I have installed last version of octomap, and checked it in /usr/local/share/octomap/package.xml |
Could you try a clean build as we did? |
I am sorry but I am a bit new modifying this. #define OCTOMAP_VERSION_AT_LEAST(x,y,z) #define OCTOMAP_VERSION_AT_MOST(x,y,z) and also included <fcl/config.h> (tested also fcl/config.h.in) in octree.h, and still have the same error. |
First, you wouldn't include To clarify, do you mean the current master branch couldn't be built on your system? Did you rerun cmake as well? Also, why are you modifying |
As you said, I couldn't built the master branch. I downloaded it again and changed octree.h before making cmake and the error still occurs. |
Couldn't build it as you downloaded without any modification? And, why are you changing |
No, I couldn't because it gives me the error I first posted. And I was changing octree.h to add the config.h to see it that corrected the error, but it didn't work. What I did was to add the config and to change OCTOMAP_VERSION_AT_LEAST(1,8,0) for OCTOMAP_VERSION_AT_LEAST(1.8.0). (, for .) |
This is the same problem I was having when I updated the PR. However, in the CI and for @jslee02 it worked fine. Perhaps is something related to the compiler? I am using In any case, @dblanm changing , for . will not solve anything as the macro is prepared to receive 3 parameters (MAJOR, MINOR, PATCH). |
Hi, I also ran into this problem after trying to make a clean clone of FCL. I eventually had to try to force compilation ignoring octomap to get it to work (by changing CMakeCache.txt because I didn't know how to do it the right way). FCL works now, but I'm not sure why I got this error or how I would get around it if I wanted to use octomap. Any ideas on the compiler issue? I am using |
@pbarragan I introduced recently this issue :( Since Octomap has changed the API, I wanted to make FCL able to work with both Octomap version >=1.8.0 and <1.8.0, that is why those compilation-time macros are introduced. It was not working on my computer (I tried many many different things), but for @jlsee02 it worked, and also in the CI. Surprisingly, I was even able to create a debian package out of it in my computer. @jslee02 which compiler did you use? Because Iused GCC4.8.4 as well. What does the CI use? I guess that, in any case, we should modify this to a simple #define OCTOMAP_GREATER_THAN_1_8 for instance. If you agree I will carry out the changes asap. |
I'm using I couldn't reproduce the reported problem, and actually don't think it's a compiler problem. It would be nice if anyone can reproduce the problem by creating a test repo or any other way. |
@jslee02 I'd be happy to help as the error happens on my system, but I'm not sure how to create a repo that would produce the problem on any system. I can provide any information that's helpful, but if someone could point me to what to provide or how to create said repo, I'd appreciate it as I'm a bit new to how to debug this. |
For a simple test, can you replace all the |
I made the change, removed the previous build directory, cmake .. in a new build directory and make and it seemed to work just fine. I then ran ./tests/test_fcl_distance and that also worked with no errors. make install also worked fine. Seems like it fixed that part. |
A quick note, I think at this point is much easier to follow something like Gazebo guys do:
Maybe we should do
Or just simple collapse all this into a macro |
I believe the pull request I just opened should fix this: #142 Basically, if you already have |
(Reopening as closed automatically when #142 was merged) @dblanm @pbarragan Could you confirm if #142 works for you? |
I completley removed fcl and octomap libraries, |
I am testing now fcl octree and octomap using ROS and it compiles, then i think the problem is well solved. |
Okay, it seems the issue is resolved! Closing. |
Hey, I just checked out the branch fcl-0.5 and tried to build, but got the same error. Please help to build the package. |
When making make in the build directory, using sudo make, make or make -j4
It gives me the error
home.../fcl/octree.h error: missing binary operator before token "("
#if OCTOMAP_VERSION_AT_LEAST(1,8,0)
^
.... and it follows
I change it to #if OCTOMAP_VERSION_AT_LEAST(1.8.0)
but it didn't worked
Anyone with same problem that knows how to fix it?
Thanks in advance!
The text was updated successfully, but these errors were encountered: