#1
|
|||
|
|||
Compile eror
I am trying to build lmcrypt on \i86_n3-11.9.1and am getting the following compile error.
I extensively googled this subject, but could not find any solution to this problem. Any ideas or suggestions are welcome. Setting environment for using Microsoft Visual Studio 2010 x86 tools. c:\Program Files\Microsoft Visual Studio 10.0\VC>cd C:\Program Files\Flexlm\i86_ n3-11.9.1\i86_n3 C:\Program Files\Flexlm\i86_n3-11.9.1\i86_n3>build C:\Program Files\Flexlm\i86_n3-11.9.1\i86_n3>echo off *************************************************************************** Build.bat can be used in 3 ways * build MT - This builds all of the files using the /MT compiler flag * ( Multi-threaded C Runtime as a static library ) * build MD - This builds all of the files using the /MD compiler flag * ( Multi-threaded C Runtime as a DLL ) * build DLL - This build all of the files to use the flexlm dll * *************************************************************************** Building using the /MT flag Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. RC -r -fo scplmd.res scplmd.rc Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385 Copyright (C) Microsoft Corporation. All rights reserved. fatal error RC1109: error creating scplmd.res NMAKE : fatal error U1077: '"c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\R C.EXE"' : return code '0x1' Stop. C:\Program Files\Flexlm\i86_n3-11.9.1\i86_n3> regards rcer |
#2
|
|||
|
|||
Wild guess: You installed the source code in the "Program Files" directory which is by default read-only to all users expect admin, so the command line tools have no write rights and will fail instantly.
|
#3
|
|||
|
|||
Hi Kerlingen,
Your guess is right, but I have been running the command line as administrator, and I have checked that read & write access is O.K. Anyway just to run a check I copied the SDK to the D drive, and I did get the same result. From all the Googling I did, I understand that the problem is related to incorrectly set environment variables, but I haven't been able to figure out which variable(s) need to be set, and with what values? regards rcer |
#4
|
|||
|
|||
hi rcer,
I don't have the 11.9.1 here atm but in my older makefiles (11.4) the only section using the resource compiler is Code:
buildmsgfile Code:
$(RC) -r -fo what values are the variables Code:
EVENTLOGMESSAGEFILE EVENTLOGMESSAGEFILE2 cheers, dirkmill :B |
#5
|
|||
|
|||
too late to edit my previous post
I just checked 11.9.1 i86_n3 out and initially got the same error message. you basically have two options: 1. create a (potentially empty) resource file for your vendor daemon 2. edit the makefile to skip compiling and linking of the resource file for the vendor daemon for option two just use the following as replacement of the daemon-section of your makefile: Code:
daemon: $(DAEMON) $(DAEMON): $(XTRAOBJS) $(DAEMONLIBS) lsvendor.obj $(SRCDIR)\lsserver.h $(LMNEW_OBJ) # $(RC) -r -fo $(VENDORNAME).res $(VENDORNAME).rc $(LD) /subsystem:console /out:$(DAEMON) lsvendor.obj $(LMNEW_OBJ) \ # $(XTRAOBJS) $(DAEMONLIBS) $(CRT_LIB) $(XTRALIB1) $(DONGLELIB) $(ACTSTUB) $(VENDORNAME).res $(XTRAOBJS) $(DAEMONLIBS) $(CRT_LIB) $(XTRALIB1) $(DONGLELIB) $(ACTSTUB) $(EMBED_MANIFEST) dirkmill :B |
#6
|
||||
|
||||
Use the VC command shell (under Visual Studio Tools menu). It will set up it's paths for you. You can the CD to the flexlm directory.
Git |
#7
|
|||
|
|||
Hi Dirkmill,
thanks for pointing me in the right direction, but when I change the makefile as per your suggestion, the compliler only builds the vendor daemon, and nothing else. If I don't apply the change, I get the error message, and the compliler builds lmcrypt. regards rcer |
#8
|
|||
|
|||
hi rcer,
option "2" above only requires you to change two lines of your makefile, compilation of the whole kit works as before... option "1" is even simpler, just create a zero-byte file called Code:
$(VENDORNAME).rc Code:
scplmd.rc dirkmill |
#9
|
|||
|
|||
Hi dirkmill,
Yes both options for building the kit are working fine. Thanks & regards rcer |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What's the regular SDK compile flow with ECC check? | bridgeic | General Discussion | 1 | 08-29-2014 09:14 |
How to fix these three RadASM compile errors? | bridgeic | General Discussion | 39 | 04-10-2013 12:32 |
how to compile windows NT4/2000? | jonwil | General Discussion | 9 | 09-05-2004 10:30 |