Comments (4)
In fact, the only problem I'm having is that the generated .h
files are going somewhere else that I can't access on my main project which uses yours by doing add_subdirectory
. I just needed the include files to build mine. The simplest solution I can think of is adding the line
configure_file("${PROJECT_SOURCE_DIR}/src/rtptypes.h.in" "${PROJECT_BINARY_DIR}/src/rtptypes.h")
but with PROJECT_SOURCE_DIR
instead of PROJECT_BINARY_DIR
and for the other two configuration files add too.
Do you have a better idea?
from jrtplib.
A few thoughts:
- If you only need the headers, then you need to take care that the settings they use match those of the compiled library (so the rtpconfig.h should contain the settings that were used when actually compiling the library)
- In my opinion it's not a good idea to move the generated rtptypes.h and rtpconfig.h to the source directory: it would definitely mess things up when using different builds (with different settings) based on the same sources
But I don't really understand the problem. If I understand correctly, you need the headers, but not the compiled library in your project, right? Then where is the compiled library coming from? (You'll still need to link against it)
from jrtplib.
For the purpose of compiling and installing JRTPLIB I think the cmake file is great, the files are going to be installed into the system. If I want to compile a library that uses yours, like https://github.com/Ansersion/myRtspClient, I'd just include the installed header files from the system. However the compilation will use the headers generated for my system, not for other systems. That's ok in general but not for Android I guess.
In order to build for Android, there's no way of installing the headers into the system and then using them to build my project. The way I'm doing right now is to add JRTPLIB as a subdirectory to be built before the main project. However, the header files generated by JRTPLIB compilation are needed, so I added a dependency. I had to add a dependency to the shared library target, but it could be a simple dependency to the configure files (if possible).
Anyways, even for the shared library target I'm not being able to get the genrated headers because they are installed into a custom folder of the android project, but that has nothing to do with the main problem of needing the header files to build projects based on yours.
Do you have a better idea?
from jrtplib.
You say
In order to build for Android, there's no way of installing the headers into the system and then using them to build my project.
But why not? Why not build and install the library and header files in another location, and include those in your project?
from jrtplib.
Related Issues (20)
- Why traverse all fd instead of fd with data readable? Using "traverse all fd" strategy will lead to the following problems. When there are a large number of fd with no data readable in the m_destSockets queue, the sys cpu occupancy rate reaches 100%. HOT 2
- How to handle RTCP using custom port? HOT 1
- Why do I always return - 155 when I use the create function? HOT 1
- Locking does not seem to work properly in Windows HOT 2
- Compilation error when building with -DCMAKE_BUILD_TYPE=Release HOT 1
- getloginrtest wont work HOT 1
- Support for libc++? HOT 1
- Please make a release
- pkg-config output is inconsistent with example5.cpp
- pkg-config shouldn't add libsrtp2.so to the link flags
- how to use client by rtp over tcp
- How to set sort buffer for receiver
- Add proper logging
- Can you transfer this project to me for maintenance? HOT 2
- How to use cmake to make lib/include folders to integrate into other projecs?
- Maximum packet size is 65535 bytes? How will I stream images? HOT 3
- The Create function block.求助! HOT 1
- RTPTCPTransmitter::PollSocket implementation problem
- error, RTPTCPTransmitter
- JRTPLIB doesn't support DSCP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jrtplib.