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

[Compilation issue] #35

Open
SenHaiFeiXia opened this issue Jul 22, 2024 · 2 comments
Open

[Compilation issue] #35

SenHaiFeiXia opened this issue Jul 22, 2024 · 2 comments
Assignees
Labels
compilation issues Problems at compile time

Comments

@SenHaiFeiXia
Copy link

Notice:

  • If you do not provide a 'star'⭐, the question may not be answered.(如果您未给出Star⭐,问题将有可能不予以回复)

Desktop (please complete the following information):

  • Windows OS Version: [ windows 10]
  • SLMaster Version: [ 1.2.5]
  • OpenCV Version: [4.8.0]
  • VTK Version: [9.2.0]
  • PCL Version: [1.12.1]
  • Qt Version: [ 5.15.0]

Describe the compilation issue
A clear and concise description of what the compilation issue is.
2>C:\Fq\SLMaster\SLMaster\src\device\camera\module\huaray_camera\src\huarayCamera.cpp(46,18): error C2039: "cameraUserId_": 不是 "slmaster::device::CameraInfo" 的成员
2>C:\Fq\SLMaster\SLMaster\src\device\camera\common\camera.h(30): message : 参见“slmaster::device::CameraInfo”的声明
2>C:\Fq\SLMaster\SLMaster\src\device\camera\module\huaray_camera\src\huarayCamera.cpp(47,18): error C2039: "deviceType_": 不是 "slmaster::device::CameraInfo" 的成员
2>C:\Fq\SLMaster\SLMaster\src\device\camera\common\camera.h(30): message : 参见“slmaster::device::CameraInfo”的声明
Screenshots

1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xx.cpp(28,5): error C2065: “cols_”: 未声明的标识符
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xx.cpp(29,5): error C2065: “rows_”: 未声明的标识符
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xx.cpp(146,22): error C2039: "exposureTime_": 不是 "slmaster::device::PatternOrderSet" 的成员
1>C:\Fq\SLMaster\SLMaster\src\device\projector\common\projector.h(26): message : 参见“slmaster::device::PatternOrderSet”的声明
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xx.cpp(290,28): error C2065: “cols_”: 未声明的标识符
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xx.cpp(291,29): error C2065: “rows_”: 未声明的标识符
1>projectorDlpc34xxDual.cpp
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\include\projectorDlpc34xxDual.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
1>C:\Fq\SLMaster\SLMaster\src\device\projector\common\projector.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
5>cameraFactory.cpp
3>C:\Fq\SLMaster\SLMaster\src\algorithm\cpuStructuredLight\recoverDepth.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
5>C:\Fq\SLMaster\SLMaster\src\device\camera\common\cameraFactory.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
4>ODITFReader.cpp
5>C:\Fq\SLMaster\SLMaster\src\device\camera\module\huaray_camera\include\huarayCamera.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
5>C:\Fq\SLMaster\SLMaster\src\device\camera\common\camera.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
4>ODITFWriter.cpp
4>ODMultiUPCEANReader.cpp
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\include\common.hpp(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xxDual.cpp(28,5): error C2065: “cols_”: 未声明的标识符
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xxDual.cpp(29,5): error C2065: “rows_”: 未声明的标识符
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xxDual.cpp(153,22): error C2039: "exposureTime_": 不是 "slmaster::device::PatternOrderSet" 的成员
1>C:\Fq\SLMaster\SLMaster\src\device\projector\common\projector.h(26): message : 参见“slmaster::device::PatternOrderSet”的声明
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xxDual.cpp(294,28): error C2065: “cols_”: 未声明的标识符
1>C:\Fq\SLMaster\SLMaster\src\device\projector\module\projector_dlpc_api\src\projectorDlpc34xxDual.cpp(295,29): error C2065: “rows_”: 未声明的标识符
1>正在生成代码...
If applicable, add screenshots to help explain your problem.
image

Additional context
Add any other context about the issue here.
在编译过程中遇到上述报错,查看源码发现应该没有问题,请问是否是我环境配置的问题呢?

@Practice3DVision
Copy link
Owner

该问题与之相同:https://github.com/Practice3DVision/SLMaster/issues/16#issuecomment-2084828874。

尝试将相关文件做CRLF与LF的格式更换。

@SenHaiFeiXia
Copy link
Author

十分感谢博主的回答,编译过程中遇到几个新问题:
1.我成功生成了SLMasterGui.exe,但是运行过程中显示我缺少.dll文件,尝试将该exe直接覆盖您的release版本中的exe文件后成功运行。这可能会对后续运行产生影响吗?
image
image
2.您使用的是华睿相机,请问您使用的是网络相机还是USB接口的呢?我现在手头只有两个海康的网络相机,需要通过网口进行连接。计划直接在您的SLMaster\src\device\camera\module下添加相关相机控制代码,不知是否可行?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilation issues Problems at compile time
Projects
None yet
Development

No branches or pull requests

2 participants