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
Update PHP module docs #1174
Comments
Please provide a complete build log so we can debug On Wed, Aug 3, 2016 at 2:29 AM, mandito67 notifications@github.com wrote:
|
This is the code on the CMakeLists.txt where variables have to be quoted for returning no errors. if (COOLPROP_PHP_MODULE) Must have SWIGFIND_PACKAGE(SWIG REQUIRED) execute_process( message(STATUS "php includes=${PHP_INCLUDES}") add_definitions(-DNO_ERROR_CATCHING) #disable internal error catching and allow swig to do the error catching itself set(I_FILE "${CMAKE_CURRENT_SOURCE_DIR}/src/CoolProp.i") set(SWIG_OPTIONS "${COOLPROP_SWIG_OPTIONS}") SET(SWIG_MODULE_CoolProp_EXTRA_DEPS ${SWIG_DEPENDENCIES}) if (WIN32) if (NOT MSVC) install (FILES ${CMAKE_CURRENT_BINARY_DIR}/CoolProp.php DESTINATION ${CMAKE_INSTALL_PREFIX}/PHP/cross-platform) endif() |
That push should have fixed the quote escaping, can you please provide a full build log of your attempts to build PHP wrapper? It works on our build server... http://www.coolprop.dreamhosters.com:8010/builders/PHP-linux/builds/1599 |
for background, I'm working on a AWS Linux instance. I connect to the vm with cmd and cygwin plugins. This is teh error I get when trying: [ec2-user@ip-xx-xx-xx-xx build]$ cmake .. -DCOOLPROP_PHP_MODULE=ON CMake Error at CakeLists.txt:831 (string): -- php includes= |
Did you pull the updated CMakeLists.txt? Hopefully that error should be fixed with my commit: cf74ce3 |
Also, make sure you pull the submodules again. |
Hello Ian, I've been asking around and somebody told me maybe it is related to the Linux version I'm using. I'm working with Amazon Linux AMI instance on AWS/EC2. What Linux do you use to check it out?? |
A full build log could be useful! |
On ubuntu server, this is the CMakeError.log Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. The output was: Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. The output was: Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler": The output was: Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. The output was: Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler": |
On ubuntu server, this is the CMakeOutput.log The system is: Linux - 3.13.0-91-generic - x86_64 The output was: Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is GNU, found in "/home/ubuntu/CoolProp/build/CMakeFiles/2.8.12.2/CompilerIdC/a.out" Determining if the C compiler works passed with the following output: Run Build Command:/usr/bin/make "cmTryCompileExec4148629187/fast" Detecting C compiler ABI info compiled with the following output: Run Build Command:/usr/bin/make "cmTryCompileExec2041783739/fast" Parsed C implicit link information from above output: |
Can you please provide the full command line output, showing all the commands you ran and the associated output? A copy-paste from the terminal would be perfect. |
I followed the docs to the letter, I am on ubuntu 16.04 LTS with php5.6:
|
I'd like to see a similar log for you. |
I updated the docs too: http://www.coolprop.org/dev/coolprop/wrappers/PHP/index.html#php (might need to wait a while for them) |
Closing, reopen if it doesn't work for you. |
Hello Ian, I think it's working now. This is the output: -- COOLPROP_INSTALL_PREFIX=/home/ubuntu/CoolProp/install_root Now I need to do some tests on php...let you know! thanks!! |
Good to hear! |
In the future, please provide THE WHOLE build log, including the commands that you ran. Otherwise I need to guess what you actually did. |
Sorry for that, I'm new on this, trying to catch up :) |
error coolprop.txt |
Ian, working!! thanks a lot. |
Hello!
I'm trying to install PHP wrapper on linux server. In the installation instructions from this site: http://www.coolprop.org/coolprop/wrappers/PHP/index.html says to create de module with
cmake .. -DCOOLPROP_PHP_MODULE=ON but it returns two errors on line 830 and 831. Somewhere on the net I found to add "" to the variable ${php_config_includes} in both lines and this returns no errors, but when building with make VERBOSE=1 it cant find the CoolProp/build/src folder
please any suggestion??
The text was updated successfully, but these errors were encountered: