mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-03-13 15:08:16 +00:00
etc/ folder changed to share/ since it is a Filesystem Hierarchy
Standard (FHS) requirement for architecture-independent application-specific static files
This commit is contained in:
parent
4bd506abe2
commit
d7c8ecc230
@ -196,7 +196,7 @@ This will create three executables at gnss-sdr/install, namely ```gnss-sdr```, `
|
||||
$ sudo make install
|
||||
~~~~~~
|
||||
|
||||
This will make a copy of the conf/ folder into /usr/local/etc/gnss-sdr/conf for your reference. We suggest to create a working directory at your preferred location and store your own configuration and data files there.
|
||||
This will make a copy of the conf/ folder into /usr/local/share/gnss-sdr/conf for your reference. We suggest to create a working directory at your preferred location and store your own configuration and data files there.
|
||||
|
||||
You could be interested in creating the documentation by doing:
|
||||
|
||||
@ -434,7 +434,7 @@ We use a [DBSRX2](https://www.ettus.com/product/details/DBSRX2) to do the task,
|
||||
4. Capture at least 80 seconds of signal in open sky conditions. During the process, be aware of USRP driver buffer underuns messages. If your hard disk is not fast enough to write data at this speed you can capture to a virtual RAM drive. 80 seconds of signal at 5 MSPS occupies less than 3 Gbytes using ```gr_complex<float>```.
|
||||
5. If you have no access to a RF front-end, you can download a sample raw data file (that contains GPS and Galileo signals) from [here](http://sourceforge.net/projects/gnss-sdr/files/data/).
|
||||
3. You are ready to configure the receiver to use your captured file among other parameters:
|
||||
1. The default configuration file resides at [/usr/local/etc/gnss-sdr/conf/default.conf](./conf/gnss-sdr.conf).
|
||||
1. The default configuration file resides at [/usr/local/share/gnss-sdr/conf/default.conf](./conf/gnss-sdr.conf).
|
||||
2. You need to review/modify at least the following settings:
|
||||
* ```SignalSource.filename=``` (absolute or relative route to your GNSS signal captured file)
|
||||
* ```GNSS-SDR.internal_fs_hz=``` (captured file sampling rate in Hz)
|
||||
@ -453,7 +453,7 @@ The program reports the current status in text mode, directly to the terminal wi
|
||||
Using GNSS-SDR
|
||||
==============
|
||||
|
||||
With GNSS-SDR, you can define you own receiver, work with captured raw data or from a RF front-end, dump into files intermediate signals, or tune every single algorithm used in the signal processing. All the configuration is done in a single file. Those configuration files reside at the [gnss-sdr/conf/](./conf/) folder (or at /usr/local/etc/gnss-sdr/conf if you installed the program). By default, the executable ```gnss-sdr``` will read the configuration available at ```gnss-sdr/conf/gnss-sdr.conf``` (or at (usr/local/etc/gnss-sdr/conf/default.conf if you installed the program). You can edit that file to fit your needs, or even better, define a new ```my_receiver.conf``` file with your own configuration. This new receiver can be generated by invoking gnss-sdr with the ```--config_file``` flag pointing to your configuration file:
|
||||
With GNSS-SDR, you can define you own receiver, work with captured raw data or from a RF front-end, dump into files intermediate signals, or tune every single algorithm used in the signal processing. All the configuration is done in a single file. Those configuration files reside at the [gnss-sdr/conf/](./conf/) folder (or at /usr/local/share/gnss-sdr/conf if you installed the program). By default, the executable ```gnss-sdr``` will read the configuration available at ```gnss-sdr/conf/gnss-sdr.conf``` (or at (usr/local/share/gnss-sdr/conf/default.conf if you installed the program). You can edit that file to fit your needs, or even better, define a new ```my_receiver.conf``` file with your own configuration. This new receiver can be generated by invoking gnss-sdr with the ```--config_file``` flag pointing to your configuration file:
|
||||
|
||||
~~~~~~
|
||||
$ gnss-sdr --config_file=/path/to/my_receiver.conf
|
||||
|
@ -51,11 +51,10 @@ set (CPACK_SOURCE_GENERATOR "${PACKAGE_SOURCE_GENERATOR}" CACHE STRING "List of
|
||||
|
||||
|
||||
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/cmake/Packaging/postinst.in" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/scripts/postinst" @ONLY IMMEDIATE)
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/scripts/postinst DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/scripts/postinst DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||
|
||||
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/cmake/Packaging/prerm.in" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/scripts/prerm" @ONLY IMMEDIATE)
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/scripts/prerm DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/scripts/prerm DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||
|
||||
|
||||
|
||||
@ -64,7 +63,7 @@ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE W
|
||||
# Setup CPack
|
||||
########################################################################
|
||||
set(CPACK_PACKAGE_DESCRIPTION "An Open Source GNSS Software Defined Receiver")
|
||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GNSS-SDR is an open source GNSS Software Defined Receiver written in C++. More info at http://gnss-sdr.org" )
|
||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "This is a GNSS Software Defined Receiver written in C++. More info at http://gnss-sdr.org" )
|
||||
set(CPACK_PACKAGE_VENDOR "Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)")
|
||||
set(CPACK_PACKAGE_NAME "gnss-sdr")
|
||||
set(CPACK_PACKAGE_VERSION "${VERSION}")
|
||||
|
@ -4,7 +4,7 @@ if test -e @CMAKE_INSTALL_PREFIX@/@PROJECT_NAME@ ; then
|
||||
rm @CMAKE_INSTALL_PREFIX@/@PROJECT_NAME@
|
||||
rm @CMAKE_INSTALL_PREFIX@/volk_gnsssdr_profile
|
||||
fi
|
||||
if test -e @CMAKE_INSTALL_PREFIX@/etc/@PROJECT_NAME@ ; then
|
||||
rm @CMAKE_INSTALL_PREFIX@/etc/@PROJECT_NAME@
|
||||
if test -e @CMAKE_INSTALL_PREFIX@/share/@PROJECT_NAME@ ; then
|
||||
rm @CMAKE_INSTALL_PREFIX@/share/@PROJECT_NAME@
|
||||
fi
|
||||
|
||||
|
@ -128,7 +128,7 @@ FileSignalSource::FileSignalSource(ConfigurationInterface* configuration,
|
||||
<< std::endl
|
||||
<< "Examples of configuration files available at:"
|
||||
<< std::endl
|
||||
<< GNSSSDR_INSTALL_DIR "/gnss-sdr/conf/"
|
||||
<< GNSSSDR_INSTALL_DIR "/share/gnss-sdr/conf/"
|
||||
<< std::endl;
|
||||
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ extern concurrent_queue<Galileo_Almanac> global_galileo_almanac_queue;
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
DEFINE_string(config_file, std::string(GNSSSDR_INSTALL_DIR "/etc/gnss-sdr/conf/default.conf"),
|
||||
DEFINE_string(config_file, std::string(GNSSSDR_INSTALL_DIR "/share/gnss-sdr/conf/default.conf"),
|
||||
"File containing the configuration parameters");
|
||||
|
||||
ControlThread::ControlThread()
|
||||
|
@ -82,13 +82,13 @@ install(TARGETS gnss-sdr
|
||||
COMPONENT "gnss-sdr"
|
||||
)
|
||||
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/conf DESTINATION etc/gnss-sdr
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/conf DESTINATION share/gnss-sdr
|
||||
FILES_MATCHING PATTERN "*.conf"
|
||||
)
|
||||
|
||||
install(DIRECTORY DESTINATION etc/gnss-sdr/data/)
|
||||
install(DIRECTORY DESTINATION share/gnss-sdr/data/)
|
||||
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/conf/gnss-sdr.conf DESTINATION etc/gnss-sdr/conf
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/conf/gnss-sdr.conf DESTINATION share/gnss-sdr/conf
|
||||
RENAME default.conf)
|
||||
|
||||
if(NOT VOLK_GNSSSDR_FOUND)
|
||||
|
Loading…
x
Reference in New Issue
Block a user