Cannot Build when including DvAvOpenhomeOrgVolume1Std
|
29-10-2015, 07:10 PM
(This post was last modified: 30-10-2015 08:53 AM by Trolley01.)
Post: #1
|
|||
|
|||
Cannot Build when including DvAvOpenhomeOrgVolume1Std
I'm having trouble getting an implementation of the Volume provider to build. I have the following simple class defined, and get an error when building about an undefined reference. Do I need to include another header file somewhere?
The code that I am using and trying to build is: Code: #include <OpenHome/Net/Cpp/DvDevice.h> The results that I get when I build are: Code: /bin/sh -c '/usr/bin/make -j2 -e -f Makefile' |
|||
30-10-2015, 05:11 PM
Post: #2
|
|||
|
|||
RE: Cannot Build when including DvAvOpenhomeOrgVolume1Std
(29-10-2015 07:10 PM)Trolley01 Wrote: I'm having trouble getting an implementation of the Volume provider to build. I have the following simple class defined, and get an error when building about an undefined reference. Do I need to include another header file somewhere? The errors are at link rather than compile time so are related to the libraries you're linking to, or their contents. Your code and headers included look fine. I'm not immediately sure what's causing your errors. Are you using the latest code from both the ohNet and ohNetGenerated repos? Can you post the makefile you're using to build? |
|||
30-10-2015, 05:22 PM
Post: #3
|
|||
|
|||
RE: Cannot Build when including DvAvOpenhomeOrgVolume1Std
There isn't a makefile per se as it is being built using CodeLite using the options specified.
This was done using a clone of the repository from a couple of days ago. Is there a built set of OhNetGenerated libraries that I can download from somewhere to test with? Would rule out the build process on my machine then. I might try starting from scratch, re-cloning the repo and seeing what happens. |
|||
02-11-2015, 12:02 PM
Post: #4
|
|||
|
|||
RE: Cannot Build when including DvAvOpenhomeOrgVolume1Std
(30-10-2015 05:22 PM)Trolley01 Wrote: Is there a built set of OhNetGenerated libraries that I can download from somewhere to test with? Would rule out the build process on my machine then. You can fetch generated binaries from the ohNet and ohNetGenerated directories under http://www.openhome.org/releases/artifacts/ . The easiest way to guarantee a compatible set of libraries would be to choose the latest code for ohNetGenerated and build it yourself using the ohNet binaries it declares a dependency on. (i.e. see ohNetGenerated's README for details on running 'go fetch') |
|||
11-11-2015, 06:14 PM
Post: #5
|
|||
|
|||
RE: Cannot Build when including DvAvOpenhomeOrgVolume1Std
I've just given it a try using the pre-built libraries that I downloaded. The files that I used were:
ohNet-1.4.1808-Linux-x64-Release.tar.gz ohNetGenerated-1.0.81-Linux-x64-Release.tar.gz I got exactly the same errors as what I got when I used the libraries that I compiled myself. Any further ideas what I am missing? Thanks, |
|||
25-11-2015, 01:23 PM
Post: #6
|
|||
|
|||
RE: Cannot Build when including DvAvOpenhomeOrgVolume1Std
Hi,
Just wondering if anyone else is able to replicate this issue? I have downloaded the files again, rebuilt, and still getting the same problems. The next thing that I am going to have to try is setting up a new vm as my dev environment in case I have something wrong in there. |
|||
25-11-2015, 01:53 PM
Post: #7
|
|||
|
|||
RE: Cannot Build when including DvAvOpenhomeOrgVolume1Std
(25-11-2015 01:23 PM)Trolley01 Wrote: Hi, Sorry, I still can't reproduce your problems. Rather than re-installing your VM, could you try creating a simple makefile that demonstrates the problem please? If you can provide a reproducible test case, it should be easy for us to diagnose the problem. |
|||
26-11-2015, 09:27 PM
(This post was last modified: 26-11-2015 09:30 PM by Trolley01.)
Post: #8
|
|||
|
|||
RE: Cannot Build when including DvAvOpenhomeOrgVolume1Std
(25-11-2015 01:53 PM)simonc Wrote: Sorry, I still can't reproduce your problems. Rather than re-installing your VM, could you try creating a simple makefile that demonstrates the problem please? If you can provide a reproducible test case, it should be easy for us to diagnose the problem. Here we go. I have attached a package containing a makefile and some simple code to demonstrate. I have just tried this with the latest prebuilt packages and am getting the same issue. |
|||
23-12-2015, 04:53 PM
Post: #9
|
|||
|
|||
RE: Cannot Build when including DvAvOpenhomeOrgVolume1Std
(26-11-2015 09:27 PM)Trolley01 Wrote:(25-11-2015 01:53 PM)simonc Wrote: Sorry, I still can't reproduce your problems. Rather than re-installing your VM, could you try creating a simple makefile that demonstrates the problem please? If you can provide a reproducible test case, it should be easy for us to diagnose the problem. Very late reply but just in case the issue is still relevant, you can fix it by changing the order and number of libraries you link to: Code: -lpthread -lohNetGeneratedDevices -lohNetGeneratedProxies -lTestFramework -lohNetCore |
|||
23-12-2015, 06:06 PM
Post: #10
|
|||
|
|||
RE: Cannot Build when including DvAvOpenhomeOrgVolume1Std
Thanks Simon, I hadn't realised that the order was so important.
The actual order that I had to use in the makefile that I sent as a sample was -lohNetGeneratedDevices -lohNetGeneratedProxies -lTestFramework -lohNetCore -lpthread Thanks again, |
|||
« Next Oldest | Next Newest »
|