Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

H.264 encoder compilation issues

evgenyka
Beginner
1,217 Views

Hello Intel technical support team!

I've problem linking Intel H264 sample-code with IPP v5.2 using MSVS 2005.

I have the following warnings and error messages:

-------------------------------------------------------------------------------------------------------

1>------ Build started: Project: h264enc_ipp, Configuration: Release Win32 ------

1>Compiling...

1>vm_time_win32.c

1>.srcvm_time_win32.c(36) : warning C4013: 'SwitchToThread' undefined; assuming extern returning int

1>Linking...

1>vm_time_win32.obj : error LNK2001: unresolved external symbol _SwitchToThread

1>vm_mutex_win32.obj : error LNK2001: unresolved external symbol _TryEnterCriticalSection

1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main

1>D:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseh264enc_ipp.exe : fatal error LNK1120: 3 unresolved externals

1>Build log was saved at "file://d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseBuildLog.htm"

1>h264enc_ipp - 4 error(s), 1 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

-------------------------------------------------------------------------------------------------------

I think the problem is that "winbase.h" doesn't appear in IPP package.

So, where I can download a valid "winbase.h"?

P.S. Currently, I've downloaded "winbase.h" from:

http://www.csee.umbc.edu/~squire/download/WinBase.h.

Thank you for advance,

Evgeny Kaminsky

0 Kudos
10 Replies
registered_user
Beginner
1,217 Views
winbase.h is a part of Microsoft Platform SDK.
You may download it here - http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en

0 Kudos
Vladimir_Dudnik
Employee
1,217 Views

Please also make sure that macro _WIN32_WINNT=0x0500 is used during compilation of UMC vm library. When it is defined than TryEnterCriticalSection and SwitchToThreadfunctionsare enabled in Windows headers. (These functionswere introduced in Windows 2000)

Regards,
Vladimir

0 Kudos
evgenyka
Beginner
1,217 Views

Hello Vladimir,

Thank you for your help!

How I should define TryEnterCriticalSection and SwitchToThread?

1. I've changed #include winbase.h to #include "C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKIncludeWinBase.h" in vm_time_win32.c (I steal get four errors)

2. I've copiedTryEnterCriticalSection and SwitchToThread from "winbase.h" to "vm_types.h" as follows:

WINBASEAPI

BOOL

WINAPI

TryEnterCriticalSection(

__inout LPCRITICAL_SECTION lpCriticalSection

);

WINBASEAPI

BOOL

WINAPI

SwitchToThread(

VOID

);

Now, I have only two errors (However, I think this is not the right "definition"!):

1>Linking...

1>msvcrt.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main

1>D:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseh264enc_ipp.exe : fatal error LNK1120: 1 unresolved externals

1>Build log was saved at "file://d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseBuildLog.htm"

1>h264enc_ipp - 2 error(s), 53 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

However, I get the above errors after I added both libraries "msvcrt.lib" "msvcmrt.lib" in Linker Input Additional Dependencies.

P.S. Do you have H.264 single project that works in MSVS 2005?

Thanks for advance,

Evgeny
0 Kudos
registered_user
Beginner
1,217 Views
if you do have platform sdk, then all you need to do is to define _WIN32_WINNT=0x0500 as it was said.
you don't suppose to copy anything from headers to your own code - leave everything as is.
in Visual Studio go to project setting and put this string into c/c++ -> preprocessor -> preprocessor definitions. (I'm using 2003 right now and don't remember how it was in 2005)

actually both functions requires only _WIN32_WINNT >= 0x0400 though.
0 Kudos
evgenyka
Beginner
1,217 Views

Hello registered.user,

Thank you!

But, I still have error LNK2001 as follows:

1>Linking...

1>msvcrt.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main

1>D:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseh264enc_ipp.exe : fatal error LNK1120: 1 unresolved externals

1>Build log was saved at "file://d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseBuildLog.htm"

1>h264enc_ipp - 2 error(s), 53 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Best regards,

Evgeny

0 Kudos
registered_user
Beginner
1,217 Views
you probably have switched on flag for "Ignore all default libraries" in Linker -> Input. Switch it off, ie to "No". Otherwise you should add all standard C libraries by yourself - like libcmt.lib etc...
0 Kudos
evgenyka
Beginner
1,217 Views

Thanks,

Unfortunately I still have the LNK2001 error.(However, I try both "Yes" and "No" options in Linker -> Input). The build log is attached below.

Best regards,

Evgeny

----------------------------------------------------------------------------------------

Rebuild started: Project: h264enc_ipp, Configuration: Release|Win32

