PX4 Autopilot Software
Go to file
Carlo Wood c6a2641507 Fix some pthread related linker stuff. (#5504)
The px4_os_add_flags defined in cmake/posix/px4_impl_posix.cmake did
add (threading) libraries to added_exe_linker_flags, which subsequently
end up in CMAKE_EXE_LINKER_FLAGS and then have no effect because those
flags are passed to the linker before any of the object files and static
libraries.

Those libraries are already added correctly in the corresponding
src/firmware/*/CMakeLists.txt files (for qurt, nuttx AND posix).

I left in the non-library linker flag '-pthread' for the bebop board,
although it seems very weird to me that this is needed (is it?).
If that is needed then it seems weird to link manually (that is,
src/firmware/*/CMakeLists.txt) with -lpthread.

For linux/g++ -pthread is added to the CXXFLAGS as it should be:
this causes the compiler to define _REENTRANT which is needed
for (the interface of) certain libraries to become thread-safe.
Offically one also can just pass -pthread to the linker, which then
causes the right libraries to be linked, but just linking with
-lpthread -lm -lrt works too.

I ran into this while adding support for libcwd, which explicitly
complains that _REENTRANT isn't defined when trying to link with
the thread-safe version of libcwd (-lcwd_r) and then tells you
to use -pthread.
2016-09-26 22:53:41 +02:00
Debug Profiler: folder fix - more special cases for operator<< and operator>> 2015-01-21 14:54:24 +01:00
Documentation Rename mainapp to px4. 2016-07-29 11:05:01 +02:00
Images CF2: Unique Board ID 2016-09-20 19:21:24 -04:00
NuttX@93df871201 Update Nuttx Submodule to included Proper MAC El Capitan USB fix ==master (#5385) 2016-08-25 21:59:59 +02:00
ROMFS startup remove old EKF PE_ params (#5533) 2016-09-26 22:51:43 +02:00
Tools CF2: Linux USB uploading fix 2016-09-21 17:20:08 -04:00
cmake Fix some pthread related linker stuff. (#5504) 2016-09-26 22:53:41 +02:00
integrationtests SITL CI: gracefully fail tests early (#5405) 2016-08-28 21:56:31 +02:00
launch Improvements to SITL to make paths more flexible. (#5181) (#5255) 2016-08-25 21:47:45 +02:00
mavlink/include/mavlink update mavlink submodules 2016-09-01 13:37:42 +02:00
misc/tones Allow tone_alarm cmd to take filename as parameter 2013-08-31 16:06:15 -04:00
msg add HIL_STATE message handler and publish to uORB 2016-09-19 13:05:14 +02:00
nuttx-configs CF2: Disable UART console to free up expansion pins 2016-09-19 11:54:53 +02:00
posix-configs startup remove old EKF PE_ params (#5533) 2016-09-26 22:51:43 +02:00
src Geofence defaults (#5534) 2016-09-26 22:50:36 +02:00
test_data Path cleanup, low impact changes (#5340) 2016-08-18 15:37:23 -04:00
unittests uorb unittests stubs: add orb_advertise_queue 2016-08-24 21:24:35 +02:00
.ackrc ack: add .ackrc to ignore the Documentation directory 2016-04-11 11:23:01 +02:00
.gitignore gitignore: don't ignore all .config files 2016-07-22 09:33:43 +02:00
.gitmodules Update MAVLink submodules 2016-06-24 11:45:23 +02:00
.travis.yml filtering files for code check seperately to enable fast use of git pre-commit hook to check code style 2016-09-07 11:25:51 +02:00
.ycm_extra_conf.py Added youcompleteme config. 2014-03-22 13:32:33 -04:00
CMakeLists.txt list_vmd_make_targets and list_cmake_targets 2016-09-13 16:31:08 +02:00
CONTRIBUTING.md correct link to developer guide 2016-01-11 08:37:43 +01:00
Firmware.sublime-project supports MindPXv2 borad which is a product from AirMind. 2016-03-30 19:45:39 +02:00
LICENSE.md LICENSE.md: bring year up-to-date 2015-06-12 08:30:50 +01:00
Makefile Master additional targets (#5548) 2016-09-26 22:48:37 +02:00
README.md add latest version to README (#4960) 2016-07-01 23:00:35 +02:00
Vagrantfile Speed up Vagrant 2016-01-01 21:21:49 +01:00
circle.yml filtering files for code check seperately to enable fast use of git pre-commit hook to check code style 2016-09-07 11:25:51 +02:00
eclipse.cproject update eclipse project file templates 2016-06-22 13:51:39 +02:00
eclipse.project update eclipse project file templates 2016-06-22 13:51:39 +02:00
package.xml PX4 package depends on mav_msgs 2015-07-13 14:52:39 -07:00

README.md

PX4 Pro Drone Autopilot

Releases DOI Build Status Coverity Scan

Gitter

This repository holds the PX4 Pro flight control solution for drones, with the main applications located in the src/modules directory. It also contains the PX4 Drone Middleware Platform, which provides drivers and middleware to run drones.

Users

Please refer to the user documentation and user forum for flying drones with the PX4 flight stack.

Developers

This repository contains code supporting these boards: