|
From: Sathyaish C. <sat...@gm...> - 2007-12-25 17:48:25
|
Hi!
Thank you for the interim release. It does include the CMakeLists.txt file
now.
I have successfully been able to create a Microsoft Visual C project with
CMake and the pre-release codebase you sent. However, when I build the
source, I get errors for missing header files such as stdint.h, byteswap.h,
etc.
At first, I got 100 errors for the missing header file stdint.h. I
downloaded that from the Web and put it in the VC98/Include folder and that
error went away.
Now, I get an error for the missing byteswap.h. I see the file on the Web
but it strongly recommends not using that at is not portable code.
I closely investigated your codebase and there are some pre-processor
includes that include these header files conditionally. I'll give you an
example. In sox_i.h, there's a line:
#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
#endif
The same file also, later, has the macro definitions for macros soxswapw and
dw pointing to functions byteswap_16 and _32 inside a similar pre-processor
instruction:
#ifdef HAVE_BYTESWAP_H
#define byteswap_16(x)
....
#endif
Now, I searched the entire codebase but could not find where HAVE_BYTESWAP_H
was #defined. I assume, under such circumstances that the preprocessor must
skip the inclusion of byteswap.h. Also, the macros soxswapw and dw are not
used in the source code, therefore I expect that the code must compile
without errors.
However, it expects me to provide a definition of the macros by including
the header byteswap.h.
I am sure there are more pre-processor instructions that will flag missing
header file errors. How do I rectify them?
In soxconfig.h, there are #undefs for each of these pre-processor
symbols/constants, but they are commented out. Should I just go ahead and
uncomments the relevant ones?
Regards
Sathyaish
On Dec 23, 2007 8:46 AM, robs <aq...@ya...> wrote:
> --- Sathyaish Chakravarthy <sat...@gm...>
> wrote:
> > sox 14.0.0 source using CMake. I am using the Visual
> > C++ 6.0 compiler.
> >
> > When I run CMake, it reports that it requires a
> > CMakeLists.txt file that it
>
> Sorry about that; this pre-release of 14.0.1 should
> fix the problem:
> http://www.shada.plus.com/sox/sox-14.0.1rc0.tar.gz
>
> BTW, if you need to post again, please subscribe to
> the list:
> https://lists.sourceforge.net/lists/listinfo/sox-users
>
>
> __________________________________________________________
> Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
>
|