You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "p-vdp (via GitHub)" <gi...@apache.org> on 2025/10/13 00:11:29 UTC

[I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

p-vdp opened a new issue, #218:
URL: https://github.com/apache/sedona-db/issues/218

   I'm having trouble building from source on Ubuntu, Fedora, Windows... following these docs: https://sedona.apache.org/sedonadb/latest/contributors-guide/
   
   I keep getting stuck in dependency hell trying to run `cargo build` and I really don't want to build a bunch of other things from source just to set up a dev environment for SedonaDB.
   
   A full list of build dependencies for a specific system platform would be very helpful. Is this available somewhere already? If not, the docs could use some help in this regard.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3413048441

   I'm new to UV but I think both of those can create a `venv` based on the pyproject.toml that exists there? I don't really want to add a lockfile since ideally we'd like the tests to pass with any version of our dependencies (but I could be misunderstanding that concept!)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3397829378

   Oof...bindgen can be the worst. We eliminated our build-time dependency on bindgen because we had the same error pop up when there was any kind of non-standard toolchain involved (mingw and conda were previously the issue). I'm not sure what specifically is the issue here (perhaps adding `glibc-devel` would help?) but the true fix is that we just need to eliminate all of our bindgen runtime by typing out any C definitions we need by hand.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "p-vdp (via GitHub)" <gi...@apache.org>.
p-vdp commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3412766674

   @paleolimbot Here's what I settled on, feel free to adapt it for the documentation:
   
   ```Dockerfile
   # syntax=docker/dockerfile:1
   FROM fedora:latest AS builder
   ENV HOME=/root
   WORKDIR $HOME
   
   FROM builder AS sys-deps
   RUN dnf install -y abseil-cpp-devel cmake g++ geos-devel git maturin openssl-devel proj-devel python3 python3-devel
   
   FROM sys-deps AS clone
   # Replace "apache" with your GitHub username to use your forked repo:
   RUN git clone https://github.com/apache/sedona-db  
   
   FROM clone AS build
   WORKDIR $HOME/sedona-db
   RUN <<EOF
       git remote add upstream https://github.com/apache/sedona-db.git
    	git remote -v
    	git submodule init
    	git submodule update --recursive
    	cargo build
   EOF
   
   # Extra datasets for testing:
   FROM build AS extra
   RUN python submodules/download-assets.py
   ```
   
   I also realized that [Fedora 42 is available through WSL](https://docs.fedoraproject.org/en-US/cloud/wsl/#_installing_fedora_in_wsl) now which helps Windows users (like myself) who don't usually maintain a dev environment for Rust/C++/etc. 
   
   Thanks again!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "MrPowers (via GitHub)" <gi...@apache.org>.
MrPowers commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3443688243

   Sidenote: I think the [CONTRIBUTING.md](https://github.com/apache/sedona-db/blob/main/CONTRIBUTING.md) file and [Contributors Guide page](https://sedona.apache.org/sedonadb/latest/contributors-guide/) have fallen out of sync.
   
   Should we converge on one option as the single source of truth?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "p-vdp (via GitHub)" <gi...@apache.org>.
p-vdp commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3419906805

   @paleolimbot  I asked because I've been using [Pixi](https://pixi.sh/latest/) a lot for complex environments like this, and the nice thing is you can configure task commands. For example you could set up the `pixi.toml` so that running `pixi run test` in the shell executes something like `maturin develop && pytest -vv`
   
   @Pavan-Nambi Pixi uses uv under the hood for PyPI dependencies so you get that for free as well!
   
   If there's not a strong preference then for the [docs](https://github.com/apache/sedona-db/blob/3d756644caccd33d7a2bba41e646924caddd3203/CONTRIBUTING.md?plain=1#L167) then I suppose it makes sense to just recommend the standard `pip install -e ".[test]"`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3404300639

   Ok!
   
   I removed the bindgen build stuff and it `cargo build`s for me with:
   
   ```dockerfile
   FROM fedora:latest
   ENV HOME=/root
   WORKDIR $HOME
   RUN dnf install -y git rustup python3
   RUN rustup-init -y
   RUN git clone https://github.com/apache/sedona-db
   WORKDIR $HOME/sedona-db
   RUN git remote add upstream https://github.com/apache/sedona-db.git
   RUN git remote -v
   RUN git submodule init
   RUN git submodule update --recursive
   RUN dnf install -y abseil-cpp-devel openssl-devel cmake proj-devel geos-devel python3-devel g++
   ENV RUST_BACKTRACE=1
   ```
   
   (More granular commands like `cargo test -p sedona-functions` might lead to more happiness and potentially faster iteration)
   
   I'll circle back and add this and anything else you discover to the documentation...thank you for bringing this up!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "yutannihilation (via GitHub)" <gi...@apache.org>.
yutannihilation commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3430758143

   > seperate environment
   
   I too am not very familiar with vcpkg, but I think you can simply clone the vcpkg repo to a different location. In my understanding, the beauty of vcpkg is that everything happens within the directory (in the expense of disk space...). We can use it without system-wide installation, and we can simply remove the directory when we want to start from scratch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "petern48 (via GitHub)" <gi...@apache.org>.
petern48 commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3465870945

   > Sidenote: I think the [CONTRIBUTING.md](https://github.com/apache/sedona-db/blob/main/CONTRIBUTING.md) file and [Contributors Guide page](https://sedona.apache.org/sedonadb/latest/contributors-guide/) have fallen out of sync.
   > 
   > Should we converge on one option as the single source of truth?
   
   I removed the duplicate in this [PR](https://github.com/apache/sedona-db/pull/240).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "p-vdp (via GitHub)" <gi...@apache.org>.
p-vdp commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3395754470

   Thanks for the info! After some trial and error I think you also need `gcc vcpkg clang-libs` as dependencies on Fedora.
   
   Try this as your Dockerfile:
   
   ```Dockerfile
   FROM fedora:latest
   ENV HOME=/root
   WORKDIR $HOME
   RUN dnf install -y git rustup python3
   RUN rustup-init -y
   RUN git clone https://github.com/apache/sedona-db
   WORKDIR $HOME/sedona-db
   RUN git remote add upstream https://github.com/apache/sedona-db.git
   RUN git remote -v
   RUN git submodule init
   RUN git submodule update --recursive
   RUN python submodules/download-assets.py
   RUN dnf install -y abseil-cpp-devel openssl-devel cmake proj-devel geos-devel gcc vcpkg clang-libs
   ENV RUST_BACKTRACE=1
   ```
   
   Then `cargo build` in that terminal, I'm getting this error:
   
   ```shell
   warning: sedona-geoarrow-c@0.2.0: In file included from src/geoarrow/ryu/common.h:20,
   warning: sedona-geoarrow-c@0.2.0:                  from src/geoarrow/ryu/d2s.c:43:
   warning: sedona-geoarrow-c@0.2.0: src/geoarrow/ryu/common.h: In function 'decimalLength9':
   warning: sedona-geoarrow-c@0.2.0: src/geoarrow/ryu/common.h:36:12: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
   warning: sedona-geoarrow-c@0.2.0:    36 |   assert(v >= 0);
   warning: sedona-geoarrow-c@0.2.0:       |            ^~
   warning: sedona-geoarrow-c@0.2.0: src/geoarrow/ryu/common.h:36:12: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
   warning: sedona-geoarrow-c@0.2.0:    36 |   assert(v >= 0);
   warning: sedona-geoarrow-c@0.2.0:       |            ^~
   error: failed to run custom build command for `sedona-geoarrow-c v0.2.0 (/root/sedona-db/c/sedona-geoarrow-c)`
   note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.
   
   Caused by:
     process didn't exit successfully: `/root/sedona-db/target/debug/build/sedona-geoarrow-c-c147e4dd045072a6/build-script-build` (exit status: 101)
     --- stdout
     cargo:rerun-if-changed=src/geoarrow/double_parse_fast_float.cc
     cargo:rerun-if-changed=src/geoarrow/geoarrow.c
     cargo:rerun-if-changed=src/nanoarrow/nanoarrow.c
     OUT_DIR = Some(/root/sedona-db/target/debug/build/sedona-geoarrow-c-6b17acd3fc6882e4/out)
     OPT_LEVEL = Some(0)
     TARGET = Some(x86_64-unknown-linux-gnu)
     CARGO_ENCODED_RUSTFLAGS = Some()
     HOST = Some(x86_64-unknown-linux-gnu)
     cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
     CC_x86_64-unknown-linux-gnu = None
     cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
     CC_x86_64_unknown_linux_gnu = None
     cargo:rerun-if-env-changed=HOST_CC
     HOST_CC = None
     cargo:rerun-if-env-changed=CC
     CC = None
     cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
     RUSTC_WRAPPER = None
     cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
     CRATE_CC_NO_DEFAULTS = None
     DEBUG = Some(true)
     CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
     cargo:rerun-if-env-changed=CFLAGS
     CFLAGS = None
     cargo:rerun-if-env-changed=HOST_CFLAGS
     HOST_CFLAGS = None
     cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
     CFLAGS_x86_64_unknown_linux_gnu = None
     cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
     CFLAGS_x86_64-unknown-linux-gnu = None
     cargo:warning=In file included from src/geoarrow/ryu/common.h:20,
     cargo:warning=                 from src/geoarrow/ryu/d2s.c:43:
     cargo:warning=src/geoarrow/ryu/common.h: In function 'decimalLength9':
     cargo:warning=src/geoarrow/ryu/common.h:36:12: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
     cargo:warning=   36 |   assert(v >= 0);
     cargo:warning=      |            ^~
     cargo:warning=src/geoarrow/ryu/common.h:36:12: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
     cargo:warning=   36 |   assert(v >= 0);
     cargo:warning=      |            ^~
     exit status: 0
     exit status: 0
     exit status: 0
     cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
     AR_x86_64-unknown-linux-gnu = None
     cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
     AR_x86_64_unknown_linux_gnu = None
     cargo:rerun-if-env-changed=HOST_AR
     HOST_AR = None
     cargo:rerun-if-env-changed=AR
     AR = None
     cargo:rerun-if-env-changed=ARFLAGS
     ARFLAGS = None
     cargo:rerun-if-env-changed=HOST_ARFLAGS
     HOST_ARFLAGS = None
     cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
     ARFLAGS_x86_64_unknown_linux_gnu = None
     cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
     ARFLAGS_x86_64-unknown-linux-gnu = None
     cargo:rustc-link-lib=static=geoarrow
     cargo:rustc-link-search=native=/root/sedona-db/target/debug/build/sedona-geoarrow-c-6b17acd3fc6882e4/out
     OUT_DIR = Some(/root/sedona-db/target/debug/build/sedona-geoarrow-c-6b17acd3fc6882e4/out)
     OPT_LEVEL = Some(0)
     TARGET = Some(x86_64-unknown-linux-gnu)
     CARGO_ENCODED_RUSTFLAGS = Some()
     HOST = Some(x86_64-unknown-linux-gnu)
     cargo:rerun-if-env-changed=CXX_x86_64-unknown-linux-gnu
     CXX_x86_64-unknown-linux-gnu = None
     cargo:rerun-if-env-changed=CXX_x86_64_unknown_linux_gnu
     CXX_x86_64_unknown_linux_gnu = None
     cargo:rerun-if-env-changed=HOST_CXX
     HOST_CXX = None
     cargo:rerun-if-env-changed=CXX
     CXX = None
     cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
     RUSTC_WRAPPER = None
     cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
     CRATE_CC_NO_DEFAULTS = None
     DEBUG = Some(true)
     CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
     cargo:rerun-if-env-changed=CXXFLAGS
     CXXFLAGS = None
     cargo:rerun-if-env-changed=HOST_CXXFLAGS
     HOST_CXXFLAGS = None
     cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_linux_gnu
     CXXFLAGS_x86_64_unknown_linux_gnu = None
     cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-linux-gnu
     CXXFLAGS_x86_64-unknown-linux-gnu = None
     cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
     AR_x86_64-unknown-linux-gnu = None
     cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
     AR_x86_64_unknown_linux_gnu = None
     cargo:rerun-if-env-changed=HOST_AR
     HOST_AR = None
     cargo:rerun-if-env-changed=AR
     AR = None
     cargo:rerun-if-env-changed=ARFLAGS
     ARFLAGS = None
     cargo:rerun-if-env-changed=HOST_ARFLAGS
     HOST_ARFLAGS = None
     cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
     ARFLAGS_x86_64_unknown_linux_gnu = None
     cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
     ARFLAGS_x86_64-unknown-linux-gnu = None
     cargo:rustc-link-lib=static=geoarrow_fast_float
     cargo:rustc-link-search=native=/root/sedona-db/target/debug/build/sedona-geoarrow-c-6b17acd3fc6882e4/out
     cargo:rerun-if-env-changed=CXXSTDLIB_x86_64-unknown-linux-gnu
     CXXSTDLIB_x86_64-unknown-linux-gnu = None
     cargo:rerun-if-env-changed=CXXSTDLIB_x86_64_unknown_linux_gnu
     CXXSTDLIB_x86_64_unknown_linux_gnu = None
     cargo:rerun-if-env-changed=HOST_CXXSTDLIB
     HOST_CXXSTDLIB = None
     cargo:rerun-if-env-changed=CXXSTDLIB
     CXXSTDLIB = None
     cargo:rustc-link-lib=stdc++
     cargo:rerun-if-env-changed=TARGET
     cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64-unknown-linux-gnu
     cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_linux_gnu
     cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS
     cargo:rerun-if-changed=src/geoarrow/geoarrow.h
   
     --- stderr
     src/geoarrow/geoarrow.h:1558:10: fatal error: 'stddef.h' file not found
   
     thread 'main' panicked at c/sedona-geoarrow-c/build.rs:47:10:
     Unable to generate bindings: ClangDiagnostic("src/geoarrow/geoarrow.h:1558:10: fatal error: 'stddef.h' file not found\n")
     stack backtrace:
        0: __rustc::rust_begin_unwind
                  at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:697:5
        1: core::panicking::panic_fmt
                  at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:75:14
        2: core::result::unwrap_failed
                  at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/result.rs:1765:5
        3: core::result::Result<T,E>::expect
        4: build_script_build::main
        5: core::ops::function::FnOnce::call_once
     note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
   warning: build failed, waiting for other jobs to finish...
   ```
   
   Thoughts?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "Pavan-Nambi (via GitHub)" <gi...@apache.org>.
Pavan-Nambi commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3419665495

   I am not a python person but don't think we need a lock file, i use uv for everything python, iirc when i was trying to set this project locally, i just added `uv` before `pip install -e ".[test]"`, it worked with no issues.
   
   again i could be wrong


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "p-vdp (via GitHub)" <gi...@apache.org>.
p-vdp commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3397967459

   I tried it again with the addition of `glibc-devel` and I'm getting the same error:
   
   ```shell
    --- stderr
     src/geoarrow/geoarrow.h:1558:10: fatal error: 'stddef.h' file not found
   
     thread 'main' panicked at c/sedona-geoarrow-c/build.rs:47:10:
     Unable to generate bindings: ClangDiagnostic("src/geoarrow/geoarrow.h:1558:10: fatal error: 'stddef.h' file not found\n")
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "james-willis (via GitHub)" <gi...@apache.org>.
james-willis closed issue #218: docs: Detailed build instructions needed for the Contributors Guide
URL: https://github.com/apache/sedona-db/issues/218


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "yutannihilation (via GitHub)" <gi...@apache.org>.
yutannihilation commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3427584823

   Regarding Windows, I hope the guide describes how to use vcpkg in a little more detail.
   After some struggle, I succeeded to build sedona-db with the following envvars:
   
   ```ps1
   $env:VCPKG_ROOT = 'path/to/vcpkg'
   $env:CMAKE_TOOLCHAIN_FILE = "${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
   
   # install necessary packages
   & "${env:VCPKG_ROOT}/vcpkg.exe" install geos proj abseil openssl
   
   # These settings are for pkg-config. I'm reusing the one that vcpkg uses.
   # The hash value in the path probably varies.
   $env:PATH = "${env:VCPKG_ROOT}/downloads/tools/msys2/21caed2f81ec917b/mingw64/bin/;$env:PATH"
   $env:PKG_CONFIG_SYSROOT_DIR = "${env:VCPKG_ROOT}/downloads/tools/msys2/21caed2f81ec917b/mingw64/"
   $env:PKG_CONFIG_PATH = "${env:VCPKG_ROOT}/installed/x64-windows-dynamic-release/lib/pkgconfig/"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3432602022

   Are you both setting up mingw development environments that are not RTools? (In theory RTools should have all the required dependencies as long as the path is set up correctly). Or, is the use case here to set up VSCode such that you can edit non-r parts of the sedona repo, reinstall, and then try stuff on R/Windows?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "james-willis (via GitHub)" <gi...@apache.org>.
james-willis commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-5220916349

   Closed by #905 #291 #271
   
   Any dissent? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "LakshmiSowmya04 (via GitHub)" <gi...@apache.org>.
LakshmiSowmya04 commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3431160386

   > Regarding Windows, I hope the guide describes how to use vcpkg in a little more detail. After some struggle, I succeeded to build sedona-db with the following envvars:
   > 
   > $env:VCPKG_ROOT = 'path/to/vcpkg'
   > $env:CMAKE_TOOLCHAIN_FILE = "${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
   > 
   > # install necessary packages
   > & "${env:VCPKG_ROOT}/vcpkg.exe" install geos proj abseil openssl
   > 
   > # These settings are for pkg-config. I'm reusing the one that vcpkg uses.
   > # The hash value in the path probably varies.
   > $env:PATH = "${env:VCPKG_ROOT}/downloads/tools/msys2/21caed2f81ec917b/mingw64/bin/;$env:PATH"
   > $env:PKG_CONFIG_SYSROOT_DIR = "${env:VCPKG_ROOT}/downloads/tools/msys2/21caed2f81ec917b/mingw64/"
   > $env:PKG_CONFIG_PATH = "${env:VCPKG_ROOT}/installed/x64-windows-dynamic-release/lib/pkgconfig/"
   
   <img width="1245" height="388" alt="Image" src="https://github.com/user-attachments/assets/a767d0ea-1cdb-46d0-b4eb-d37b4985980f" />
   this makes more sense to install vcpkg on my windows 11 too


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "yutannihilation (via GitHub)" <gi...@apache.org>.
yutannihilation commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3433234066

   > In theory RTools should have all the required dependencies as long as the path is set up correctly
   
   I'm not really sure what I'm missing, but I've never succeeded to compile the non-r parts of the sedona-db repo (i.e. Rust and Python) with Rtools. I thought the difference is that the R package's target is `x86_64-pc-windows-gnu` while the other parts uses `x86_64-pc-windows-msvc`, so I tried vcpkg.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "LakshmiSowmya04 (via GitHub)" <gi...@apache.org>.
LakshmiSowmya04 commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3430677700

   > Regarding Windows, I hope the guide describes how to use vcpkg in a little more detail. After some struggle, I succeeded to build sedona-db with the following envvars:
   > 
   > $env:VCPKG_ROOT = 'path/to/vcpkg'
   > $env:CMAKE_TOOLCHAIN_FILE = "${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
   > 
   > # install necessary packages
   > & "${env:VCPKG_ROOT}/vcpkg.exe" install geos proj abseil openssl
   > 
   > # These settings are for pkg-config. I'm reusing the one that vcpkg uses.
   > # The hash value in the path probably varies.
   > $env:PATH = "${env:VCPKG_ROOT}/downloads/tools/msys2/21caed2f81ec917b/mingw64/bin/;$env:PATH"
   > $env:PKG_CONFIG_SYSROOT_DIR = "${env:VCPKG_ROOT}/downloads/tools/msys2/21caed2f81ec917b/mingw64/"
   > $env:PKG_CONFIG_PATH = "${env:VCPKG_ROOT}/installed/x64-windows-dynamic-release/lib/pkgconfig/"
   
   I tried the same things but this is corrupting the path i set up in environment variables and uninstalling few packages(might be becaz of collision btwn previously installed ones and this). Is there anything like seperate environment we can set, likewise in python we can create new environment without letting it corrupt the base packages.??


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3395674877

   Great point!
   
   Specifically for the Python package, I believe 
   
   
   I need to go through and test this via Docker but I believe Fedora should have a new enough Abseil to build the entire workspace with:
   
   ```shell
   dnf install abseil-cpp-devel openssl-devel cmake proj-devel geos-devel
   ```
   
   Ubuntu or Fedora should be able to build the Python package (i.e., `pip install -e python/sedonadb` and `cd python/sedonadb && maturin develop`) because it only requires GEOS with the default features enabled.
   
   The packages for Ubuntu should be:
   
   ```shell
   apt-get install libabsl-dev libssl-dev libgeos-dev libproj-dev cmake
   ```
   
   ...but the last LTS (24.04) has an Abseil version that is too old. Ubuntu 24.10 and higher should have a libabsl that is new enough.
   
   Conda is also an option on MacOS and any Linux (`conda install -c conda-forge geos proj openssl libabseil cmake pkg-config`), although I have only tried this once and I am not very good at Conda.
   
   We also can/should ensure that the Rust workspace builds without any system dependencies by turning off any tricky dependency features by default (notably, the Geography support which has the very tricky Abseil dependency).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] docs: Detailed build instructions needed for the Contributors Guide [sedona-db]

Posted by "p-vdp (via GitHub)" <gi...@apache.org>.
p-vdp commented on issue #218:
URL: https://github.com/apache/sedona-db/issues/218#issuecomment-3404351147

   No worries, thanks for jumping on it so quickly!
   
   I just tried your Dockerfile with `cargo build` and it works for me, and the Python bindings build as well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org