I guess source code is wrong..

Having problems with building or using the JCEF Java binding? Ask your questions here.

I guess source code is wrong..

Postby david505 » Wed Jan 28, 2015 3:43 am

I got this compile error..

compile environment :

window 7 64bit
visual stuio 2013

Image


first problem..

callback->Continue(filePaths);

I go to solve Continue function's definition.

I found this!! but,
file_dialog_callback_ctocpp.cc :

Code: Select all
void CefFileDialogCallbackCToCpp::Continue(int selected_accept_filter,
    const std::vector<CefString>& file_paths) {
  if (CEF_MEMBER_MISSING(struct_, cont))
    return;

  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING

  // Verify param: selected_accept_filter; type: simple_byval
  DCHECK_GE(selected_accept_filter, 0);
  if (selected_accept_filter < 0)
    return;
  // Unverified params: file_paths

  // Translate param: file_paths; type: string_vec_byref_const
  cef_string_list_t file_pathsList = cef_string_list_alloc();
  DCHECK(file_pathsList);
  if (file_pathsList)
    transfer_string_list_contents(file_paths, file_pathsList);

  // Execute
  struct_->cont(struct_,
      selected_accept_filter,
      file_pathsList);

  // Restore param:file_paths; type: string_vec_byref_const
  if (file_pathsList)
    cef_string_list_free(file_pathsList);
}


you know.. it's different.. not same..

call Continue function parameters is one.

but, Continue function's definition parameters is two

void CefFileDialogCallbackCToCpp::Continue( int , const std::vector<CefString>& )

why happen..this problem...

I don't understand source code..
david505
Newbie
 
Posts: 9
Joined: Fri Jan 16, 2015 1:28 pm

Re: I guess source code is wrong..

Postby kaiklimke » Wed Jan 28, 2015 4:30 am

I guess you're using the wrong CEF version.
Please use that one specified in src/third_party/cef/README.jcef.

You'll get the right one at cefbuilds.com
kaiklimke
Techie
 
Posts: 19
Joined: Tue Oct 29, 2013 3:49 am

Re: I guess source code is wrong..

Postby david505 » Wed Jan 28, 2015 5:01 am

now I am using this file.

Image

is it wrong???

oops!! my mistake.

version is wrong...

I met error when I use CEF 3.2271.1997..

I try this again.

Name: Chromium Embedded Framework
Short Name: cef
URL: https://code.google.com/p/chromiumembedded/
Version: 3.2171.1902
License: BSD

Description:
CEF binary distribution. Download the CEF binary distribution, extract the
contents and rename the top-level directory as follows:

/linux32 - Contents of the 32-bit Linux distribution.
/linux64 - Contents of the 64-bit Linux distribution.
/macosx64 - Contents of the 64-bit Mac OS X distribution.
/win32 - Contents of the 32-bit Windows distribution.
/win64 - Contents of the 64-bit Windows distribution.

Local Modifications:
None.
david505
Newbie
 
Posts: 9
Joined: Fri Jan 16, 2015 1:28 pm

Re: I guess source code is wrong..

Postby kaiklimke » Wed Jan 28, 2015 5:14 am

Yes, that's wrong. You're trying to use the trunk Version (Branch 2271)
You have to use Branch 2171 and at least revision 1902 as defined here:
https://code.google.com/p/javachromiume ... EADME.jcef

Hint according the versioning:
First digit = 3 for CEF3
Second digit = Branch version of CEF
Third digit = Revision of CEF

You can click on "More Revisions" to get older revisions than 1979

wRA2aYF.png
wRA2aYF.png (160.75 KiB) Viewed 8486 times
kaiklimke
Techie
 
Posts: 19
Joined: Tue Oct 29, 2013 3:49 am

Re: I guess source code is wrong..

Postby david505 » Wed Jan 28, 2015 7:04 am

Ok thanks : )

I understand your advice. I will try again.
david505
Newbie
 
Posts: 9
Joined: Fri Jan 16, 2015 1:28 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 18 guests