-
Notifications
You must be signed in to change notification settings - Fork 114
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
Xcode 8.1 on Sierra 10.12 has multiple "no member XXX in global namespace" errors #73
Comments
For the record, I'm on El Capitan ( Another possible culprit is Boost
I get the equivalent errors using the Command Line Tools. They are all coming from:
|
I suspect boost 1.62 here. I'm still on Xcode 6.4 (Build version 6E35b) and get the same exact errors after upgrading to boost 1.62 for gazebo7. |
Spent a few more hours hitting my head against this; downgrading down to boost 1.60 (which my original install was based on) has not fixed the issues. |
I switched the compiler options to output the preprocessed code from the minimal example. I've included copies of the output here. |
Got it working with my old .rosinstall file from back in last February, which I've attached for others: rosinstall.txt System setup: Changes I had to make: I'm no closer to actually figuring out what causes these errors, but I suppose it isn't necessarily boost and not necessarily XCode. If someone has a chance to try with this super old rosinstall file and also gets it to work, then must just be something in the ROS code that changed recently.. |
If that's the case, then here's a potential culprit: ros/class_loader#44 I'm planning on downgrading |
I compiled the simple example in two separate build directories, one broken and one working and compared the files. In anyExecutable.dir/flags.cmake the CXX_INCLUDES went from blank to a list of catkin built dirs.
I went to the bad config dir and ran the make command taking out the Kernel.framework include and I'm looking to see where that directory gets added in cmake/catkin.
|
Success! If I change the default search method for OSX frameworks from FIRST to LAST, everything compiles. I'm testing a few things now, but I'll try to have a pull request this weekend.
|
Met same problem and setting |
I'm using the Xcode compiler. |
@lloydc99 Thank you for the response! |
@lloydc99 |
Yes,
The -DCMAKE_FIND_FRAMEWORK=LAST is the part that fixes the bug.
The rest of the line is the normal invocation.
Hope it works for you!
…On Mon, May 22, 2017 at 8:41 AM, 邹喜东 ***@***.***> wrote:
@lloydc99 <https://github.com/lloydc99>
do you mean this when I compile pos on mac I should use this command
./src/catkin/bin/catkin_make_isolated --install
-DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST
-DCATKIN_ENABLE_TESTING=1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#73 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF103BYB2MY1fWHAEActFMjM2LrSLpyqks5r8YKOgaJpZM4K-g2s>
.
|
This is forked from issue #64.
I get these errors compiling several packages:
I think I've created a minimal case to reproduce this problem.
In this case, it seems to be triggered by depending on the nodelet package.
CMakeLists.txt:
main.cpp:
The text was updated successfully, but these errors were encountered: