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

Build tmxparser library failed #79

Open
vanluom123 opened this issue Feb 8, 2020 · 5 comments · May be fixed by #84
Open

Build tmxparser library failed #79

vanluom123 opened this issue Feb 8, 2020 · 5 comments · May be fixed by #84

Comments

@vanluom123
Copy link

vanluom123 commented Feb 8, 2020

Hello, i have a problem while building tmxparser library. The problem follow as below.
Please, help me fix it. Thanks!

1>------ Build started: Project: tmxparser, Configuration: Debug Win32 ------
2>------ Build started: Project: tmxparser_static, Configuration: Debug Win32 ------
2>Building Custom Rule C:/Users/phanv/Desktop/tmxparser/CMakeLists.txt
1>cl : command line error D8021: invalid numeric argument '/Werror=strict-prototypes'
1>Done building project "tmxparser.vcxproj" -- FAILED.
3>------ Build started: Project: run_tests, Configuration: Debug Win32 ------
2>cl : command line error D8021: invalid numeric argument '/Werror=strict-prototypes'
3>Building Custom Rule C:/Users/phanv/Desktop/tmxparser/CMakeLists.txt
3>cl : command line error D8021: invalid numeric argument '/Werror'
2>Done building project "tmxparser_static.vcxproj" -- FAILED.
3>Done building project "run_tests.vcxproj" -- FAILED.
4>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
4>Building Custom Rule C:/Users/phanv/Desktop/tmxparser/CMakeLists.txt
========== Build: 1 succeeded, 3 failed, 1 up-to-date, 0 skipped ==========

@Pingimingi22
Copy link

/Werror type commands are a GCC/Clang thing and don't work in Visual Studio. I got around this error by going into my Visual Studio solution and opening up the project properties for the tmxparser project. Under Configuration Properties go to C/C++ and and then Command Line. I removed the /Werror commands from there and those errors were fixed. You could also find where these commands are being set in one of the CMakeLists.txt files and remove them there.

@AzP
Copy link
Contributor

AzP commented Mar 1, 2023

I got a related issue on GCC 12.2.1. It looks like the build arguments should perhaps be removed nowadays.

[1/24] Building CXX object CMakeFiles/tmxparser.dir/src/TmxEllipse.cpp.o
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=strict-prototypes’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=old-style-definition’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=missing-prototypes’ is not valid for C++

@AzP AzP linked a pull request Mar 1, 2023 that will close this issue
@vanluom123
Copy link
Author

vanluom123 commented May 9, 2023

@AzP I removed flags and it worked fine on CMake to build the library. Thanks!

@AzP
Copy link
Contributor

AzP commented May 9, 2023

@AzP I removed flags and it worked fine on CMake to build the library. Thanks!

@vanluom123, I'm happy I could help!

It seems the PR is still not approved though. If the fix isn't in, the bug still exist in the repository, so the bug should be kept open.

@vanluom123
Copy link
Author

Okay, @AzP. I will reopen this issue. It will be closed when PR is merged

@vanluom123 vanluom123 reopened this May 10, 2023
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

Successfully merging a pull request may close this issue.

3 participants