Where did i make error?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Where did i make error?

Postby owlprince » Fri Jul 14, 2017 12:16 am

I am still struggling for install cefpython3 on Raspberry Pi
my RPi's OS and kernel version is shown below.
Code: Select all
root@raspberrypi:~/cefpython/build# grep . /etc/*-release
 PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
 NAME="Raspbian GNU/Linux"
 VERSION_ID="7"
 VERSION="7 (wheezy)"
 ID=raspbian
 ID_LIKE=debian
 ANSI_COLOR="1;31"
 HOME_URL="http://www.raspbian.org/"
 SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
 BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

root@raspberrypi:~/cefpython/build# cat /proc/version
 Linux version 4.1.19-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #858 SMP Tue Mar 15 15:56:00 GMT 2016


Because not good at linux, (I am with google only)
I tracked instruction of linux quick build using automated builds[1] and read issues (#267[2],#1990[3] and related ones).
then change codes by request #305[4] for arm build on RPi(arm).
(Requrements in instruction above are installed. but I think some codes in #305 are not suitable for lastest clone.)

Then, two python codes say I cant because have not libraries.

log of automate.py
Code: Select all
root@raspberrypi:~/cefpython/build# python ../tools/automate.py --prebuilt-cef --arm-build
[automate.py] Build cef projects...
[automate.py] Create build_cefclient/ dir in cef_binary*/ dir
[automate.py] Skip built: cefclient, cefsimple, ceftests
Traceback (most recent call last):
  File "../tools/automate.py", line 1067, in <module>
    main()
  File "../tools/automate.py", line 137, in main
    prebuilt_cef()
  File "../tools/automate.py", line 280, in prebuilt_cef
    create_prebuilt_binaries()
  File "../tools/automate.py", line 817, in create_prebuilt_binaries
    libdir)
  File "/usr/lib/python2.7/shutil.py", line 119, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/root/cefpython/build/chromium/src/out/Release_GN_arm/obj/cef/libcef_dll_wrapper.a'


log of build.py
Code: Select all
root@raspberrypi:~/cefpython# python tools/build.py 57.0 --fast
[build.py] Parse command line arguments
[build.py] FAST mode On
[build.py] VERSION=57.0
[build.py] Python version: 2.7.3 32bit
[build.py] Python executable: /usr/bin/python
[build.py] PYVERSION = 27
[build.py] OS_POSTFIX2 = linuxarm
[build.py] Check Cython version
[build.py] Cython version: 0.25.2
[build.py] Check directories
[build.py] Setup environment variables
[build.py] PYTHON_INCLUDE: /usr/bin/../include/python2.7
[build.py] Fix cefpython API header file in the build_cefpython/ directory
[build.py] Compile C++ projects
[build.py] ~~ Build CLIENT_HANDLER project
make: 'libclient_handler.a' is up to date.
[build.py] ~~ Build LIBCEFPYTHONAPP project
make: 'libcefpythonapp.a' is up to date.
[build.py] ~~ Build SUBPROCESS project
# -fPIC is required only for libraries included by Cython.
[SUBPROCESS] Building the subprocess executable
g++-4.8 -DRENDERER_PROCESS -std=gnu++11 -DNDEBUG -Wall -Werror -O0 -I./../ -I./../common/ -I/usr/bin/../include/python2.7 -I/usr/include/gtk-2.0 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/glib-2.0 -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/gtk-2.0/include -I/usr/lib/x86_64-linux-gnu/gtk-unix-print-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/lib/i386-linux-gnu/gtk-unix-print-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/lib/arm-linux-gnueabihf/gtk-unix-print-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/lib64/gtk-unix-print-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/lib/gtk-2.0/gtk-unix-print-2.0 -I/usr/lib/glib-2.0/include -L/root/cefpython/build/cef57_3.2987.1601.gf035232_linuxarm/bin -L/root/cefpython/build/cef57_3.2987.1601.gf035232_linuxarm/lib main.cpp cefpython_app.cpp \
   v8function_handler.cpp v8utils.cpp javascript_callback.cpp \
   print_handler_gtk.cpp \
    \
   -lcef -lgobject-2.0 -lglib-2.0 -lgtk-x11-2.0 -lcef_dll_wrapper \
   -o subprocess -Wl,-rpath,@loader_path/
/usr/bin/ld: skipping incompatible /root/cefpython/build/cef57_3.2987.1601.gf035232_linuxarm/bin/libcef.so when searching for -lcef
/usr/bin/ld: cannot find -lcef
/usr/bin/ld: cannot find -lcef_dll_wrapper
collect2: error: ld returned 1 exit status
Makefile:52: recipe for target 'subprocess' failed
make: *** [subprocess] Error 1


That's very confusing.
Please tell me how can I solve this problem

References:
[1] https://github.com/cztomczak/cefpython/ ... -libraries
[2] https://github.com/cztomczak/cefpython/issues/267
[3] https://bitbucket.org/chromiumembedded/ ... mment-None
[4] https://github.com/cztomczak/cefpython/ ... diff=split
owlprince
Newbie
 
Posts: 5
Joined: Sun Jul 09, 2017 8:37 pm

Re: Where did i make error?

Postby Czarek » Fri Jul 14, 2017 12:37 am

PR #305 was closed, because it was not working, as stated in this comment:
https://github.com/cztomczak/cefpython/ ... -283384377

A more appropriate place for this question would be on the CEF Python Forum.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Where did i make error?

Postby owlprince » Fri Jul 14, 2017 12:50 am

I see.

I need to start from first... make toolchain.

I hope to tell good results.

p.s. I think CEFPython Forum is closed...
Can I change Forum of this question or Make a new post at CEFPy Forum?

Czarek wrote:PR #305 was closed, because it was not working, as stated in this comment:
https://github.com/cztomczak/cefpython/ ... -283384377

A more appropriate place for this question would be on the CEF Python Forum.
owlprince
Newbie
 
Posts: 5
Joined: Sun Jul 09, 2017 8:37 pm

Re: Where did i make error?

Postby Czarek » Fri Jul 14, 2017 1:54 am

See CEF Python's README on github, it includes link to the new forum.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 40 guests