|
From: Glen <gle...@mo...> - 2005-03-11 19:33:46
|
Those changes worked for the most part. I can successfully build in the
gui now by loading the (.dsp) vc++ 6 project files with .net .net
converted them to vc++ 7 (i.e. .net) and the build works.
Since with the first error (errors are at the bottom) it should have
created release and the second error it can't find any files I get the
impression that something is creating/looking in the wrong directory for
stuff..
Any hints/suggestions? I can do what I need to do since the GUI build
works fine and the build.bat gets far enough to create all the files
from the .in files. Was thinking that if we get this all worked out I
could sum it up for a faq entry.
FIRST ERROR: From the comand line I am getting this error when I run
build.bat
Building C Targets
Setting environment for using Microsoft Visual Studio .NET 2003 tools.
(If you have another version of Visual Studio or Visual C++ installed
and wish
to use its tools from the command line, run vcvars32.bat for that version.)
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
if not exist ".\Release/" mkdir ".\Release"
rc.exe /l 0x411 /fo".\Release\Wrapper.res" /d "NDEBUG" .\Wrapper.rc
fatal error RC1110: could not open .\Wrapper.rc
NMAKE : fatal error U1077: 'rc.exe' : return code '0x1'
Stop.
SECOND ERROR: If I create the src/c/Release directory and run
makewin32.bat manually I get this error
Building C Targets
Setting environment for using Microsoft Visual Studio .NET 2003 tools.
(If you have another version of Visual Studio or Visual C++ installed
and wish
to use its tools from the command line, run vcvars32.bat for that version.)
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
rc.exe /l 0x411 /fo".\Release\Wrapper.res" /d "NDEBUG" .\Wrapper.rc
fatal error RC1110: could not open .\Wrapper.rc
NMAKE : fatal error U1077: 'rc.exe' : return code '0x1'
Stop.
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
if not exist ".\WrapperJNI___Win32_Release/" mkdir
".\WrapperJNI___Win32_Release"
cl.exe @d:\temp\winnt\nm2E6.tmp
wrapperjni.c
c1 : fatal error C1083: Cannot open source file: 'wrapperjni.c': No such
file or directory
wrapperjni_unix.c
c1 : fatal error C1083: Cannot open source file: 'wrapperjni_unix.c': No
such file or directory
wrapperjni_win.c
c1 : fatal error C1083: Cannot open source file: 'wrapperjni_win.c': No
such file or directory
wrapperinfo.c
c1 : fatal error C1083: Cannot open source file: 'wrapperinfo.c': No
such file or directory
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
cheers,
glen
Rune Fauske wrote:
>Hi Leif, Glen,
>
>
>On Fri, 11 Mar 2005 16:14:18 +0900, Leif Mortenson
><le...@ta...> wrote:
>
>
>>Glen,
>>
>>Glen wrote:
>>
>>
>>
>>>There is no developper list so I figured I would try here. I am
>>>trying to build wrapper.exe using the makewin32.bat. That is using MS
>>>vc++ 98. I have vc++ 7.0 (the one that comes with .net pro 2003).
>>>Does anyone know how I could either
>>>
>>> * obtain a copy of ms vc++ 98 that is currently used for the win32
>>> build (I am willing to $$$$ it but am not 100% sure what to buy)
>>> * make the necessary changes to get the vc++.net compilre working
>>> with it
>>>
>>>
>>>
>>Just answered you offline on this. But try running build.bat in the src
>>root directory.
>>There may be a few changes need for .net but they should be simple. I
>>never use
>>C for much other than the Wrapper so have never had the need to upgrade my
>>copy of vc++.
>>
>>I would appreciate you posting any changes that are required to get
>>things working
>>with the vc++ .net.
>>
>>
>>
>
>I'm building the wrapper under Visual C++ .NET 2003. I'll try to list
>up what changes I made in order to make it build properly:
>
>-- ant.properties: (add the following line to override default, create
>the file if it's missing)
>msvc.home=c:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7
>
>-- src\c\Wrapper.dep.in: - changed the following sections
>.\wrapper.c : \
> "@msvc.home@\PlatformSDK\include\basetsd.h"\
> ".\logger.h"\
> ".\property.h"\
> ".\wrapper.h"\
>
>
>.\wrapper_win.c : \
> "@msvc.home@\PlatformSDK\include\basetsd.h"\
> ".\logger.h"\
> ".\property.h"\
> ".\wrapper.h"\
>
>-- src\c\wrapper.h: _CRTAPI1 is not defined, so this has to be done
>somewhere. I just added it to the wrapper.h file. If I remember
>correctly I found this snippet on the msdn library.
>
>#ifndef _CRTAPI1
>#if _MSC_VER >= 800 && _M_IX86 >= 300
>#define _CRTAPI1 __cdecl
>#else /* _MSC_VER >= 800 && _M_IX86 >= 300 */
>#define _CRTAPI1
>#endif /* _MSC_VER >= 800 && _M_IX86 >= 300 */
>#endif /* _CRTAPI1 */
>
>-- build.xml: change every occourance of ${msvc.home}/VC98/ to ${msvc.home}/
>
>-- src/c/makewin32.bat: change the 3rd line to:
>call %1\BIN\VCVARS32.BAT
>
>I think this is it, but it's been a while since last time I was
>"playing" with this stuff.
>
>--
>Rune
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
|