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

Building in Windows 10 environment #22

Open
JahedulAnowar opened this issue Apr 20, 2022 · 0 comments
Open

Building in Windows 10 environment #22

JahedulAnowar opened this issue Apr 20, 2022 · 0 comments

Comments

@JahedulAnowar
Copy link

I am trying to build it on a windows 10 pc (not sure whether it's possible or not).
I get the following error:

> meson . build
The Meson build system
Version: 0.62.0
Source dir: C:\Users\user\g-streamer\realsense-gstreamer
Build dir: C:\Users\user\g-streamer\realsense-gstreamer\build
Build type: native build
Project name: realsensesrc
Project version: 0.1.0
Activating VS 16.11.9
C++ compiler for the host machine: cl (msvc 19.29.30139 "Microsoft(R) C/C++ Optimizing Compiler Version 19.29.30139 for x64")
C++ linker for the host machine: link link 14.29.30139.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE (0.29.2)
Run-time dependency gstreamer-1.0 found: YES 1.20.1
Configuring config.h using configuration
Run-time dependency gstreamer-video-1.0 found: YES 1.20.1
Run-time dependency gstreamer-audio-1.0 found: YES 1.20.1
Found CMake: C:\Program Files\CMake\bin\cmake.EXE (3.23.1)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency realsense2 found: NO (tried pkgconfig and cmake)

src\meson.build:20:0: ERROR: Dependency "realsense2" not found, tried pkgconfig and cmake

A full log can be found at C:\Users\user\g-streamer\realsense-gstreamer\build\meson-logs\meson-log.txt

Here is the full log:

Build started at 2022-04-20T14:34:47.676715
Main binary: c:\users\user\appdata\local\programs\python\python37\python.exe
Build Options: 
Python system: Windows
The Meson build system
Version: 0.62.0
Source dir: C:\Users\user\g-streamer\realsense-gstreamer
Build dir: C:\Users\user\g-streamer\realsense-gstreamer\build
Build type: native build
Project name: realsensesrc
Project version: 0.1.0
Activating VS 16.11.9
Sanity testing C++ compiler: cl
Is cross compiler: False.
Sanity check compiler command line: cl sanitycheckcpp.cc /Fesanitycheckcpp.exe /MDd /nologo /showIncludes /utf-8 /link
Sanity check compile stdout:
sanitycheckcpp.cc

-----
Sanity check compile stderr:

-----
Running test binary command: C:\Users\user\g-streamer\realsense-gstreamer\build\meson-private\sanitycheckcpp.exe
C++ compiler for the host machine: cl (msvc 19.29.30139 "Microsoft(R) C/C++ Optimizing Compiler Version 19.29.30139 for x64")
C++ linker for the host machine: link link 14.29.30139.0
Sanity testing C++ compiler: cl
Is cross compiler: False.
Sanity check compiler command line: cl sanitycheckcpp.cc /Fesanitycheckcpp.exe /MDd /nologo /showIncludes /utf-8 /link
Sanity check compile stdout:
sanitycheckcpp.cc

-----
Sanity check compile stderr:

-----
Running test binary command: C:\Users\user\g-streamer\realsense-gstreamer\build\meson-private\sanitycheckcpp.exe
C++ compiler for the build machine: cl (msvc 19.29.30139 "Microsoft(R) C/C++ Optimizing Compiler Version 19.29.30139 for x64")
C++ linker for the build machine: link link 14.29.30139.0
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Pkg-config binary for 1 is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Found pkg-config: C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE (0.29.2)
Determining dependency 'gstreamer-1.0' with pkg-config executable 'C:\\gstreamer\\1.0\\msvc_x86_64\\bin\\pkg-config.EXE'
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --modversion gstreamer-1.0` -> 0
1.20.1
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --cflags gstreamer-1.0` -> 0
-IC:/gstreamer/1.0/msvc_x86_64/include/gstreamer-1.0 -IC:/gstreamer/1.0/msvc_x86_64/include -IC:/gstreamer/1.0/msvc_x86_64/include/glib-2.0 -IC:/gstreamer/1.0/msvc_x86_64/lib/glib-2.0/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --libs gstreamer-1.0` -> 0
-LC:/gstreamer/1.0/msvc_x86_64/lib -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --libs gstreamer-1.0` -> 0
-LC:/gstreamer/1.0/msvc_x86_64/lib -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl
Running compile:
Working directory:  C:\Users\user\g-streamer\realsense-gstreamer\build\meson-private\tmpv9ycmcxx
Command line:  cl C:\Users\user\g-streamer\realsense-gstreamer\build\meson-private\tmpv9ycmcxx\testfile.cpp /FeC:\Users\user\g-streamer\realsense-gstreamer\build\meson-private\tmpv9ycmcxx\output.exe /nologo /showIncludes /utf-8 /MDd /nologo /showIncludes /utf-8 /Od /Oi- 

Code:
 #include<stdio.h>
        
        int main(void) {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        }
Compiler stdout:
 testfile.cpp
����: �C���N���[�h �t�@�C��:  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h
����: �C���N���[�h �t�@�C��:   C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt.h
����: �C���N���[�h �t�@�C��:    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\vcruntime.h
����: �C���N���[�h �t�@�C��:     C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\sal.h
����: �C���N���[�h �t�@�C��:      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\concurrencysal.h
����: �C���N���[�h �t�@�C��:     C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\vadefs.h
����: �C���N���[�h �t�@�C��:   C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_wstdio.h
����: �C���N���[�h �t�@�C��:    C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_stdio_config.h

Compiler stderr:
 
Program stdout:

8

Program stderr:


Run-time dependency gstreamer-1.0 found: YES 1.20.1
Configuring config.h using configuration
Pkg-config binary for 1 is cached.
Determining dependency 'gstreamer-video-1.0' with pkg-config executable 'C:\\gstreamer\\1.0\\msvc_x86_64\\bin\\pkg-config.EXE'
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --modversion gstreamer-video-1.0` -> 0
1.20.1
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --cflags gstreamer-video-1.0` -> 0
-IC:/gstreamer/1.0/msvc_x86_64/include/gstreamer-1.0 -IC:/gstreamer/1.0/msvc_x86_64/include/orc-0.4 -IC:/gstreamer/1.0/msvc_x86_64/include/gstreamer-1.0 -IC:/gstreamer/1.0/msvc_x86_64/include -IC:/gstreamer/1.0/msvc_x86_64/include/glib-2.0 -IC:/gstreamer/1.0/msvc_x86_64/lib/glib-2.0/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --libs gstreamer-video-1.0` -> 0
-LC:/gstreamer/1.0/msvc_x86_64/lib -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --libs gstreamer-video-1.0` -> 0
-LC:/gstreamer/1.0/msvc_x86_64/lib -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl
Run-time dependency gstreamer-video-1.0 found: YES 1.20.1
Pkg-config binary for 1 is cached.
Determining dependency 'gstreamer-audio-1.0' with pkg-config executable 'C:\\gstreamer\\1.0\\msvc_x86_64\\bin\\pkg-config.EXE'
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --modversion gstreamer-audio-1.0` -> 0
1.20.1
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --cflags gstreamer-audio-1.0` -> 0
-IC:/gstreamer/1.0/msvc_x86_64/include/gstreamer-1.0 -IC:/gstreamer/1.0/msvc_x86_64/include -IC:/gstreamer/1.0/msvc_x86_64/include/orc-0.4 -IC:/gstreamer/1.0/msvc_x86_64/include/gstreamer-1.0 -IC:/gstreamer/1.0/msvc_x86_64/include -IC:/gstreamer/1.0/msvc_x86_64/include/glib-2.0 -IC:/gstreamer/1.0/msvc_x86_64/lib/glib-2.0/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --libs gstreamer-audio-1.0` -> 0
-LC:/gstreamer/1.0/msvc_x86_64/lib -lgstaudio-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --libs gstreamer-audio-1.0` -> 0
-LC:/gstreamer/1.0/msvc_x86_64/lib -lgstaudio-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl
Run-time dependency gstreamer-audio-1.0 found: YES 1.20.1
Pkg-config binary for 1 is cached.
Determining dependency 'realsense2' with pkg-config executable 'C:\\gstreamer\\1.0\\msvc_x86_64\\bin\\pkg-config.EXE'
env[PKG_CONFIG_PATH]: 
Called `C:\gstreamer\1.0\msvc_x86_64\bin\pkg-config.EXE --modversion realsense2` -> 1

CMake binary for 1 is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Found CMake: C:\Program Files\CMake\bin\cmake.EXE (3.23.1)
Extracting basic cmake information
CMake Toolchain: Calling CMake once to generate the compiler state
Calling CMake (['C:\\Program Files\\CMake\\bin\\cmake.EXE']) in C:\Users\user\g-streamer\realsense-gstreamer\build\meson-private\__CMake_compiler_info__ with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-G"
  - "Ninja"
  - "-DCMAKE_TOOLCHAIN_FILE=C:/Users/user/g-streamer/realsense-gstreamer/build/meson-private/__CMake_compiler_info__/CMakeMesonTempToolchainFile.cmake"
  - "."
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Try CMake generator: auto
Calling CMake (['C:\\Program Files\\CMake\\bin\\cmake.EXE']) in C:\Users\user\g-streamer\realsense-gstreamer\build\meson-private\cmake_realsense2 with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-DCMAKE_TOOLCHAIN_FILE=C:/Users/user/g-streamer/realsense-gstreamer/build/meson-private/cmake_realsense2/CMakeMesonToolchainFile.cmake"
  - "."
  -- Module search paths:    ['C:/Program Files', 'C:/Program Files (x86)', 'C:/Program Files/CMake']
  -- CMake root:             C:/Program Files/CMake/share/cmake-3.23
  -- CMake architectures:    []
  -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share']
Preliminary CMake check failed. Aborting.
Run-time dependency realsense2 found: NO (tried pkgconfig and cmake)

src\meson.build:20:0: ERROR: Dependency "realsense2" not found, tried pkgconfig and cmake

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

1 participant