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

Assistance Required with Gerber Parser Integration #61

Open
bharath107 opened this issue Nov 27, 2023 · 4 comments
Open

Assistance Required with Gerber Parser Integration #61

bharath107 opened this issue Nov 27, 2023 · 4 comments
Assignees

Comments

@bharath107
Copy link

Dear leehsiang ,

I hope this email finds you well. My name is Bharath, and I recently came across your Gerber Parser library on [github/repository]. I am working on a Gerber Viewer project and found your parser to be very useful for my needs.

However, I encountered some difficulties when attempting to integrate the library into my project. After successfully building the library [#include "gerber_parser/gerber_parser.h"] using CMake and including the necessary headers in my source code, I encountered the following compilation errors:

Uploading Screenshot 2023-11-27 143807.png…

I have followed the installation instructions provided in the repository, and I believe I may be missing something or have encountered a compatibility issue. I would greatly appreciate your assistance in resolving these issues so that I can successfully use the Gerber Parser in my project.

If you could provide guidance on how to address these compilation errors or any additional steps I may have overlooked, it would be immensely helpful.

Thank you in advance for your time and support. I appreciate the effort you've put into developing this library and look forward to hearing from you soon.

Best regards,

[Bharath]
[[email protected]]
[+91 6361323819]

@hsiang-lee hsiang-lee self-assigned this Dec 18, 2023
@hsiang-lee
Copy link
Owner

Could you please copy and print the compilation errors here? I can't see the screenshot image you uploaded and I do not know why.

@bharath107
Copy link
Author

bharath107 commented Dec 18, 2023 via email

@hsiang-lee
Copy link
Owner

cd gerber-parser
mkdir build
cd build
cmake .. -G "NMake Makefiles" -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DQt5_DIR=path/of/Qt

Try these commands please. It always works on my computer.

@bharath107
Copy link
Author

bharath107 commented Dec 20, 2023

Dear hsiang-lee,

I hope this message finds you well.
When attempting to use the provided commands in the command prompt:

bash

cmake .. -G "NMake Makefiles" -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DQt5_DIR=D:/qt5/5.15.2/msvc2019_64

I encountered the following error:

CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"

is not able to compile a simple test program.
...
NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\nmake.exe"' : return code '0x2'
Stop.

CMake will not be able to correctly generate this project.
It seems there is an issue with the C compiler identification, and the compilation process is failing. I have checked the specified paths, and they seem correct. However, the error persists.

Could you please provide guidance on how to address this issue? Your assistance would be highly appreciated.

Thank you for your time and support.

Best regards,
Bharath

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

2 participants