nu774 / fdkaac

command line encoder frontend for libfdk-aac
Other
261 stars 59 forks source link

aacenc_lib.h not in the requested location (MSVC) #4

Closed ghost closed 11 years ago

ghost commented 11 years ago

MSVC 2010, Windows 7 64-bit.

an error with fdkaac\src\aacenc.h:

changing line 8 from:

#include <fdk-aac/aacenc_lib.h>

to:

#include <fdk-aac/libAACenc/include/aacenc_lib.h>

allows the program to build. MSVC was complaining that it couldn't find aacenc_lib.h at all. I don't remember the exact error.

nu774 commented 11 years ago

You don't need such changes to the source code. Header location is passed to the compiler from AdditionalIncludeDirectories property of project setting. If you created your own 64bit project setting (which is not provided), look more carefully at 32bit project settings.

ghost commented 11 years ago

when I changed nothing and used the provided project, fdkaac would not build. changing the line that I changed was all I did. after doing so, I was then able to build it.

is there a special way to build with MSVC? I just opened the project (provided with the download), right-clicked on the top build target, and selected "Build".

I usually use Linux, so I'm not familiar with these "solutions" as much as GNU autotools.

nu774 commented 11 years ago

Oh, sorry. I thought you created/modified project because you said "64-bit". So, you were just mentioning your OS environment and not 64bit compilation, right? And I found why this MSVC build issue does not reproduce in my environment. I will manage to fix it somehow. Thanks for reporting.

ghost commented 11 years ago

correct, just the environment. it's a 32-bit build.

nu774 commented 11 years ago

Fixed in the last commit. Could you try with it?

ghost commented 11 years ago

tried it without changing anything from a fresh download and it builds fine.

nu774 commented 11 years ago

OK, thanks!