Compilation fails on Ubuntu 14.04

From @johnfox on Tue May 02 2017 11:50:54 GMT+0000 (UTC)

Hi,

I’m trying to compile latest version 0.3 RC and the compilation fails on:

In file included from /usr/local/include/boost/atomic.hpp:12:0, from /usr/local/include/boost/thread/pthread/once_atomic.hpp:20, from /usr/local/include/boost/thread/once.hpp:20, from /usr/local/include/boost/thread.hpp:17, from /usr/include/pcl-1.7/pcl/io/boost.h:50, from /usr/include/pcl-1.7/pcl/io/file_io.h:43, from /usr/include/pcl-1.7/pcl/io/obj_io.h:42, from /home/fox/open_drone_map/modules/odm_orthophoto/src/OdmOrthoPhoto.hpp:9, from /home/fox/open_drone_map/modules/odm_orthophoto/src/OdmOrthoPhoto.cpp:7: /usr/local/include/boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope typedef atomic<uintptr_t> atomic_uintptr_t; ^

And lot of similar errors like above.

I’m guessing this is boost library version problem - I’m sure I have latest, but would appreciate any help with compilation or any workaround to include right boost version.

Should I try on different Ubuntu version? I was following recommendation on the project home page saying Ununtu 14 is the right one :slight_smile:

Cheers and thank you for great job.



Copied from original issue: https://github.com/OpenDroneMap/OpenDroneMap/issues/558

From @dakotabenjamin on Tue May 02 2017 17:32:20 GMT+0000 (UTC)

Do you mean 14.04?

Did you run into any errors when the dependencies were installing?

From @johnfox on Tue May 02 2017 17:39:59 GMT+0000 (UTC)

Yes I mean 14.04, sorry for typo.
Nope - I did not run into any errors with dependencies.
I will be installing new Ubuntu server in few days and can try the compilation on different Ubuntu version - which should I use?

From @dakotabenjamin on Tue May 02 2017 18:21:21 GMT+0000 (UTC)

16.04 is your best bet. I’ll look into 14.04 compilation issues in the meantime.

From @dakotabenjamin on Mon May 08 2017 14:32:40 GMT+0000 (UTC)

@johnfox was this a fresh ubuntu installation?

From @johnfox on Tue May 09 2017 07:45:18 GMT+0000 (UTC)

Nope the 14.04 was “old” installation. I have successfully compiled on the fresh 16.04 ubuntu installation.