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

Issues with compiled installation #320

Open
ipasic opened this issue Jan 30, 2024 · 3 comments
Open

Issues with compiled installation #320

ipasic opened this issue Jan 30, 2024 · 3 comments

Comments

@ipasic
Copy link

ipasic commented Jan 30, 2024

Hi, I'm running entwine within my docker app and I configured Dockerfile for entwine as followed

RUN apt install git -y

RUN git clone https://github.com/hobu/laz-perf.git && \
	cd laz-perf && \
	mkdir build && \
	cd build && \
	cmake .. && \
	make -j4 && \
	make install && \
	ldconfig

RUN wget -O pdal-2.1.0.tar.bz2 https://github.com/PDAL/PDAL/releases/download/2.1.0/PDAL-2.1.0-src.tar.bz2 && \
	tar xjf pdal-2.1.0.tar.bz2 && \
	cd PDAL-2.1.0-src && \
	mkdir build && \
	cd build && \
	cmake -DWITH_LAZPERF=ON .. && \
	make -j4 && \
	make install && \
	ldconfig

RUN wget -O entwine-2.2.0.tar.gz https://github.com/connormanning/entwine/archive/2.2.0.tar.gz && \
	tar xzf entwine-2.2.0.tar.gz && \
	cd entwine-2.2.0/ && \
	mkdir build && \
	cd build && \
	cmake .. && \
	make -j4 && \
	make install && \
	ldconfig

It seems to work fine with installation but when I run the tiling within the container it exits after some time with

...
12:20 - 0% - 0 - 0 (0) M/h - 0W - 0R - 0A
12:30 - 0% - 0 - 0 (0) M/h - 0W - 0R - 0A
12:40 - 0% - 0 - 0 (0) M/h - 0W - 0R - 0A
12:50 - 0% - 0 - 0 (0) M/h - 0W - 0R - 0A
13:00 - 0% - 0 - 0 (0) M/h - 0W - 0R - 0A
13:10 - 0% - 0 - 0 (0) M/h - 0W - 0R - 0A
13:20 - 0% - 0 - 0 (0) M/h - 0W - 0R - 0A
13:30 - 0% - 0 - 0 (0) M/h - 0W - 0R - 0A
        Done 0
Saving
Wrote 0 points.
free(): invalid pointer

The tile command i use is for example

entwine build -i https://<some-url>.laz -o /app/geodata/tiles

Any idea what I'm doing wrong ?

@hobu
Copy link
Collaborator

hobu commented Jan 30, 2024

PDAL 2.1.0 was released nearly four years ago. Can you try this scenario with PDAL 2.6.2 and Entwine 3.0.0?

@ipasic
Copy link
Author

ipasic commented Jan 30, 2024

I've upgraded to PDAL 2.6.2 and Entwine 3.0.0. but still no success.
Is there any documentation for compiling from source, maybe i'm doing something wrong there?

When running the entwine with official docker image it works without issue for same point clouds. But i can't run docker within docker so i wanted to build it from source within my Dockerfile.

@wanderingnature
Copy link

Just curious if you tried downloading the laz data and running entwine on it as a local file. Just to make sure the laz file itself is not an issue. The only problem I've ever encountered with entwine were issues with the laz file not entwine.

e.g.
wget https://.laz
entwine build -i .laz -o /app/geodata/tiles

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