Code Monkey home page Code Monkey logo

Comments (6)

ankane avatar ankane commented on May 12, 2024

Hey @cdtaichen, can you try the windows branch? https://github.com/pgvector/pgvector/compare/windows

This adds PGDLLEXPORT, which may help (from looking at this thread).

from pgvector.

cdtaichen avatar cdtaichen commented on May 12, 2024

Ok, I will try this right now, thanks!

from pgvector.

ankane avatar ankane commented on May 12, 2024

Great. Would also be good to see the error message from the Postgres server log when it crashes (not sure where that'll be on Windows).

from pgvector.

ankane avatar ankane commented on May 12, 2024

fwiw, I was able to get the tests passing with MSYS2 (without the PGDLLEXPORT change).

Code: https://github.com/pgvector/pgvector/blob/windows-ci/.github/workflows/build.yml
Logs: https://github.com/pgvector/pgvector/actions/runs/3201375566/jobs/5229281611

from pgvector.

cdtaichen avatar cdtaichen commented on May 12, 2024

Hi Kane,

This is my GCC compile batch file, is it ok for this project?

//---

@echo Compile Windows Dll using GCC
@echo.
@echo off

gcc -shared -W ^
-std=c99 ^
-fPIC ^
src/ivfbuild.c src/ivfflat.c src/ivfinsert.c src/ivfkmeans.c src/ivfscan.c src/ivfutils.c src/ivfvacuum.c src/vector.c ^
-o vector.dll ^
-I ../../../_Include/Kernel/TCDBLib/PostgreSQL/PG14/server/port/win32_msvc ^
-I ../../../_Include/Kernel/TCDBLib/PostgreSQL/PG14/server/port/win32 ^
-I ../../../_Include/Kernel/TCDBLib/PostgreSQL/PG14/server ^
-I ../../../_Include/Kernel/TCDBLib/PostgreSQL/PG14 ^
-L ../../../_Output/Runtime/PostgreSQL/PG14/lib ^
-l:postgres.lib ^
-l:libpgcommon.lib ^
-l:libpgport.lib

@echo.

pause

from pgvector.

ankane avatar ankane commented on May 12, 2024

Sorry echo, it looks like you were accidentally tagged. Moved to #38 to reduce noise.

from pgvector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.