일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 쉘
- ngui
- ubuntu
- mysql
- List
- DROP
- boost
- expect
- pandas
- Unity
- SSH
- with
- FIND
- awk
- sql
- C++
- c++11
- python
- if
- conda
- Eclipse
- pi
- SVN
- Shader
- autovacuum
- dataframe
- 배열
- null
- sqlite
- postgresql
- Today
- Total
その先にあるもの…
poco c++ 윈도우 컴파일 기록 본문
https://github.com/pocoproject/poco/releases 다운로드
우분투 버전이 18이기도 하고 openssl3 때문에 이전 버전 다운로드
윈도우는 pocoporject에서 1.12.2-all 다운로드
윈도우
미리부터 결론 2022(170)으로 컴파일 실패. 2022삭제 후 2019버전 설치 시 c++옵션과 winsdk 설치
참조 블로그
https://blog.naver.com/PostView.naver?blogId=sonmg&logNo=222348986911
https://neodreamer-dev.blogspot.com/2017/11/poco-library.html
필요 준비물
poco c++ ( pocoproject.org, 또는 git에서 받음 )
window sdk 10
openssl - h와 lib필요
https://github.com/pocoproject/openssl
빌드 명령powershell -ExecutionPolicy RemoteSigned -File build.ps1 -openssl_release 1.1.0g -vs_version 160 -config both -platform x64 -library both
mysql - h와 lib필요
https://dev.mysql.com/downloads/mysql/
postgresql - h와 lib필요
https://www.enterprisedb.com/download-postgresql-binaries
buildwin.cmd로 빌드
# buildwin
Usage:
------
buildwin VS_VERSION [ACTION] [LINKMODE] [CONFIGURATION] [PLATFORM] [SAMPLES] [TESTS] [TOOL] [ENV] [VERBOSITY]
VS_VERSION: "140|150|160"
ACTION: "build|rebuild|clean"
LINKMODE: "static_mt|static_md|shared|all"
CONFIGURATION: "release|debug|both"
PLATFORM: "Win32|x64"
SAMPLES: "samples|nosamples"
TESTS: "tests|notests"
TOOL: "devenv|vcexpress|wdexpress|msbuild"
ENV: "env|noenv" (active only with msbuild, defaulted to env)
VERBOSITY: "quiet|minimal|normal|detailed|diagnostic" only for msbuild
Default is build all.
buildwin.cmd 160면 2019로 컴파일
ex) buildwin.cmd 160 build all both x64 nosamples notests
crypto 빌드 에러
빌드한 openssl에서 include/openssl폴더를 crypto/include에 복사
crypto 링크 에러
poco-1.12.2-all/lib에 openssl관련 lib 파일 복사
mysql 빌드 에러
설치된 폴더에서 include폴더를 data/mysql/include에 복사
mysql 링크 에러
poco-1.12.2-all/lib에 sql관련 lib 파일 복사
EVP_PKEY_sign에가 나오면 샘플 코드 형변환 해주면 됨
nt EVP_PKEY_size(const EVP_PKEY *pkey);
설치 삽질 기록
vs 170 버전으로 컴파일 시도.
buildwind.cmd 부터 에러
Error: No Visual C++ environment found.
Please run this script from a Visual Studio Command Prompt
or run "%%VSnnCOMNTOOLS%%\vsvars32.bat" first.
에러 발생
https://neodreamer-dev.blogspot.com/2017/11/poco-library.html
두 번째 에러 부분에서 해결
buildwin.cmd 안에
set VS170COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2022\~~~\Common7\Tools\
을 작성하면 해결.
window sdk 10 미설치 때문에 에러
https://developer.microsoft.com/ko-kr/windows/downloads/sdk-archive/
다운로드 설치
Error: No Visual C++ environment found. 에러 발생
빌드 포기
vs 삭제
'프로그래밍 > C++' 카테고리의 다른 글
eclips에서 so파일 세팅 (0) | 2022.08.30 |
---|---|
poco c++ 우분투 컴파일 기록 (0) | 2022.08.30 |
펌) [C언어/C++] 시간 관련함수에 대해서 (time, localtime, ctime, asctime) (0) | 2021.11.18 |
삽입정렬 (0) | 2021.08.13 |
버블정렬 (0) | 2021.08.13 |