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

[Linux] Building meshlab fails (nexus and libE57Format errors when compiling) #1447

Open
Nalonoid opened this issue Nov 27, 2023 · 2 comments

Comments

@Nalonoid
Copy link

Nalonoid commented Nov 27, 2023

Hello,

I am currently trying to build meshlab from the main branch, but compiling throws errors.

My system information:

kubuntu 23.10 x86_64
kernel 6.5.0-13-generic
qt 5.15.10
qt creator 10.0.2
gcc 13.2.0
cmake 3.27.4

external/downloads/libE57Format-2.3.0/include/E57Format.h
external/downloads/nexus-master/src/corto/src/tunstall.cpp

It is mainly undefined types such as:

‘int16_t’ has not been declared in ‘std’
‘uint32_t’ does not name a type
‘uint32_t’ has not been declared
Unknown type name 'uint32_t'

And so on...

What I did:

git clone --recursive https://github.com/cnr-isti-vclab/meshlab
mkdir meshlab/build && cd meshlab/build
cmake ..
make -j$(nproc)

Fails with the same errors as when opening meshlab with qtcreator.
Same result when using the scripts to build meshlab (0_setup_env.sh then 1_build.sh)
By the way, in the script 0_setup_env.sh the package qt5-default has no candidate for ubuntu based distros > 22.04. It should be replaced with qtbase5-dev and qt5-qmake.

Am I the only one with this build problem? :-(

Cheers

@alemuntoni
Copy link
Member

I don't experience these kind of errors... The only difference between your configuration and mine is the GCC version, therefore I think that some additional #include is required in that version. Maybe updating the external libraries should fix this issue, but it is something that I'll work on when Ubuntu 24.04 will be released.

@An-u-rag
Copy link

I think I have the same problem as @Nalonoid. I get a bunch of "error: ‘uint32_t’ has not been declared in ‘std’" kind of errors in libE57Format-2.3.0/include header files.

My system information:
ubuntu 20.04 x86_64
qt 5.15.3
qt creator 6.0.2
gcc 10.5.0
cmake 3.29.0-rc1

I experience quite a few internal compiler errors and segmentation faults while running the make command as well.

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

No branches or pull requests

3 participants