Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problems on ubuntu 18 #10

Closed
altineller opened this issue Aug 30, 2019 · 3 comments
Closed

Compilation problems on ubuntu 18 #10

altineller opened this issue Aug 30, 2019 · 3 comments

Comments

@altineller
Copy link

Hello,

I am trying to compile this program in an effort to use it with ros, without requiring a special firmware for the imu.

I downloaded the source code, and initially make complained about wxwidgets and I installed all the libraries to fix them, but I now get an error that I can not fix:

g++ -s -O2 -Wall -DLINUX -o MotionCal gui.o portlist.o images.o visualize.o serialdata.o rawdata.o magcal.o matrix.o fusion.o quality.o mahony.o wx-config --libs all,opengl/usr/bin/ld: visualize.o: undefined reference to symbol 'glMaterialfv' //usr/lib/x86_64-linux-gnu/libGL.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:69: recipe for target 'MotionCal' failed make: *** [MotionCal] Error 1

@tavvfiq
Copy link

tavvfiq commented Sep 18, 2019

yes i have this issue too. how to fix it?

@PaulStoffregen
Copy link
Owner

@altineller
Copy link
Author

https://forum.pjrc.com/threads/57378-Cannot-make-MotionCal-for-Linux

It is fixed now, and I am able to compile. Here is what I had to do (in ubuntu 18)

  1. Modified the make file to have: WXCONFIG = /usr/bin/wx-config
  2. g++ -s -O2 -Wall -DLINUX -o MotionCal gui.o portlist.o images.o visualize.o serialdata.o rawdata.o magcal.o matrix.o fusion.o quality.o mahony.o /usr/bin/wx-config --libs all,opengl -lGL -lGLU

(I had to manually add the -lGL -lGLU to the last g++ compilation command)

It does compile and run at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants