-
Notifications
You must be signed in to change notification settings - Fork 68
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
undefined reference error for graph examples #105
Comments
Added to the README as suggested. Thanks! |
i'm running into what i think is a similar issue so i thought i'd comment on this thread instead of opening a new one. i have an opt solver in my project which makes use of graphs. when i comment out the graph in the energy specification in the terra file, the solver runs but does nothing.
when the part that relates to the graph isn't commented out, i get a segfault:
at first i thought that the problem was with copying between ram and gpu memory, but when debugging with gdb i see the following error message:
any ideas on how to solve this? |
In general please open new issues (or at least reopen the issue you are commenting on) so maintainers can quickly see all unresolved issues. It will help your question not be lost to the void! This is a very different error, as it has to do with Opt, and not OpenMesh. I believe the last message you have posted is not saying there is a segfault because there is no such file or directory, but rather it cannot find such a file or directory to provide more context for the segfault. Do the normal examples run for you? What is your energy function, and how are you setting up the parameters? Can you send the full output with Opt's verbosity set to 3? |
@Mx7f my bad for not opening a new issue, sorry and thank you for getting back to me! the normal examples run for me without problem and when trying to debug the segfault, thinking that the problem might have to do with linking, i made a simple test in Opt, as opposed to calling Opt methods in my project. in the end i ran into the same problem, so after your response i'm certain that the issue has to do with how i'm initialising the graph. i'll get back to you once i've tried to solve this to tell you what the problem was or to ask for more help. thanks again! |
@Mx7f the segfault was caused by setting the solver parameters in |
I ran into a similar problem last week... Opt should have an optional parameter validation step, I'll open an issue. |
When trying to compile the graph-examples, I get an 'undefined reference' error for some functions in the OpenMesh library.
I can get rid of this error by simply replacing everything OpenMesh-related in
..../examples/external/OpenMesh/
by a version of the library that I compiled on my own computer.So there must either be an incompatibility of the pre-compiled OpenMesh library with my system or Opt depends on features that don't exist in the pre-compiled libs. (The pre-compiled version is older than the newest available version)
Anyway, it seems to me that this issue might be worth putting in the 'common problems' section since the fix is simple (but took me forever to figure out).
EDIT: I am running Opt under linux
EDIT: In my original post, I forgot to mention that the "include" directory for OpenMesh also needs to be replaced. (I initially forgot to do this and only replaced the "lib" directory)
The text was updated successfully, but these errors were encountered: