vroom - Vehicle Routing Open-source Optimization Machine

2024. 11. 30. 22:24프로그래밍/GIS

728x90

오늘은 vroom 을 빌드 해보기로 했습니다

환경은 MinGW64 Clang64 환경입니다.

 

1. 필요 패키지 설치

pacman -S mingw-w64-clang-x86_64-glpk
pacman -S mingw-w64-clang-x86_64-asio
mingw-w64-clang-x86_64-mcfgthread

 

 

2. 소스 코드 다운로드

git clone https://github.com/VROOM-Project/vroom
git submodule update --init --recursive

 

3, 빌드하기

mingw32-make

 

 

부록. 오류리스트

1.

 error: no member named 'jthread' in namespace 'std'

해법: 다음 옵션을 추가 한다. -fexperimental-library

CXXFLAGS = -MMD -MP -I. -std=c++20 -Wextra -Wpedantic -Wall -O3 -fexperimental-library -DASIO_STANDALONE -DUSE_ROUTING=$(USE_ROUTING)

 

2.

undefined symbol: __declspec(dllimport) WSACleanup

 

해법: 다음 옵션을 추가 한다. -lws2_32

LDLIBS = -lpthread -lws2_32

 

3. 참고 사이트.

 

 

Why is jthread not presented in libc++ (using clang 18, c++26)

the following code just compile with "jthread not in std". with clang 18 clang++ -std=c++26 -stdlib=libc++ and the implementation of jthread is in __thread/jthread.h, but for some reason...

stackoverflow.com

 

728x90