[Omake] Re: can't get vmount to work

David Kågedal davidk at lysator.liu.se
Fri May 25 08:29:44 PDT 2007


Jesper Eskilson <jesper at eskilson.se> writes:

> Hi all,
>
> I can't get my "variant build" to work. The directory structure looks
> like this:
>
> /OMakeroot
> /OMakefile
> /WinUtil/OMakefile
>         /src/OMakefile		# empty
>             /src1.cpp
>             /src2.cpp
>
>         /Legacy/OMakefile 	# empty
>                /src3.cpp
>                /src4.cpp
>
>
> The top-level OMakefile looks like this:
>
>> .PHONY: all install clean
>> CXXFLAGS += /EHsc /MDd /DTRACING_ON /Od
>> vmount(WinUtil, .omake-build/Debug/WinUtil)
>> .SUBDIRS: .omake-build/Debug/WinUtil
>
> and WinUtil/OMakefile looks like this:
>
>> LIBFILES[] =
>>   src/src1.cpp
>>   src/src2.cpp
>>   Legacy/src3.cpp
>>   Legacy/src4.cpp
>> LIB = WinUtil

It's been a while since I actually did anything with omake, but...

To get vmounted file references work, you need to make sure that file
names are treated as such, and not as strings.

Does it help to use $(file src/src.cpp) etc instead?

>> .SUBDIRS: src Legacy
>> .DEFAULT: $(StaticCXXLibrary $(LIB), $(LIBFILES))
>
> When I run omake from the top-level, I get:
>
>> *** omake: reading OMakefiles
>> *** omake: finished reading OMakefiles (0.2 sec)
>> - build .omake-build\Debug\WinUtil WinUtil.lib
>> + lib /nologo /debugtype:CV /out:WinUtil.lib @WinUtil.lib.tmp
>> Microsoft (R) Library Manager Version 8.00.50727.762
>> Copyright (C) Microsoft Corporation.  All rights reserved.
>> LIB : fatal error LNK1104: cannot open file 'WinUtil.lib.tmp'

Obviously that filename didn't get vmount-transformed.

Did the cpp files compile OK, then?

>> *** omake: 32/35 targets are up to date
>> *** omake: failed (0.7 sec, 0/0 scans, 1/1 rules, 27/152 digests)
>> *** omake: targets were not rebuilt because of errors:
>>    .omake-build\Debug\WinUtil\WinUtil.lib
>>       depends on: WinuUtil\src\src1.cpp
>> [...]
>
> What am I doing wrong?

-- 
David Kågedal



More information about the Omake mailing list