unfrev / cefpython

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

Compilation error on Linux - LOG_DEBUG.h issues #146

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to compile the cefpython (python compile.py), I follow this 
tutorial to the end step by step 
https://code.google.com/p/cefpython/wiki/BuildOnLinux#Build_instructions_for_Lin
ux
but I have not been able to compile I check the binaries_32bits but the 
cefpython_py27.so file is not there

I am trying to compile CEFPYTHON I am using CEF3 Ubuntu 12.04 32bits 

the last error I get when I use the command:
cd ~/cefpython/cefpython/cef3/linux/
python compile.py
I attached the ouput:

PYVERSION = 27
BITS = 32bit
Compiling C++ projects
g++ -fPIC -I./../ -I/usr/include/python2.7 -I/usr/include/gtk-2.0 
-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -g -c PaintBuffer.cpp -o 
PaintBuffer.o
ar rcs libcpp_utils.a PaintBuffer.o
g++ -g -fPIC -Wall -Werror -I./../ -I/usr/include/python2.7 
-I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/gtk-2.0/include 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -c client_handler.cpp -o 
client_handler.o
In file included from client_handler.cpp:10:0:
./../LOG_DEBUG.h: En la función ‘std::string NowTime()’:
./../LOG_DEBUG.h:199:5: error: ‘sprintf’ no es un miembro de ‘std’
./../LOG_DEBUG.h:199:5: nota: alternativa sugerida:
/usr/include/stdio.h:365:12: nota:   ‘sprintf’
client_handler.cpp: En la función miembro ‘virtual void 
ClientHandler::OnAfterCreated(CefRefPtr<CefBrowser>)’:
client_handler.cpp:192:43: error: ‘LifespanHandler_OnAfterCreated’ no se 
declaró en este ámbito
client_handler.cpp: En la función miembro ‘virtual bool 
ClientHandler::RunModal(CefRefPtr<CefBrowser>)’:
client_handler.cpp:203:44: error: ‘LifespanHandler_RunModal’ no se declaró 
en este ámbito
client_handler.cpp: En la función miembro ‘virtual bool 
ClientHandler::DoClose(CefRefPtr<CefBrowser>)’:
client_handler.cpp:267:43: error: ‘LifespanHandler_DoClose’ no se declaró 
en este ámbito
client_handler.cpp:268:1: error: el control alcanza el final de una función 
que no es void [-Werror=return-type]
client_handler.cpp: En la función miembro ‘virtual bool 
ClientHandler::RunModal(CefRefPtr<CefBrowser>)’:
client_handler.cpp:204:1: error: el control alcanza el final de una función 
que no es void [-Werror=return-type]
cc1plus: all warnings being treated as errors
make: *** [client_handler.o] Error 1
make failed, press 'y' to continue, 'n' to stop: y
g++ -g -fPIC -Wall -Werror -DBROWSER_PROCESS -I./../ -I/usr/include/python2.7 
-I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/gtk-2.0/include 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -c cefpython_app.cpp -o 
cefpython_app.o
cefpython_app.cpp:16:21: error fatal: LOG_DEBUG: No existe el archivo o el 
directorio
compilación terminada.
make: *** [cefpython_app.o] Error 1
make failed, press 'y' to continue, 'n' to stop: y
# -fPIC is required only for libraries included by Cython.
g++ -g -Wall -Werror -DRENDERER_PROCESS -I./../ -I/usr/include/python2.7 
-I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/gtk-2.0/include 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -L./../linux/setup/lib_64bit 
-L./../linux/setup/lib_32bit -L./../linux/binaries_64bit 
-L./../linux/binaries_32bit main.cpp cefpython_app.cpp \
        v8function_handler.cpp v8utils.cpp javascript_callback.cpp \
        -lcef_dll_wrapper -lcef -o subprocess -Wl,-rpath,.
cefpython_app.cpp:16:21: error fatal: LOG_DEBUG: No existe el archivo o el 
directorio
compilación terminada.
make: *** [subprocess] Error 1
make failed, press 'y' to continue, 'n' to stop: y

Removing old pyx files in /setup/: []
Copying .pyx files to /setup/: ['../../../request_handler_cef3.pyx', 
'../../../window_utils_linux.pyx', '../../../callback_cef3.pyx', 
'../../../network_error_cef3.pyx', '../../../frame.pyx', 
'../../../request_handler_cef1.pyx', '../../../v8context_handler_cef1.pyx', 
'../../../response_cef3.pyx', '../../../v8function_handler_cef3.pyx', 
'../../../keyboard_handler_cef1.pyx', '../../../display_handler_cef1.pyx', 
'../../../paint_buffer_cef1.pyx', '../../../display_handler_cef3.pyx', 
'../../../render_handler_cef1.pyx', '../../../drag_data.pyx', 
'../../../imports.pyx', '../../../v8function_handler_cef1.pyx', 
'../../../string_utils_win.pyx', '../../../virtual_keys.pyx', 
'../../../content_filter.pyx', '../../../drag_handler.pyx', 
'../../../http_authentication_win.pyx', '../../../browser.pyx', 
'../../../cookie_cef1.pyx', '../../../stream.pyx', '../../../command_line.pyx', 
'../../../keyboard_handler_cef3.pyx', '../../../load_handler_cef3.pyx', 
'../../../render_handler_cef3.pyx', '../../../response_cef1.pyx', 
'../../../settings.pyx', '../../../string_visitor_cef3.pyx', 
'../../../javascript_callback_cef1.pyx', '../../../paint_buffer_cef3.pyx', 
'../../../lifespan_handler_cef1.pyx', '../../../web_request_cef1.pyx', 
'../../../process_message_utils.pyx', '../../../load_handler_cef1.pyx', 
'../../../javascript_callback_cef3.pyx', '../../../window_utils_win.pyx', 
'../../../request_cef1.pyx', '../../../app.pyx', 
'../../../javascript_dialog_handler.pyx', '../../../network_error_cef1.pyx', 
'../../../utils.pyx', '../../../time_utils.pyx', 
'../../../download_handler.pyx', '../../../python_callback_cef3.pyx', 
'../../../window_info_cef1.pyx', '../../../python_callback_cef1.pyx', 
'../../../window_info_cef3.pyx', '../../../web_plugin_info_cef3.pyx', 
'../../../request_cef3.pyx', '../../../resource_handler_cef3.pyx', 
'../../../lifespan_handler_cef3.pyx', '../../../cookie_cef3.pyx', 
'../../../string_utils.pyx', '../../../v8context_handler_cef3.pyx', 
'../../../v8utils_cef1.pyx', '../../../javascript_bindings.pyx', 
'../../../dpi_aware_win.pyx', '../../../web_request_cef3.pyx', 
'../../../browser_process_handler_cef3.pyx', '../../../task.pyx']
Fixing includes in .pyx files:
WARNING: 'except *' missing in a cdef/cpdef function, in file string_utils.pyx 
on line 48
ERROR

Original issue reported on code.google.com by julian.c...@musicar.com on 1 Dec 2014 at 10:24

GoogleCodeExporter commented 8 years ago
It's a known issue, there is a note on how to resolve it on the Download page:

  When building from sources use CEF Python revision c1260fb985e6, 
  as later commits were tested only on Windows.

Original comment by czarek.t...@gmail.com on 2 Dec 2014 at 6:21

GoogleCodeExporter commented 8 years ago

Original comment by czarek.t...@gmail.com on 2 Dec 2014 at 6:22

GoogleCodeExporter commented 8 years ago
I've moved the note to the BuildOnLinux wiki page.

Original comment by czarek.t...@gmail.com on 2 Dec 2014 at 6:26

GoogleCodeExporter commented 8 years ago
Fixed in revision 1ea7723b8bb3.

Original comment by czarek.t...@gmail.com on 3 Dec 2014 at 5:19

GoogleCodeExporter commented 8 years ago
Hello thanks for your help

I tried to compile the revision 1ea7723b8bb3 and also revision c1260fb985e6, 
but I got another error that I have not been able to fix

File "/usr/local/lib/python2.7/dist-packages/cython.py", line 24, in <module>
    from Cython import load_ipython_extension
ImportError: cannot import name load_ipython_extension

I try installing ipyhton first using sudo apt-get but no luck I tried to read 
in some forums but I have not been able to find the answer

I also tried updating Cython to latest version but I got the same result  

Original comment by julian.c...@musicar.com on 3 Dec 2014 at 8:28

GoogleCodeExporter commented 8 years ago
You can't use the latest version of Cython, see:
https://code.google.com/p/cefpython/wiki/BuildOnLinux#Install_Cython

Also https://code.google.com/p/cefpython/issues/detail?id=110

Original comment by czarek.t...@gmail.com on 3 Dec 2014 at 8:44

GoogleCodeExporter commented 8 years ago
Thank you very much I could compile with no problem, I have some dependencies I 
have to solve to run the demo wxpython.py but it is fine 

Original comment by julian.c...@musicar.com on 4 Dec 2014 at 2:14

GoogleCodeExporter commented 8 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/cefpython/issues/146

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 6:41