compiler error using cmake

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.

compiler error using cmake

Postby CaiHuan » Tue Nov 25, 2014 3:12 am

Linking CXX static library libcef_dll_wrapper.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcef_dll_wrapper.a(cef_atomicops_x86_gcc.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcef_dll_wrapper.a(libcef_dll_wrapper2.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcef_dll_wrapper.a(cef_atomicops_x86_gcc.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcef_dll_wrapper.a(libcef_dll_wrapper2.cc.o) has no symbols
[ 71%] Built target libcef_dll_wrapper
Linking CXX executable "cefclient Helper.app/Contents/MacOS/cefclient Helper"
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: /Users/CaiHuan/Downloads/cef_binary_3.2171.1919_macosx64/cefclient/Release/cefclient Helper.app/Contents/MacOS/cefclient Helper (No such file or directory)
make[2]: *** [cefclient/cefclient Helper.app/Contents/MacOS/cefclient Helper] Error 1
make[1]: *** [cefclient/CMakeFiles/cefclient Helper.dir/all] Error 2

when i use make after cmake CMakeListFile.txt
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: compiler error using cmake

Postby magreenblatt » Tue Nov 25, 2014 12:09 pm

What commands did you run? What XCode version are you using?
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: compiler error using cmake

Postby CaiHuan » Wed Nov 26, 2014 1:10 am

magreenblatt wrote:What commands did you run? What XCode version are you using?

cmake and make~xCode version is 6.1(6A1052D)
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: compiler error using cmake

Postby CaiHuan » Thu Dec 04, 2014 2:08 am

can anybody help me?
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: compiler error using cmake

Postby CaiHuan » Thu Dec 04, 2014 8:18 am

i'm try Dev channel (trunk)Mac 64bit and Branch 2171 Mac 64bit~use cmake and make command~ but it does't work
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: compiler error using cmake

Postby CaiHuan » Thu Dec 04, 2014 8:21 am

CaiHuan wrote:i'm try Dev channel (trunk)Mac 64bit and Branch 2171 Mac 64bit~use cmake and make command~ but it does't work

same problem
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: compiler error using cmake

Postby magreenblatt » Thu Dec 04, 2014 8:51 am

CaiHuan wrote:i'm try Dev channel (trunk)Mac 64bit and Branch 2171 Mac 64bit~use cmake and make command~ but it does't work

Make is not supported on OS X. You need to use Xcode or Ninja. This works for me using Xcode 6.0.1 on OS X 10.9.5:

Code: Select all
cd /Users/marshall/Downloads/cef_binary_3.2217.1940_macosx64
mkdir build
cd build
cmake -G "Xcode" -DPROJECT_ARCH="x86_64" ..
xcodebuild -project cef.xcodeproj -target cefclient
open ./cefclient/Debug/cefclient.app
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 41 guests