venkatiiitb / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Create a wiki page with instructions on how to build PHP Desktop Chrome from sources #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying compile the php desktop chrome from sources with visual studio 2010 
SP1. But show some problems.

First of all, it ask for libcef_dll_wrapper.lib and libcef.lib. I copied it 
from chromiumembedded project and it pass to next error that I was unable to 
resolve:

Error   1   error LNK2019: unresolved external symbol "bool __cdecl 
CefInitialize(class CefMainArgs const &,class CefStructBase<struct 
CefSettingsTraits> const &,class CefRefPtr<class CefApp>)" 
(?CefInitialize@@YA_NABVCefMainArgs@@ABV?$CefStructBase@UCefSettingsTraits@@@@V?
$CefRefPtr@VCefApp@@@@@Z) referenced in function 
_wWinMain@16    C:\Users\~\phpdesktop-07c81718f5a5\phpdesktop-07c81718f5a5\phpdeskt
op-chrome\main.obj  phpdesktop-chrome

Error   2   error LNK2019: unresolved external symbol "int __cdecl 
CefExecuteProcess(class CefMainArgs const &,class CefRefPtr<class CefApp>)" 
(?CefExecuteProcess@@YAHABVCefMainArgs@@V?$CefRefPtr@VCefApp@@@@@Z) referenced 
in function _wWinMain@16    C:\Users\- 
\phpdesktop-07c81718f5a5\phpdesktop-07c81718f5a5\phpdesktop-chrome\main.obj phpd
esktop-chrome

Error   3   error LNK1120: 2 unresolved 
externals   C:\Users\~\phpdesktop-07c81718f5a5\phpdesktop-07c81718f5a5\phpdesktop-
chrome\Debug\phpdesktop-chrome.exe  1   1   phpdesktop-chrome

Can someone help me or make a complete "how to build PHP Desktop Chrome from 
sources"?

Very Thanks,
Marcelito Costa.

Original issue reported on code.google.com by costa.ma...@gmail.com on 23 Jan 2014 at 1:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You either copied the libcef.lib / libcef_dll_wrapper.lib libraries to a wrong 
directory, or you use a wrong version of CEF. See the 
phpdesktop-msie/cef/README.txt file to see what version of CEF is used by PHP 
Desktop. For now it is branch 1650 rev. 1562. 

Original comment by czarek.t...@gmail.com on 23 Jan 2014 at 2:22

GoogleCodeExporter commented 9 years ago
Download CEF binaries and debug symbols from here:
http://www.magpcss.net/cef_downloads/

Original comment by czarek.t...@gmail.com on 23 Jan 2014 at 2:23

GoogleCodeExporter commented 9 years ago
See revision 07d2d664b365 - "Added readme files explaining where to put the 
C/C++ library files".

Original comment by czarek.t...@gmail.com on 23 Jan 2014 at 2:29

GoogleCodeExporter commented 9 years ago
I paste the libcef.lib / libcef_dll_wrapper.lib on the correct path and correct 
version 3.1650.1562 (I compile libcef_dll_wrapper.lib in debug and release).

The compilation got successful, then it asked for libcef.dll. I put the .dll in 
release and debug folder. Now it is showing this error in debug mode (attach 
file).

Original comment by costa.ma...@gmail.com on 23 Jan 2014 at 3:36

Attachments:

GoogleCodeExporter commented 9 years ago
You didn't paste the stacktrace.

You probably mixed Release/Debug binary files.

Or you didn't copy all required binary files (the locales directory, cef.pak, 
devtools_resources.pak).

Original comment by czarek.t...@gmail.com on 23 Jan 2014 at 3:44

GoogleCodeExporter commented 9 years ago
Solved! Running 100% :)

The problem is that some files are missing: the locales directory, cef.pak, 
devtools_resources.pak, all .dll from cef release/debug folder and php-cgi.exe 
with its dlls and extensions.

I would like to very thank to you and wish that the resolution of my problems 
also serve to others who have the same difficulty.

Marcelito Costa.

Original comment by costa.ma...@gmail.com on 23 Jan 2014 at 5:49

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 24 Jan 2014 at 3:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:37

GoogleCodeExporter commented 9 years ago
Created BuildOnWindows wiki page with step by step instructions.

Original comment by czarek.t...@gmail.com on 26 Nov 2014 at 5:55