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 doesn't work with default CMake setup #21

Open
mbechard opened this issue Jun 14, 2024 · 2 comments
Open

Build doesn't work with default CMake setup #21

mbechard opened this issue Jun 14, 2024 · 2 comments

Comments

@mbechard
Copy link

mbechard commented Jun 14, 2024

Using CMake GUI on Windows and not changing any settings, I get the following link error when trying to compile ntv2player4k

Error LNK2001 unresolved external symbol "struct poptOption * poptHelpOptionsAutoHelp" (?poptHelpOptionsAutoHelp@@3PEAUpoptOption@@EA) ntv2player4k D:\devel\libajantv2\Build\demos\ntv2player4k\main.obj

@paulh-aja
Copy link
Collaborator

Malcom,
Which branch did you check out? Which CMake generator are you using? Could you pastebin your CMake settings so I can take a look?

I just tested building libajantv2, including ntv2player4k, with a VS2022 solution generated by CMake GUI. I used the default CMake options presented after running the Configure step, and then ran the Generate step for VS2022. Upon running cmake --build <build-dir> everything built successfully. I didn't see any errors of any kind.

@mbechard
Copy link
Author

Hey Paul,

Thanks for the quick reply. This happened both using the head of main today, as well as tag ntv2_17_0_1.
Sorry, I realize AJANTV2_BUILD_SHARED needs to be turned on to get this error.

I'm using CMake 2.28.1, Visual Studio 2019. I compiled using the Visual Studio project directly, not via cmake --build

Here is the CMakeCache.txt from that configuration.
CMakeCache.txt

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