{"action":"closed","issue":{"url":"https://api.github.com/repos/wxphp/wxphp/issues/19","labels_url":"https://api.github.com/repos/wxphp/wxphp/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/wxphp/wxphp/issues/19/comments","events_url":"https://api.github.com/repos/wxphp/wxphp/issues/19/events","html_url":"https://github.com/wxphp/wxphp/issues/19","id":19131814,"number":19,"title":"app.cpp seems buggy","user":{"login":"IngwiePhoenix","id":2893716,"avatar_url":"https://avatars.githubusercontent.com/u/2893716?v=3","gravatar_id":"","url":"https://api.github.com/users/IngwiePhoenix","html_url":"https://github.com/IngwiePhoenix","followers_url":"https://api.github.com/users/IngwiePhoenix/followers","following_url":"https://api.github.com/users/IngwiePhoenix/following{/other_user}","gists_url":"https://api.github.com/users/IngwiePhoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/IngwiePhoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IngwiePhoenix/subscriptions","organizations_url":"https://api.github.com/users/IngwiePhoenix/orgs","repos_url":"https://api.github.com/users/IngwiePhoenix/repos","events_url":"https://api.github.com/users/IngwiePhoenix/events{/privacy}","received_events_url":"https://api.github.com/users/IngwiePhoenix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":45,"created_at":"2013-09-06T22:27:25Z","updated_at":"2015-11-22T21:52:02Z","closed_at":"2015-11-22T21:52:02Z","body":"Hello.\r\n\r\nI am trying to compile wxPHP as an integrated module for easier distribution. The process itself and everything else works perfectly. BUT: This happens.\r\n\r\n```\r\n\r\nIn file included from /Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:13:\r\next/wxwidgets/php_wxwidgets.h:19:20: error: common.h: No such file or directory\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:14:17: error: app.h: No such file or directory\r\nIn file included from /Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:13:\r\next/wxwidgets/php_wxwidgets.h:64: error: expected class-name before ‘{’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: In function ‘void php_wxApp_free(void*, void***)’:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:29: error: ‘zo_wxApp’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:29: error: ‘custom_object’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:29: error: expected primary-expression before ‘)’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:29: error: expected `;' before ‘object’\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: In function ‘zend_object_value php_wxApp_new(zend_class_entry*, void***)’:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:43: error: ‘zo_wxApp’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:43: error: ‘custom_object’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:44: error: expected primary-expression before ‘)’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:44: error: expected `;' before ‘_emalloc’\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:58: error: ‘PHP_WXAPP_TYPE’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: At global scope:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:68: error: ‘wxAppWrapper’ has not been declared\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: In function ‘int OnExit()’:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:75: error: ‘phpObj’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:75: error: ‘tsrm_ls’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:77: error: ‘_T’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:77: error: ‘wxMessageBox’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: At global scope:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:82: error: ‘wxAppWrapper’ has not been declared\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: In function ‘bool OnInit()’:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:89: error: ‘wxFileSystem’ has not been declared\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:89: error: expected type-specifier before ‘wxZipFSHandler’\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:89: error: expected `)' before ‘wxZipFSHandler’\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:91: error: ‘phpObj’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:91: error: ‘tsrm_ls’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:93: error: ‘_T’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:93: error: ‘wxMessageBox’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: At global scope:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:100: error: expected constructor, destructor, or type conversion before ‘(’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: In function ‘void zim_php_wxApp___construct(int, zval*, zval**, zval*, int, void***)’:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:107: error: ‘zo_wxApp’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:107: error: ‘current_object’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:109: error: ‘wxAppWrapper’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:109: error: ‘native_object’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:109: error: expected type-specifier before ‘wxAppWrapper’\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:109: error: expected `;' before ‘wxAppWrapper’\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:116: error: expected primary-expression before ‘)’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:116: error: expected `;' before ‘zend_object_store_get_object’\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: In function ‘void zim_php_wxApp_SetInstance(int, zval*, zval**, zval*, int, void***)’:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:130: error: ‘php_wxApp_entry’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:135: error: ‘wxApp’ has not been declared\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:135: error: ‘wxAppWrapper’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:135: error: expected primary-expression before ‘)’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:135: error: ‘zo_wxApp’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:135: error: expected primary-expression before ‘)’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp: In function ‘void zim_php_wxApp_Yield(int, zval*, zval**, zval*, int, void***)’:\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:154: error: ‘wxAppWrapper’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:154: error: ‘native_object’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:154: error: ‘zo_wxApp’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:154: error: expected primary-expression before ‘)’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:154: error: expected `)' before ‘zend_object_store_get_object’\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:159: error: ‘wxApp’ was not declared in this scope\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:159: error: expected primary-expression before ‘)’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:159: error: expected `)' before ‘native_object’\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:159: error: expected `)' before ‘;’ token\r\n/Users/Ingwie/Downloads/php-5.5.3/ext/wxwidgets/src/app.cpp:159: error: expected `)' before ‘;’ token\r\nmake: *** [ext/wxwidgets/src/app.lo] Error 1\r\n```\r\n\r\nIts basically the compiler saying: Bro, ur file's broken completeleh.\r\n\r\nIt however looks like as that common.h is a troubblemaker.\r\n\r\nTo reproduce: Download the drag0n-php repo from my github\r\nGo into it and execute:\r\n```bash\r\n./configure \\\r\n\t--prefix=/Applications/drag0n/drag0n.app/Contents/System \\\r\n\t--enable-embed=static \\\r\n\t--enable-static=yes \\\r\n\t--with-config-file-path=\"\" \\\r\n\t--with-config-file-scan-dir=\"\" \\\r\n\t--enable-maintainer-zts \\\r\n\t--enable-pthreads \\\r\n\t--with-wxwidgets \\\r\n\t--enable-wxwidgets-monolithic \\\r\n\t--enable-mbstring \\\r\n\t--enable-ftp \\\r\n\t--enable-soap \\\r\n\t--enable-zip \\\r\n\t--enable-opcache \\\r\n\t--with-tidy \\\r\n\t--with-libedit \\\r\n\t--with-curl \\\r\n\t--with-mcrypt \\\r\n\t--with-gd \\\r\n\t--with-pear \\\r\n\t--with-libedit \\\r\n\t--with-curl \\\r\n\t--enable-intl \\\r\n\t--enable-soap \\\r\n\t--enable-libxml\t&& make\r\n```\r\n\r\nThen just wait a while... Make sure you have the needed libs installed. (automake, autoconf, bison, libcurl, mcrypt, pth, icu, GD). change -libedit to -readline if needed. You can ommit it too.\r\n\r\nMy repo: https://github.com/ingwiePhoenix/drag0n-php\r\n\r\nWould be great to have this fixed :)"}}