{"action":"created","issue":{"url":"https://api.github.com/repos/isage/lua-imagick/issues/3","labels_url":"https://api.github.com/repos/isage/lua-imagick/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/isage/lua-imagick/issues/3/comments","events_url":"https://api.github.com/repos/isage/lua-imagick/issues/3/events","html_url":"https://github.com/isage/lua-imagick/issues/3","id":117755135,"number":3,"title":"mac os error","user":{"login":"yingnierxiao","id":3435706,"avatar_url":"https://avatars.githubusercontent.com/u/3435706?v=3","gravatar_id":"","url":"https://api.github.com/users/yingnierxiao","html_url":"https://github.com/yingnierxiao","followers_url":"https://api.github.com/users/yingnierxiao/followers","following_url":"https://api.github.com/users/yingnierxiao/following{/other_user}","gists_url":"https://api.github.com/users/yingnierxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/yingnierxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yingnierxiao/subscriptions","organizations_url":"https://api.github.com/users/yingnierxiao/orgs","repos_url":"https://api.github.com/users/yingnierxiao/repos","events_url":"https://api.github.com/users/yingnierxiao/events{/privacy}","received_events_url":"https://api.github.com/users/yingnierxiao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-19T07:05:14Z","updated_at":"2015-11-20T07:43:31Z","closed_at":null,"body":"-- Found Lua52: /usr/local/lib/liblua.a  \r\n-- Found ImageMagick: /usr/local/lib/libMagickWand-6.Q16.dylib (found version \"6.9.1-9\") \r\n-- Configuring done\r\nCMake Warning (dev):\r\n  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run \"cmake\r\n  --help-policy CMP0042\" for policy details.  Use the cmake_policy command to\r\n  set the policy and suppress this warning.\r\n\r\n  MACOSX_RPATH is not specified for the following targets:\r\n\r\n   imagick\r\n\r\nThis warning is for project developers.  Use -Wno-dev to suppress it.\r\n\r\n-- Generating done\r\n-- Build files have been written to: /Volumes/osxwork/work/luatools/3rd/lua-imagick/build\r\n\r\n cmake .. -DUSE_LUA52=ON\r\n-- Configuring done\r\nCMake Warning (dev):\r\n  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run \"cmake\r\n  --help-policy CMP0042\" for policy details.  Use the cmake_policy command to\r\n  set the policy and suppress this warning.\r\n\r\n  MACOSX_RPATH is not specified for the following targets:\r\n\r\n   imagick\r\n\r\nThis warning is for project developers.  Use -Wno-dev to suppress it.\r\n\r\n-- Generating done\r\n-- Build files have been written to: /Volumes/osxwork/work/luatools/3rd/lua-imagick/build\r\niMac:build zj$ make\r\nLinking C shared library imagick.dylib\r\nUndefined symbols for architecture x86_64:\r\n  \"_luaL_argerror\", referenced from:\r\n      _checkimage in imagick.c.o\r\n  \"_luaL_checkinteger\", referenced from:\r\n      _imagick_set_quality in imagick.c.o\r\n      _imagick_set_gravity in imagick.c.o\r\n      _imagick_blur_channel in imagick.c.o\r\n      _imagick_sharpen_channel in imagick.c.o\r\n      _imagick_adaptive_blur_channel in imagick.c.o\r\n      _imagick_adaptive_sharpen_channel in imagick.c.o\r\n      _imagick_set_colorspace in imagick.c.o\r\n      ...\r\n  \"_luaL_checklstring\", referenced from:\r\n      _imagick_write in imagick.c.o\r\n      _imagick_write_all in imagick.c.o\r\n      _imagick_set_format in imagick.c.o\r\n      _imagick_get_option in imagick.c.o\r\n      _imagick_set_option in imagick.c.o\r\n      _imagick_get_artifact in imagick.c.o\r\n      _imagick_set_artifact in imagick.c.o\r\n      ...\r\n  \"_luaL_checknumber\", referenced from:\r\n      _imagick_swirl in imagick.c.o\r\n      _imagick_oilpaint in imagick.c.o\r\n      _imagick_blur in imagick.c.o\r\n      _imagick_sharpen in imagick.c.o\r\n      _imagick_adaptive_blur in imagick.c.o\r\n      _imagick_adaptive_sharpen in imagick.c.o\r\n      _imagick_blur_channel in imagick.c.o\r\n      ...\r\n  \"_luaL_checkudata\", referenced from:\r\n      _checkimage in imagick.c.o\r\n  \"_luaL_newmetatable\", referenced from:\r\n      _luaopen_imagick in imagick.c.o\r\n  \"_luaL_optinteger\", referenced from:\r\n      _imagick_resize in imagick.c.o\r\n      _imagick_resample in imagick.c.o\r\n      _imagick_crop in imagick.c.o\r\n      _imagick_composite in imagick.c.o\r\n      _imagick_composite_channel in imagick.c.o\r\n  \"_luaL_optnumber\", referenced from:\r\n      _imagick_annotate in imagick.c.o\r\n      _imagick_resize in imagick.c.o\r\n      _imagick_resample in imagick.c.o\r\n      _imagick_crop in imagick.c.o\r\n      _imagick_rotate in imagick.c.o\r\n      _imagick_modulate in imagick.c.o\r\n  \"_luaL_register\", referenced from:\r\n      _luaopen_imagick in imagick.c.o\r\n  \"_lua_createtable\", referenced from:\r\n      _maketable in imagick.c.o\r\n      _luaopen_imagick in imagick.c.o\r\n  \"_lua_getfield\", referenced from:\r\n      _imagick_clone in imagick.c.o\r\n      _imagick_open in imagick.c.o\r\n      _imagick_open_blob in imagick.c.o\r\n      _imagick_open_pseudo in imagick.c.o\r\n  \"_lua_newuserdata\", referenced from:\r\n      _imagick_clone in imagick.c.o\r\n      _imagick_open in imagick.c.o\r\n      _imagick_open_blob in imagick.c.o\r\n      _imagick_open_pseudo in imagick.c.o\r\n  \"_lua_pushboolean\", referenced from:\r\n      _imagick_write in imagick.c.o\r\n      _imagick_write_all in imagick.c.o\r\n      _imagick_set_format in imagick.c.o\r\n      _imagick_set_quality in imagick.c.o\r\n      _imagick_set_gravity in imagick.c.o\r\n      _imagick_set_option in imagick.c.o\r\n      _imagick_set_artifact in imagick.c.o\r\n      ...\r\n  \"_lua_pushfstring\", referenced from:\r\n      _imagick_tostring in imagick.c.o\r\n  \"_lua_pushinteger\", referenced from:\r\n      _imagick_get_quality in imagick.c.o\r\n      _imagick_blob in imagick.c.o\r\n      _imagick_get_gravity in imagick.c.o\r\n      _imagick_get_icc_profile in imagick.c.o\r\n  \"_lua_pushlstring\", referenced from:\r\n      _luaopen_imagick in imagick.c.o\r\n      _imagick_blob in imagick.c.o\r\n      _imagick_get_icc_profile in imagick.c.o\r\n  \"_lua_pushnil\", referenced from:\r\n      _imagick_open in imagick.c.o\r\n      _imagick_open_blob in imagick.c.o\r\n      _imagick_open_pseudo in imagick.c.o\r\n  \"_lua_pushnumber\", referenced from:\r\n      _maketable in imagick.c.o\r\n      _luaopen_imagick in imagick.c.o\r\n      _imagick_width in imagick.c.o\r\n      _imagick_height in imagick.c.o\r\n      _imagick_get_colorspace in imagick.c.o\r\n  \"_lua_pushstring\", referenced from:\r\n      _imagick_write in imagick.c.o\r\n      _imagick_write_all in imagick.c.o\r\n      _imagick_get_format in imagick.c.o\r\n      _imagick_set_format in imagick.c.o\r\n      _imagick_set_quality in imagick.c.o\r\n      _imagick_set_gravity in imagick.c.o\r\n      _imagick_get_option in imagick.c.o\r\n      ...\r\n  \"_lua_setfield\", referenced from:\r\n      _maketable in imagick.c.o\r\n      _luaopen_imagick in imagick.c.o\r\n  \"_lua_setmetatable\", referenced from:\r\n      _imagick_clone in imagick.c.o\r\n      _imagick_open in imagick.c.o\r\n      _imagick_open_blob in imagick.c.o\r\n      _imagick_open_pseudo in imagick.c.o\r\n  \"_lua_toboolean\", referenced from:\r\n      _imagick_write_all in imagick.c.o\r\n      _imagick_contrast in imagick.c.o\r\n      _imagick_negate in imagick.c.o\r\n      _imagick_negate_channel in imagick.c.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake[2]: *** [imagick.dylib] Error 1\r\nmake[1]: *** [CMakeFiles/imagick.dir/all] Error 2\r\nmake: *** [all] Error 2"},"comment":{"url":"https://api.github.com/repos/isage/lua-imagick/issues/comments/158313142","html_url":"https://github.com/isage/lua-imagick/issues/3#issuecomment-158313142","issue_url":"https://api.github.com/repos/isage/lua-imagick/issues/3","id":158313142,"user":{"login":"yingnierxiao","id":3435706,"avatar_url":"https://avatars.githubusercontent.com/u/3435706?v=3","gravatar_id":"","url":"https://api.github.com/users/yingnierxiao","html_url":"https://github.com/yingnierxiao","followers_url":"https://api.github.com/users/yingnierxiao/followers","following_url":"https://api.github.com/users/yingnierxiao/following{/other_user}","gists_url":"https://api.github.com/users/yingnierxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/yingnierxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yingnierxiao/subscriptions","organizations_url":"https://api.github.com/users/yingnierxiao/orgs","repos_url":"https://api.github.com/users/yingnierxiao/repos","events_url":"https://api.github.com/users/yingnierxiao/events{/privacy}","received_events_url":"https://api.github.com/users/yingnierxiao/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T07:43:31Z","updated_at":"2015-11-20T07:43:31Z","body":"study camke  and make it ok  \r\n\r\n\r\ncmake_minimum_required(VERSION 2.8.12)\r\nproject(imagick)\r\n\r\ninclude_directories(/usr/local/include)\r\n\r\nfind_package(ImageMagick COMPONENTS MagickWand MagickCore REQUIRED)\r\nfind_package(Lua51 REQUIRED)\r\n\r\nset(src_list src/imagick.c)\r\n\r\n\r\ninclude_directories(${LUA_INCLUDE_DIR})\r\n\r\nget_filename_component(_lua_lib_dir ${LUA_LIBRARY} PATH)\r\n\r\nmessage(${_lua_lib_dir})\r\nset(_lua_module_dir \"${_lua_lib_dir}/lua/5.2\")\r\n\r\n\r\nif(APPLE)\r\n    set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS\r\n        \"${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -undefined dynamic_lookup\")\r\nendif()\r\n\r\n\r\n\r\nadd_library(imagick MODULE ${src_list})\r\n\r\ntarget_include_directories(imagick PRIVATE ${ImageMagick_INCLUDE_DIRS})\r\n\r\nset_target_properties(imagick PROPERTIES PREFIX \"\")\r\n\r\ntarget_link_libraries(imagick ${ImageMagick_LIBRARIES})\r\n\r\ninstall(TARGETS imagick DESTINATION \"${_lua_module_dir}\")\r\n"}}