-- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-17-ge175118
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shelley/src/Firmware/build/px4_sitl_default
Scanning dependencies of target logs_symlink
Scanning dependencies of target lockstep_scheduler
Scanning dependencies of target git_jmavsim
[ 0%] Generating ../../logs
......
......
INFO [simulator] Waiting for simulator to connect on TCP port 4560
INFO [px4_work_queue] creating: wq:hp_default, priority: 87, stack: 16384 bytes
INFO [init] Mixer: etc/mixers/quad_w.main.mix on /dev/pwm_output0
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 14570 remote port 14550
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO [logger] logger started (mode=all)
INFO [logger] Start file log (type: full)
INFO [mavlink] MAVLink only on localhost (set param MAV_BROADCAST = 1 to enable network)
INFO [logger] Opened full log file: ./log/2019-07-08/08_18_33.ulg
INFO [px4] Startup script returned successfully
pxh> Buildfile: /home/shelley/src/Firmware/Tools/jMAVSim/build.xml
make_dirs:
[mkdir] Created dir: /home/shelley/src/Firmware/Tools/jMAVSim/out/production/jMAVSim
compile:
[javac] Compiling 76 source files to /home/shelley/src/Firmware/Tools/jMAVSim/out/production/jMAVSim
create_run_jar:
[jar] Building jar: /home/shelley/src/Firmware/Tools/jMAVSim/out/production/jmavsim_run.jar
copy_res:
[copy] Copying 17 files to /home/shelley/src/Firmware/Tools/jMAVSim/out/production
BUILD SUCCESSFUL
Total time: 3 seconds
Options parsed, starting Sim.
Starting GUI...
3D [dev] 1.6.0-pre12-daily-experimental daily
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (rsrc:j3dcore.jar) to method sun.awt.AppContext.getAppContext()
WARNING: Please consider reporting this to the maintainers of javax.media.j3d.JoglPipeline
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!
Iām working on a vehicle with board pixhawl 2.4.8 which need to be controlled by QGC. So I want to run the simulator jmavsim and gazebo with px4 firmware to test the configuration I set on the board.
Is it correctļ¼
Given this, my feeling is that something with the display drivers or GPU support is not working as it should in your VM. Which VM are you using? Is it up-to-date? Do you have the guest additions installed (if Virtualbox)?
Thank you very much,Julian.
Jmavsim can run normally now after I removed Firmware folder and git clone Firmware again.
shelley@yxl-u18-virtual-machine:~/src/Firmware$ make px4_sitl jmavsim
-- PX4 config file: /home/shelley/src/Firmware/boards/px4/sitl/default.cmake
-- PX4 config: px4_sitl_default
-- PX4 platform: posix
-- PX4 lockstep: enabled
-- PX4 version: v1.9.1
-- cmake build type: RelWithDebInfo
-- The CXX compiler identification is GNU 7.4.0
-- The C compiler identification is GNU 7.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.15")
-- Found PY_jinja2: /usr/lib/python2.7/dist-packages/jinja2
-- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shelley/src/Firmware/build/px4_sitl_default
Scanning dependencies of target git_jmavsim
Scanning dependencies of target lockstep_scheduler
Scanning dependencies of target logs_symlink
Scanning dependencies of target uorb_headers
[ 0%] git submodule Tools/jMAVSim
[ 1%] Generating ../../logs
[ 1%] Generating uORB topic headers
......
BUILD SUCCESSFUL
Total time: 3 seconds
Options parsed, starting Sim.
Starting GUI...
3D [dev] 1.6.0-pre12-daily-experimental daily
libEGL warning: DRI2: failed to authenticate
INFO [simulator] Waiting for simulator to connect on TCP port 4560
Buildfile: /home/shelley/src/Firmware/Tools/jMAVSim/build.xml
make_dirs:
[mkdir] Created dir: /home/shelley/src/Firmware/Tools/jMAVSim/out/production/jMAVSim
compile:
[javac] Compiling 74 source files to /home/shelley/src/Firmware/Tools/jMAVSim/out/production/jMAVSim
create_run_jar:
[jar] Building jar: /home/shelley/src/Firmware/Tools/jMAVSim/out/production/jmavsim_run.jar
copy_res:
[copy] Copying 17 files to /home/shelley/src/Firmware/Tools/jMAVSim/out/production
BUILD SUCCESSFUL
Total time: 3 seconds
Options parsed, starting Sim.
Starting GUI...
3D [dev] 1.6.0-pre12-daily-experimental daily
libEGL warning: DRI2: failed to authenticate
INFO [simulator] Simulator connected on TCP port 4560.
Init MAVLink
INFO [init] Mixer: etc/mixers/quad_w.main.mix on /dev/pwm_output0
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 14570 remote port 14550
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO [logger] logger started (mode=all)
INFO [logger] Start file log (type: full)
INFO [logger] Opened full log file: ./log/2019-07-10/03_40_37.ulg
INFO [mavlink] MAVLink only on localhost (set param MAV_BROADCAST = 1 to enable network)
INFO [px4] Startup script returned successfully
pxh> INFO [ecl/EKF] EKF aligned, (pressure height, IMU buf: 22, OBS buf: 14)
INFO [ecl/EKF] EKF GPS checks passed (WGS-84 origin set)
INFO [ecl/EKF] EKF commencing GPS fusion
INFO [mavlink] partner IP: 127.0.0.1
INFO [logger] closed logfile, bytes written: 49000092
INFO [logger] Start file log (type: full)
INFO [logger] Opened full log file: ./log/2019-07-10/04_08_46.ulg
INFO [commander] Takeoff detected
Wind deviation is now +006.00000; +008.00000; +001.00000;
INFO [commander] Landing detected
INFO [logger] closed logfile, bytes written: 104517471
INFO [ekf2] Mag sensor ID changed to 196616
I have the same problem. Tried āmake cleanā and āmake distcleanā with no avail. Iām running Ubuntu 16.04 on VirtualBox. Any other hints? Thanks in advance.
raul@raul-VirtualBox:~/Firmware$ make px4_sitl jmavsim
...
...
[ 3%] Linking CXX static library libdf_driver_framework.a
[ 3%] Built target df_driver_framework
[ 3%] Built target uorb_headers
CMakeFiles/Makefile2:14357: recipe for target 'platforms/posix/CMakeFiles/jmavsim.dir/rule' failed
make[2]: *** [platforms/posix/CMakeFiles/jmavsim.dir/rule] Error 2
Makefile:4110: recipe for target 'jmavsim' failed
make[1]: *** [jmavsim] Error 2
Makefile:200: recipe for target 'px4_sitl' failed
make: *** [px4_sitl] Error 2
Edit: I just updated Guest Additions and now it builds OK (I forgot I updated Virtualbox to version 6.0.10 a few days ago)
@JulianOes
I am new to PX4.
I am having Ubuntu 22.04 LTS, I have created px4_my_app exactly as px4_simple_app. When I ācmakeā, itās successful, then āmakeā as well successful, when I āmake px4_sitl jmavsimā, it gives error as:
make: *** No rule to make target āpx4_sitl_defaultā. Stop.
when make clean, no error, no output.
when make distclean, error is:
make: *** No rule to make target ādistcleanā. Stop.
I am not getting whatās wrong with my changes, please suggest how can I build it successfully.
Thank in advance.