Command Lines
Creating temporary file "d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseRSP00005025401268.rsp" with contents
[
/O2 /GL /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_WIN32_WINNT=0x0500" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Fo"Release" /Fd"Releasevc80.pdb" /W3 /c /Wp64 /Zi /TC /Zl .srcvm_time_win32.c

.srcvm_thread_win32.c

.srcvm_mutex_win32.c

.srcvm_event_win32.c

.srcvm_debug_win32.c
]
Creating command line "cl.exe @d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseRSP00005025401268.rsp /nologo /errorReport:prompt"
Creating temporary file "d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseRSP00005125401268.rsp" with contents
[
/O2 /GL /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_WIN32_WINNT=0x0500" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Fo"Release" /Fd"Releasevc80.pdb" /W3 /c /Wp64 /Zi /TP /Zl .srcumc_video_resizing.cpp

.srcumc_video_processing.cpp

.srcumc_video_data.cpp

.srcumc_media_data.cpp

.srcumc_malloc.cpp

.srcumc_h264_video_encoder.cpp

.srcumc_h264_tables.cpp

.srcumc_h264_sad.cpp

.srcumc_h264_pub.cpp

.srcumc_h264_pack.cpp

.srcumc_h264_npf.cpp

.srcumc_h264_me.cpp

.srcumc_h264_mc.cpp

.srcumc_h264_gen_enc.cpp

.srcumc_h264_expand.cpp

.srcumc_h264_ermb.cpp

.srcumc_h264_enc_info.cpp

.srcumc_h264_enc_cpb.cpp

.srcumc_h264_deblocking_tools.cpp

.srcumc_h264_deblocking_mbaff.cpp

.srcumc_h264_deblocking.cpp

.srcumc_h264_core_enc.cpp

.srcumc_h264_bs.cpp

.srcumc_h264_base.cpp

.srcumc_h264_avbr.cpp

.srcumc_h264_aic.cpp

.srcumc_deinterlacing.cpp

.srcumc_default_memory_allocator.cpp

.srcumc_color_space_conversion.cpp

.srcumc_base_codec.cpp

.srcumc_base_bitstream.cpp
]
Creating command line "cl.exe @d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseRSP00005125401268.rsp /nologo /errorReport:prompt"
Creating temporary file "d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseRSP00005225401268.rsp" with contents
[
/OUT:"D:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseh264enc_ipp.exe" /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:"Releaseh264enc_ipp.exe.intermediate.manifest" /DEBUG /PDB:"d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseh264enc_ipp.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /MACHINE:X86 ippvc.lib ippcv.lib ipps.lib ippcc.lib ippi.lib msvcrt.lib msvcmrt.lib ippdc.lib ippr.lib ippch.lib ippcore.lib ippm.lib ippvm.lib ippj.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

".Releaseumc_base_bitstream.obj"

".Releaseumc_base_codec.obj"

".Releaseumc_color_space_conversion.obj"

".Releaseumc_default_memory_allocator.obj"

".Releaseum
c_deinterlacing.obj"

".Releaseumc_h264_aic.obj"

".Releaseumc_h264_avbr.obj"

".Releaseumc_h264_base.obj"

".Releaseumc_h264_bs.obj"

".Releaseumc_h264_core_enc.obj"

".Releaseumc_h264_deblocking.obj"

".Releaseumc_h264_deblocking_mbaff.obj"

".Releaseumc_h264_deblocking_tools.obj"

".Releaseumc_h264_enc_cpb.obj"

".Releaseumc_h264_enc_info.obj"

".Releaseumc_h264_ermb.obj"

".Releaseumc_h264_expand.obj"

".Releaseumc_h264_gen_enc.obj"

".Releaseumc_h264_mc.obj"

".Releaseumc_h264_me.obj"

".Releaseumc_h264_npf.obj"

".Releaseumc_h264_pack.obj"

".Releaseumc_h264_pub.obj"

".Releaseumc_h264_sad.obj"

".Releaseumc_h264_tables.obj"

".Releaseumc_h264_video_encoder.obj"

".Releaseumc_malloc.obj"

".Releaseumc_media_data.obj"

".Releaseumc_video_data.obj"

".Releaseumc_video_processing.obj"

".Releaseumc_video_resizing.obj"

".Releasevm_debug_win32.obj"

".Releasevm_event_win32.obj"

".Releasevm_mutex_win32.obj"

".Releasevm_thread_win32.obj"

".Releasevm_time_win32.obj"
]
Creating command line "link.exe @d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseRSP00005225401268.rsp /NOLOGO /ERRORREPORT:PROMPT"
Output Window
Compiling...
vm_time_win32.c
vm_thread_win32.c
vm_mutex_win32.c
vm_event_win32.c
vm_debug_win32.c
Compiling...
umc_video_resizing.cpp
.srcumc_video_resizing.cpp(73) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(73) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(97) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(97) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(109) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(109) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(121) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(121) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(138) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(138) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(150) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(150) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(162) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_video_resizing.cpp(162) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
umc_video_processing.cpp
.srcumc_video_processing.cpp(166) : warning C4267: 'initializing' : conversion from 'size_t' to 'Ipp32s', possible loss of data
umc_video_data.cpp

