i'm trying compile src on ubuntu 14: https://github.com/bohdan-khomtchouk/heatmapgenerator/blob/master/heatmapgenerator2_macintosh_osx.cxx.
to compile source code, do: fltk-config --use-images --use-gl --compile heatmapgenerator2_macintosh_osx.cxx
however, retrieve following error:
heatmapgenerator2_macintosh_osx.cxx:52:25: fatal error: mach-o/dyld.h: no such file or directory #include <mach-o/dyld.h> ^ compilation terminated. i've looked http://ubuntuforums.org/showthread.php?t=1623945 didn't solve issue.
is #include <mach-o/dyld.h> not valid preprocessor directive in ubuntu? there seems little written on internet. perhaps apple specific library might not included in ubuntu?
any suggestions on how bypass error , generate binary executable file appreciated.
edit:
when comment out #include <mach-o/dyld.h> preprocessor directive, following error:
heatmapgenerator_macintosh_osx.cxx:568:13: error: use of undeclared identifier '_nsgetexecutablepath' if (_nsgetexecutablepath(path, &size) == 0) is there way bypass error without using preprocessor directive? _nsgetexecutablepath used once in src, perhaps there exists alternative...
that source code won't compile under linux it's designed use osx's dylib (dynamic loader) rather linux's dynamic loader.
possible solutions:
- "port" source code osx linux.
- use osx compile file.
Comments
Post a Comment