If you do not need to build the pmjni project, you can skip it and avoid
this error.
But this would mean not building the PmDefault program, which provides a
way to set preferences to open the desired device, so you will at least
want a PmDefault binary for this.
The project is built by CMake, so perhaps rebuilding the project with
CMake will insert the correct JDK version everywhere.
VC projects are text files, so you can search the text for version
strings to see where the "1.6.0_16" is coming from. (Not as clean as
rebuilding with CMake, but it might be a fast, simple, solution.)
I hope this helps,
Roger
On 6/3/11 7:24 AM, Rowan Sylvester-Bradley wrote:
Hi,
I think I've successfully checked out the portmidi files using
TortoiseSVN. I'm trying to build it using Visual C++ 2010 Express.
I've installed JDK version 1.6.0_25. I'm getting the following errors:
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug
Win32 ------
2>------ Build started: Project: pmjni, Configuration: Debug Win32 ------
2> pmwin.c
2> pmwinmm.c
2>..\pm_win\pmwinmm.c(263): warning C4996: 'strncpy': This function or
variable may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2> C:\Program Files\Microsoft Visual Studio
10.0\VC\include\string.h(188) : see declaration of 'strncpy'
2> ptwinmm.c
2> pmutil.c
2> portmidi.c
2>portmidi.c(299): warning C4996: 'strncpy': This function or variable
may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2> C:\Program Files\Microsoft Visual Studio
10.0\VC\include\string.h(188) : see declaration of 'strncpy'
2> pmjni.c
2> Generating Code...
2>C:\Program
Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5):
warning MSB8012: TargetPath(C:\Users\Rowan2\Documents\Visual Studio
2010\Projects\portmedia\portmidi\pm_common\Debug\pmjni.dll) does not
match the Linker's OutputFile property value
(C:\Users\Rowan2\Documents\Visual Studio
2010\Projects\portmedia\portmidi\Debug\pmjni.dll). This may cause your
project to build incorrectly. To correct this, please make sure that
$(OutDir), $(TargetName) and $(TargetExt) property values match the
value specified in %(Link.OutputFile).
2>LINK : fatal error LNK1104: cannot open file 'C:\Program
Files\Java\jdk1.6.0_16\include\..\lib\jvm.lib'
3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32
------
3>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 1 failed, 10 up-to-date, 1 skipped
==========
Why is it looking for C:\Program
Files\Java\jdk1.6.0_16\include\..\lib\jvm.lib? I have changed the
include directories to version 25 as per the instructions, so there
must be a reference to version 16 somewhere else.
Can someone help me get this to build? I'm pretty much a novice with
VC++ some it's probably something simple/obvious...
Thanks - Rowan
_______________________________________________
media_api mailing list
[email protected]
http://lists.create.ucsb.edu/mailman/listinfo/media_api
_______________________________________________
media_api mailing list
[email protected]
http://lists.create.ucsb.edu/mailman/listinfo/media_api