Problem Compiling Release (Chromium Embedded Framework)

General questions regarding the usage of CodeLite
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

Problem Compiling Release (Chromium Embedded Framework)

Post by 5k3105 »

Hi all,
I just wanted to make sure I wasn't doing something stupid in CodeLite before I ask a question in the CEF forums. Attempting to build the first demo 'cefsimple' as Release.
CodeLite v5.3 on Win 7.

Linker Library Paths:
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/Release
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
Resources Include Paths:
C:\Users\5K3105\Desktop\cef_binary_3.1768.1561_windows32\include
C:\Users\5K3105\Desktop\cef_binary_3.1768.1561_windows32\cefsimple
Compiler Include Paths:
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 6 -e -f  Makefile"
"----------Building project:[ CEFd1 - Release ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
mingw32-make.exe[1]: Leaving directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
mingw32-make.exe[1]: Entering directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/cefsimple_win.cpp" -O2 -Wall  -o ./Release/cefsimple_cefsimple_win.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/simple_app.cpp" -O2 -Wall  -o ./Release/cefsimple_simple_app.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/simple_handler.cpp" -O2 -Wall  -o ./Release/cefsimple_simple_handler.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32
g++ -o ./Release/CEFd1 @"CEFd1.txt" -L. -LC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/Release -LC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0xdc): undefined reference to `CefExecuteProcess(CefMainArgs const&, CefRefPtr<CefApp>, void*)'
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0x1cf): undefined reference to `CefInitialize(CefMainArgs const&, CefStructBase<CefSettingsTraits> const&, CefRefPtr<CefApp>, void*)'
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0x1f8): undefined reference to `CefRunMessageLoop()'
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0x205): undefined reference to `CefShutdown()'
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0x239): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0x248): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0x257): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0x266): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0x275): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_cefsimple_win.o:cefsimple_win.cpp:(.text+0x284): more undefined references to `cef_string_utf16_clear' follow
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x4b): undefined reference to `CefCurrentlyOn(cef_thread_id_t)'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x100): undefined reference to `cef_string_utf8_to_utf16'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x1aa): undefined reference to `cef_string_utf16_set'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x283): undefined reference to `CefCommandLine::GetGlobalCommandLine()'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x31c): undefined reference to `cef_string_utf8_to_utf16'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x4fe): undefined reference to `cef_string_utf8_to_utf16'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x574): undefined reference to `CefBrowserHost::CreateBrowserSync(CefWindowInfo const&, CefRefPtr<CefClient>, CefStringBase<CefStringTraitsUTF16> const&, CefStructBase<CefBrowserSettingsTraits> const&, CefRefPtr<CefRequestContext>)'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x714): undefined reference to `cef_string_utf16_to_utf8'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x7df): undefined reference to `cef_string_utf8_clear'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x803): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x873): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x8e0): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x904): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x928): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_simple_app.o:simple_app.cpp:(.text+0x94c): more undefined references to `cef_string_utf16_clear' follow
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x77): undefined reference to `CefCurrentlyOn(cef_thread_id_t)'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x1bd): undefined reference to `CefPostTask(cef_thread_id_t, CefRefPtr<CefTask>)'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x2d8): undefined reference to `CefCurrentlyOn(cef_thread_id_t)'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x412): undefined reference to `CefQuitMessageLoop()'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x52c): undefined reference to `CefCurrentlyOn(cef_thread_id_t)'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x663): undefined reference to `CefCurrentlyOn(cef_thread_id_t)'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x872): undefined reference to `cef_string_utf16_to_utf8'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x8c6): undefined reference to `cef_string_utf8_clear'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x91f): undefined reference to `cef_string_utf16_to_utf8'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0x973): undefined reference to `cef_string_utf8_clear'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0xbef): undefined reference to `cef_string_utf8_to_utf16'
./Release/cefsimple_simple_handler.o:simple_handler.cpp:(.text+0xf6a): undefined reference to `cef_string_utf16_clear'
./Release/cefsimple_simple_handler_win.o:simple_handler_win.cpp:(.text+0x44): undefined reference to `CefCurrentlyOn(cef_thread_id_t)'
c:/mingw-4.7.1/bin/../lib/gcc/mingw32/4.7.1/../../../libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Release/CEFd1] Error 1
mingw32-make.exe: *** [All] Error 2
CEFd1.mk:79: recipe for target `Release/CEFd1' failed
mingw32-make.exe[1]: Leaving directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
Makefile:4: recipe for target `All' failed
39 errors, 0 warnings
Thanks!
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem Compiling Release (Chromium Embedded Framework)

Post by 5k3105 »

Attempting to make the other demo 'cefclient' I get this, which is very similar to the first demo because
- cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' - was my first error before I commented out the line originally :)

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 6 -e -f  Makefile"
"----------Building project:[ CEFd2 - Release ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd2'
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/binding_test.cpp" -O2 -Wall  -o ./Release/cefclient_binding_test.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32 -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient.cpp" -O2 -Wall  -o ./Release/cefclient_cefclient.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32 -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_osr_widget_win.cpp" -O2 -Wall  -o ./Release/cefclient_cefclient_osr_widget_win.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32 -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp" -O2 -Wall  -o ./Release/cefclient_cefclient_win.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32 -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/client_app.cpp" -O2 -Wall  -o ./Release/cefclient_client_app.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32 -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/client_app_delegates.cpp" -O2 -Wall  -o ./Release/cefclient_client_app_delegates.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32 -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
In file included from C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_osr_widget_win.cpp:10:0:
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/resource.h:58:0: warning: "_X86_" redefined [enabled by default]
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_osr_widget_win.cpp:1:0: note: this is the location of the previous definition
In file included from C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:20:0:
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/resource.h:58:0: warning: "_X86_" redefined [enabled by default]
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:1:0: note: this is the location of the previous definition
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:31:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp: In function 'LRESULT WndProc(HWND, UINT, WPARAM, LPARAM)':
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:319:23: error: 'wcscpy_s' was not declared in this scope
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:343:17: error: cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' for argument '2' to 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:349:20: error: cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' for argument '2' to 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:356:19: error: cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' for argument '2' to 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:363:17: error: cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' for argument '2' to 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:369:17: error: cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' for argument '2' to 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:434:41: error: cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' for argument '2' to 'int MessageBoxA(HWND, LPCSTR, LPCSTR, UINT)'
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:451:41: error: cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' for argument '2' to 'int MessageBoxA(HWND, LPCSTR, LPCSTR, UINT)'
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:460:30: error: cannot convert 'WCHAR [80] {aka wchar_t [80]}' to 'LPSTR {aka char*}' in assignment
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:547:54: warning: passing NULL to non-pointer argument 4 of 'BOOL PostMessageA(HWND, UINT, WPARAM, LPARAM)' [-Wconversion-null]
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp: In function 'HWND__* CreateMessageWindow(HINSTANCE)':
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:654:22: error: cannot convert 'const wchar_t [20]' to 'LPCSTR {aka const char*}' in assignment
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:657:10: error: 'HWND_MESSAGE' was not declared in this scope
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefclient/cefclient_win.cpp:659:1: warning: control reaches end of non-void function [-Wreturn-type]
mingw32-make.exe[1]: *** [Release/cefclient_cefclient_win.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
CEFd2.mk:120: recipe for target `Release/cefclient_cefclient_win.o' failed
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd2'
Makefile:4: recipe for target `All' failed
11 errors, 9 warnings
User avatar
Jarod42
CodeLite Expert
Posts: 237
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Problem Compiling Release (Chromium Embedded Framework)

Post by Jarod42 »

Code: Select all

g++ -o ./Release/CEFd1 @"CEFd1.txt" -L. -LC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/Release -LC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
You forget to add library you use (You just provide directory path...):
BTW `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include` seems strange as Library Path (Linker Options) (I think it should only be in Include Path (Compiler options)).
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem Compiling Release (Chromium Embedded Framework)

Post by 5k3105 »

Thanks Jarod.
Linker Libraries: C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/Release/libcef.lib
It now compiles, but only when I comment out the line:
SetWindowText(hwnd, std::wstring(title).c_str());
Also, it compiles the files but produces no executable?

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 6 -e -f  Makefile"
"----------Building project:[ CEFd1 - Release ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
mingw32-make.exe[1]: Leaving directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
mingw32-make.exe[1]: Entering directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/simple_handler_win.cpp" -O2 -Wall  -o ./Release/cefsimple_simple_handler_win.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/libcef_dll/wrapper -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/libcef_dll -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32 -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/include
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/simple_handler_win.cpp: In member function 'virtual void SimpleHandler::OnTitleChange(CefRefPtr<CefBrowser>, const CefString&)':
C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/simple_handler_win.cpp:18:50: error: cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' for argument '2' to 'BOOL SetWindowTextA(HWND, LPCSTR)'
mingw32-make.exe[1]: *** [Release/cefsimple_simple_handler_win.o] Error 1
mingw32-make.exe: *** [All] Error 2
CEFd1.mk:118: recipe for target `Release/cefsimple_simple_handler_win.o' failed
mingw32-make.exe[1]: Leaving directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
Makefile:4: recipe for target `All' failed
1 errors, 0 warnings
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem Compiling Release (Chromium Embedded Framework)

Post by 5k3105 »

I got as far as finding out that I needed to add #define UNICODE 1 before my includes for it to recognize MinGW SetWindowText call. So there are no more errors or warnings, it just won't compile. It says it can't find the library now?
cannot find -lC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/Release/libcef.lib

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 6 -e -f  Makefile"
"----------Building project:[ CEFd1 - Release ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/cefsimple_win.cpp" -O2 -Wall  -o ./Release/cefsimple_cefsimple_win.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/simple_app.cpp" -O2 -Wall  -o ./Release/cefsimple_simple_app.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/simple_handler.cpp" -O2 -Wall  -o ./Release/cefsimple_simple_handler.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32
g++  -c  "C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/cefsimple/simple_handler_win.cpp" -O2 -Wall  -o ./Release/cefsimple_simple_handler_win.o -I. -IC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32
g++ -o ./Release/CEFd1 @"CEFd1.txt" -L.  -lC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/Release/libcef.lib
c:/mingw-4.7.1/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lC:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/Release/libcef.lib
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Release/CEFd1] Error 1
CEFd1.mk:79: recipe for target `Release/CEFd1' failed
mingw32-make.exe[1]: Leaving directory `C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/CEFd1'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target `All' failed
0 errors, 0 warnings
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem Compiling Release (Chromium Embedded Framework)

Post by eranif »

You are mixing between gcc and VC

Code: Select all

C:/Users/5K3105/Desktop/cef_binary_3.1768.1561_windows32/Release/libcef.lib
The above is a Visual Studio library ( at least by looking at the lib extension ".lib")


Eran
Make sure you have read the HOW TO POST thread
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem Compiling Release (Chromium Embedded Framework)

Post by 5k3105 »

Ah. Thanks. I just found the tutorial and I'll try to decipher it: https://code.google.com/p/chromiumembed ... i/Tutorial
  • Windows
    Compile the libcef_dll_wrapper static library.
    Compile/link cefsimple.exe.
    Required source code files include: cefsimple_win.cpp, simple_app.cpp, simple_handler.cpp, simple_handler_win.cpp.
    Required link libraries include: comctl32.lib, shlwapi.lib, rcprt4.lib, libcef_dll_wrapper.lib, libcef.lib, cef_sandbox.lib. Note that cef_sandbox.lib (required for sandbox support) is a static library currently built with Visual Studio 2010 and it may not compile with other Visual Studio versions. You can disable sandbox support by setting CEF_ENABLE_SANDBOX to 0 in cefsimple_win.cpp.
    Resource file is cefsimple.rc.
    Manifest files are cefsimple.exe.manifest and compatibility.manifest.
    Copy all files from the Resources directory to the output directory.
    Copy all files from the Debug/Release directory to the output directory.

    The resulting directory structure looks like this:

    Application/
    cefsimple.exe <= cefsimple application executable
    libcef.dll <= main CEF library
    icudt.dll <= ICU unicode support library
    ffmpegsumo.dll <= HTML5 audio/video support library
    libEGL.dll, libGLESv2.dll, … <= accelerated compositing support libraries
    cef.pak, devtools_resources.pak <= non-localized resources and strings
    locales/
    en-US.pak, … <= locale-specific resources and strings
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem Compiling Release (Chromium Embedded Framework)

Post by 5k3105 »

Baah. Judging from this post http://www.magpcss.org/ceforum/viewtopi ... ngw#p18505 they only want Visual Studio guys running this thing. Oh well.
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem Compiling Release (Chromium Embedded Framework)

Post by 5k3105 »

I think I have one last stupid question about this (sorry).

At this link (http://code.google.com/p/cefpython/wiki ... F3_Windows) I can download compiled CEF. It has all the DLLs listed in the application setup tutorial:
  • Application/
    cefsimple.exe <= cefsimple application executable
    libcef.dll <= main CEF library
    icudt.dll <= ICU unicode support library
    ffmpegsumo.dll <= HTML5 audio/video support library
    libEGL.dll, libGLESv2.dll, … <= accelerated compositing support libraries
    cef.pak, devtools_resources.pak <= non-localized resources and strings
    locales/
    en-US.pak, … <= locale-specific resources and strings
Can I use these to write my C++ application against?

It's obvious I still don't understand the 'make' topic. Besides the make manual, are there any simple introductions that will make this crystal clear? Neither of my C++ books cover this at all :( Thanks. In Vb I could sometimes use LoadLib to load DLLs and use all the functions.
5k3105
CodeLite Enthusiast
Posts: 22
Joined: Tue Sep 17, 2013 11:44 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem Compiling Release (Chromium Embedded Framework)

Post by 5k3105 »

I'm finding this guide useful.
An Introduction to GCC: http://www.network-theory.co.uk/docs/gc ... index.html
Post Reply