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

Ubuntu18.04 CMake Error: LIST GET given empty list #998

Closed
wsakobe opened this issue Nov 23, 2019 · 10 comments
Closed

Ubuntu18.04 CMake Error: LIST GET given empty list #998

wsakobe opened this issue Nov 23, 2019 · 10 comments

Comments

@wsakobe
Copy link

wsakobe commented Nov 23, 2019

The following is the detail in cmake-gui (cmake version 3.10.2)
CMake Error at cmakemodules/script_detect_gcc.cmake:16 (LIST):
LIST GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:83 (include)

CMake Error at cmakemodules/script_detect_gcc.cmake:17 (LIST):
LIST GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:83 (include)

What's the problem?

@wsakobe
Copy link
Author

wsakobe commented Nov 23, 2019

BTW I'd like to run pl-slam and the guide said that:
If working with the most recent versions of the MRPT library you might find some issues due to hard refactoring, for which we recommend to use this version instead (the last one we tested):

https://github.com/MRPT/mrpt/tree/0c3d605c3cbf5f2ffb8137089e43ebdae5a55de3

@wsakobe
Copy link
Author

wsakobe commented Nov 23, 2019

I have fixed this problem by changing 'dumpversion' in this line into 'dumpfullversion'
But now when I did 'make -j8' i found another problem:
/home/xxx/Downloads/mrpt-0c3d605c3cbf5f2ffb8137089e43ebdae5a55de3/libs/base/include/mrpt/math/matrix_adaptors.h:507:20: error: expression cannot be used as a function
return howMany();
How can I fix this problem? i'm using gcc 7.4.0

@jlblancoc
Copy link
Member

Hi,
This is actually a duplicated of rubengooj/pl-slam#30
Will address that one and post there...

@jlblancoc
Copy link
Member

This has been finally solved via these two PRs (hopefully to be merged soon...):

  1. Fix build against latest MRPT rubengooj/stvo-pl#15
  2. CMake clean up; modern g2o and mrpt targets rubengooj/pl-slam#40

Cheers.

@wsakobe
Copy link
Author

wsakobe commented Nov 24, 2019

Thanks a lot bro! Let me have a look : )

@weiningwei
Copy link

weiningwei commented Jun 4, 2021

Thanks a lot bro! Let me have a look : )

Hi, I also met the same problem. Have you solved it?

@johnjin404
Copy link

@weiningwei
Hi, have you fixed the problem of "make error "that shows
"mrpt/libs/base/include/mrpt/math/matrix_adaptors.h:507:20: error: expression cannot be used as a function return howMany( );"

@weiningwei
Copy link

@johnjin404
Hi, line 507 of file "mrpt/libs/base/include/mrpt/math/matrix_adaptors.h" is return howMany();.
I modified it to return howMany;

@jlblancoc
Copy link
Member

It seems you are using an outdated version of mrpt, please try to upgrade to either the latest stable release or the develop branch.

@shaoxh
Copy link

shaoxh commented Apr 8, 2022

@johnjin404 Hi, line 507 of file "mrpt/libs/base/include/mrpt/math/matrix_adaptors.h" is return howMany();. I modified it to return howMany;

This is great! Solved it!

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

5 participants