.srcumc_video_data.cpp(377) : warning C4244: 'argument' : conversion from '__w64 int' to 'Ipp32s', possible loss of data
umc_media_data.cpp
.srcumc_media_data.cpp(202) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
umc_malloc.cpp
umc_h264_video_encoder.cpp
.srcumc_h264_video_encoder.cpp(152) : warning C4996: '_wfopen': This function or variable may be unsafe. Consider using _wfopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(560) : see declaration of '_wfopen'
.srcumc_h264_video_encoder.cpp(162) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(167) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(169) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(170) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(172) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(176) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(177) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(178) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(180) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for
 details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(182) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(185) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(197) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(203) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(205) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(210) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(215) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(216) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(217) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(218) : warning C4996: 'swscanf': This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
.srcumc_h264_video_encoder.cpp(220) : warning C4996: 'swscanf': This f
unction or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        C:Program FilesMicrosoft Visual Studio 8VCincludestdio.h(542) : see declaration of 'swscanf'
umc_h264_tables.cpp
umc_h264_sad.cpp
umc_h264_pub.cpp
umc_h264_pack.cpp
umc_h264_npf.cpp
umc_h264_me.cpp
umc_h264_mc.cpp
umc_h264_gen_enc.cpp
umc_h264_expand.cpp
umc_h264_ermb.cpp
umc_h264_enc_info.cpp
umc_h264_enc_cpb.cpp
umc_h264_deblocking_tools.cpp
umc_h264_deblocking_mbaff.cpp
Compiling...
umc_h264_deblocking.cpp
umc_h264_core_enc.cpp
umc_h264_bs.cpp
umc_h264_base.cpp
umc_h264_avbr.cpp
umc_h264_aic.cpp
umc_deinterlacing.cpp
.srcumc_deinterlacing.cpp(69) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_deinterlacing.cpp(71) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
umc_default_memory_allocator.cpp
.srcumc_default_memory_allocator.cpp(67) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
umc_color_space_conversion.cpp
.srcumc_color_space_conversion.cpp(109) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_color_space_conversion.cpp(109) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
.srcumc_color_space_conversion.cpp(111) : warning C4267: 'argument' : conversion from 'size_t' to 'Ipp32s', possible loss of data
.srcumc_color_space_conversion.cpp(111) : warning C4267: 'argument' : conversion from 'size_t' to 'Ipp32s', possible loss of data
.srcumc_color_space_conversion.cpp(114) : warning C4267: 'argument' : conversion from 'size_t' to 'Ipp32s', possible loss of data
.srcumc_color_space_conversion.cpp(114) : warning C4267: 'argument' : conversion from 'size_t' to 'Ipp32s', possible loss of data
.srcumc_color_space_conversion.cpp(125) : warning C4267: 'initializing' : conversion from 'size_t' to 'Ipp32s', possible loss of data
.srcumc_color_space_conversion.cpp(126) : warning C4267: 'initializing' : conversion from 'size_t' to 'Ipp32s', possible loss of data
.srcumc_color_space_conversion.cpp(127) : warning C4267: 'initializing' : conversion from 'size_t' to 'Ipp32s', possible loss of data
.srcumc_color_space_conversion.cpp(131) : warning C4267: 'initializing' : conversion from 'size_t' to 'Ipp32s', possible loss of data
.srcumc_color_space_conversion.cpp(132) : warning C4267: 'initializing' : conversion from 'size_t' to 'Ipp32s', possible loss of data
.srcumc_color_space_conversion.cpp(133) : warning C4267: 'initializing' : conversion from 'size_t' to 'Ipp32s', possible loss of data
umc_base_codec.cpp
umc_base_bitstream.cpp
Linking...
msvcrt.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
D:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseh264enc_ipp.exe : fatal error LNK1120: 1 unresolved externals
Results
Build log was saved at "file://d:IPP_INSERTERh264_encoder_011107h264enc_ippReleaseBuildLog.htm"
h264enc_ipp - 2 error(s), 53 warning(s)
0 Kudos
Vladimir_Dudnik
Employee
1,217 Views

If you create command line executable you have to define function main in your program. Please refer to MSDN documentation on how to build Windows applications.

Vladimir

0 Kudos
evgenyka
Beginner
1,217 Views

Hello Vladimir,

Thanks a lot.

The h264 comilation has been finished.

But I have problem to pass parameters to a project.

Iput command line parametersas follows:

"video h264enc_ipp.exe H264 encoder.par out.264"

The encoder returns an error message "Destination file name not found" and a lot of garbage after Usage1.

D:>D:IPP_INSERTERh264_encoder_011107h264enc_ippDebugh264enc_ipp.exe H264 encoder.par out.264

Option 'H264'

Option 'encoder.par'

Option 'out.264'

Couldn't open file ??????????????? ?????????

I debuged the code and foud that the problem coused by wrong string convertion (in function umcStringToCode the value of const vm_char* string is not readble by the debuger watch).

Thanks in advance,

Evgeny

0 Kudos
Vladimir_Dudnik
Employee
1,217 Views

Evgeny,

if the issue is in any of IPP sample please specify which exactly sample you are using, on what system and how you compile that.

If this is some extraction of pieces of code from IPP sample I have no idea what is wrong with that.

Regards,
Vladimir

0 Kudos
Reply