I'm new to Code::Blocks, and really like how it's neat, clean and fast.
I have a PHP Extension project and was wondering if anyone has successfully created a Code::Blocks project that can build such projects?
To build from the terminal, I'm using the standard:
phpize
./configure
make
sudo make install
My config.m4 looks something like this:
PHP_ARG_ENABLE(somephpextension,
[Whether to enable the "somephpextension" extension],
[ --enable-somephpextension Enable "somephpextension" extension support])
if test $PHP_SOMEPHPEXTENSION != "no"; then
CXXFLAGS="-std=c++11 $CXXFLAGS"
PHP_REQUIRE_CXX()
PHP_SUBST(SOMEPHPEXTENSION_SHARED_LIBADD)
PHP_ADD_LIBRARY(stdc++, 1, SOMEPHPEXTENSION_SHARED_LIBADD)
PHP_ADD_LIBRARY(crypto, 1, SOMEPHPEXTENSION_SHARED_LIBADD)
PHP_NEW_EXTENSION(somephpextension, main.cc AesHelper.cpp SomeOtherHelper.cpp, $ext_shared)
fi
The second problem I have is the code completion doesn't seem to be working. I created a new project, then imported all of my PHP extension source files, but whenever I try to reference a method for a class, I get "Parsing at the moment", or "The Parser is still parsing files".
My directory structure is very flat - everything exists in the same directory. The only thing I can think of is the parser is attempting to parse the entire PHP Zend API (used to create PHP extensions). I have a very fast machine though, with 32GB of RAM, so I'm not sure why it would take so long (has been well over 45 minutes now).
Would be good to hear from someone who uses Code::Blocks for PHP Extension development and knows how to set everything up.