Skip to content

cmake ../zendapidevel/ 报错(ZAPI_OPT_PHPCFG_PATH) #6

Description

@robbinhan
Running with debug output on.
/usr/lib
   Called from: [2]	/home/vagrant/workspace/zendapidevel/cmake/modules/DetectPhpInfo.cmake
                [1]	/home/vagrant/workspace/zendapidevel/CMakeLists.txt
CMake Error at cmake/modules/DetectPhpInfo.cmake:34 (message):
  php library is not found automatic, maybe your php is not in system
  standard path you can specify ZAPI_OPT_PHPCFG_PATH and try again, good
  luck!
Call Stack (most recent call first):
  CMakeLists.txt:138 (include)


   Called from: [2]	/home/vagrant/workspace/zendapidevel/cmake/modules/DetectPhpInfo.cmake
                [1]	/home/vagrant/workspace/zendapidevel/CMakeLists.txt
-- Configuring incomplete, errors occurred!
See also "/home/vagrant/workspace/build-zendapi/CMakeFiles/CMakeOutput.log".
See also "/home/vagrant/workspace/build-zendapi/CMakeFiles/CMakeError.log".

我在macosx和ubuntu都尝试了编译,都卡在了这里,我设置了ZAPI_OPT_PHPCFG_PATH变量,但是find_library总是找不到库,不清楚是什么原因,我message(${ZAPI_PHP_LIB_PATH})打印是正常指定到了lib目录,手动ll了下lib目录下是有 php目录的

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions