bbshocking / libjingle

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

devicemanager.h contains Create() function but function is not defined in devicemanager.cc #338

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download libjingle-0.6.14. Copy talk folder in mylibjingle folder.
2. Update paths to libraries in VS 2010 environment.
3. Compile VS 2010 project.

What is the expected output? What do you see instead?

2>callclient.obj : error LNK2019: unresolved external symbol "public: static 
class cricket::DeviceManagerInterface * __cdecl 
cricket::DeviceManagerFactory::Create(void)" 
(?Create@DeviceManagerFactory@cricket@@SAPAVDeviceManagerInterface@2@XZ) 
referenced in function "private: void __thiscall CallClient::InitMedia(void)" 
(?InitMedia@CallClient@@AAEXXZ)

Above is one of four linker errors.

What version of the product are you using? On what operating system?
libjingle 0.6.14, win7 x64

Please provide any additional information below.
Create() function is producing linker error. Function is declared but not 
defined.

Original issue reported on code.google.com by alek.i.m...@gmail.com on 17 Apr 2012 at 3:15

Attachments:

GoogleCodeExporter commented 9 years ago
I have this problem too,can somebody help us? thanks.
By the way, why Google did not give  us a vs2010 solution directly? Then lots 
of problems in the issues can be solved.And I strongly recommend it.

Original comment by Yimin.Xu...@gmail.com on 18 Jun 2012 at 9:02

GoogleCodeExporter commented 9 years ago
Hello, everybody!
I have the same 4 errors.
Plz help us to solve this problem.
Thanks.

Original comment by duc...@tin180.com on 22 Jun 2012 at 2:08

GoogleCodeExporter commented 9 years ago
From that point i tried to solve the error 2019:
error LNK2019: unresolved external symbol "public: static class 
cricket::DeviceManagerInterface * __cdecl 
cricket::DeviceManagerFactory::Create(void)" 
(?Create@DeviceManagerFactory@cricket@@SAPAVDeviceManagerInterface@2@XZ) 
referenced in function "private: void __thiscall CallClient::InitMedia(void)" 
(?InitMedia@CallClient@@AAEXXZ)

I tried:
1. to change the code C++ in the callclient.cc, in detail in tried to call 
cricket::DeviceManagerFactory::Create() to create a devicemanagerintergace 
object like mediaengineinterface ( this call create wont cause the error, but 
the 2 classes are similar to declare and initialize).
 but it still cause the LNK2019.
2. to add all necessary lib in the reference, but it still cause LNK2019. 
3. to change many other things... but still not successful.

I think there are some problems when linking from Call project (e.g. 
mylibjingle) into the jingle.lib).
I think it is not in the code, but there is another reason when linking.
Who is interested in the problem, we can make a team for that, my email is: 
ductai@tin180.com.
Thanks.

Original comment by duc...@tin180.com on 26 Jun 2012 at 2:35

GoogleCodeExporter commented 9 years ago
After 4,5 days hard worked with the solution Mylibjingle, I built mylibjingle 
successfully.
Here is my method:
Check file libjingle.scons, we'll see the list of all files that built by Scons.
In line:
talk.Library(env, name = "jingle",...)
there will be source of some platforms, look at these lines:
 srcs = [
               "base/asyncfile.cc",
               "base/asynchttprequest.cc",
               "base/asyncsocket.cc",
               "base/asynctcpsocket.cc",
               "base/asyncudpsocket.cc",
               "base/autodetectproxy.cc",
               "base/bandwidthsmoother.cc",
               "base/base64.cc",
...
]

We'll compare all the files in solution mylibjingle and in this list, there are 
many files was built in libjingle.scons but hasn't added into our solution 
Mylibjingle. 
We just add all classes (file .cc + file .h) that has in this list but has no 
in the list of solution.
Then rebuild again. I got the result "mylibjingle.exe" as "call.exe" built by 
Scons.

Original comment by duc...@tin180.com on 26 Jun 2012 at 9:52

GoogleCodeExporter commented 9 years ago
Thanks it worked for me , appreciated 

Original comment by sumit1...@gmail.com on 20 Jul 2012 at 9:43

GoogleCodeExporter commented 9 years ago
Can anybody give me the successfully built solution? My email: 
yimin.xu1988@gmail.com.
Thanks very much.

Original comment by Yimin.Xu...@gmail.com on 7 Aug 2012 at 9:00

GoogleCodeExporter commented 9 years ago
can you give me a copy of the successfully build solution?
email: cloudliu2000@gmail.com

thank you very much.

Original comment by cloudliu...@gmail.com on 16 Sep 2012 at 2:41

GoogleCodeExporter commented 9 years ago
can you give me a copy of the successfully build solution?
email: crykiss@gmail.com

thank you very much.

Original comment by cryk...@gmail.com on 18 Sep 2012 at 7:28

GoogleCodeExporter commented 9 years ago
I am trying to build this solution on VS2012 and getting same linking errors.
can you give me a copy of the successfully build solution?
email: vaidehi25@hotmail.com

Thanks a lot in advance.

Original comment by vaidehi....@gmail.com on 7 Oct 2012 at 10:38

GoogleCodeExporter commented 9 years ago
After adding all source files mentioned in libjingle.scons, I am getting some 
more linking errors. Please check attached error log file.

Any idea how to fix this?

Original comment by vaidehi....@gmail.com on 8 Oct 2012 at 2:24

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
One more vote for at Visual Studio solution that can compile out of the box :). 
/ Anders Both .

Original comment by and...@basechat.com on 3 Dec 2012 at 10:14

GoogleCodeExporter commented 9 years ago
can you give me a build solution?
email: jjacko3@gmail.com

thank you very much.

Original comment by jjac...@gmail.com on 2 Jan 2013 at 11:47