VBox complains about windres generating wrong obj format

Discussions related to using the OSE version of VirtualBox.
Post Reply
lucky7456969
Posts: 6
Joined: 2. Aug 2011, 02:14
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: MSDOS

VBox complains about windres generating wrong obj format

Post by lucky7456969 »

windres reported the following errors.
What about them?

Code: Select all

kBuild: Generating C:/vbox/virtualbox-5.0.0/out/win.x86/release/obj/VBoxREMImp/V
BoxREMRes.o
windres: unknown format type `C:/vbox/virtualbox-5.0.0/include'
windres: supported formats: rc res coff
kmk: *** [C:/vbox/virtualbox-5.0.0/out/win.x86/release/obj/VBoxREMImp/VBoxREMRes
.o] Error 1
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VBox complains about windres generating wrong obj format

Post by mpack »

Shouldn't you ask in a windres forum? I've never used windres, but it looks like you're passing a folder name as the input. Flying blind, I'd expect windres to expect either a filename or a wildcard filespec.
CaptainFlint
Posts: 107
Joined: 9. Oct 2007, 10:17
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Various Windows and Linux distros
Location: Moscow, Russia
Contact:

Re: VBox complains about windres generating wrong obj format

Post by CaptainFlint »

I met with a similar problem when I was building VB from source. The problem is, windres is from the 32-bit mingw (which is version 3.x) and just does not understand the object file format it was fed with.
I worked this around by editing the src\recompiler\Makefile.kmk file, where I search for the line

Code: Select all

VBoxRemPrimary_SOURCES.win = $(VBoxREMImp_0_OUTDIR)/VBoxREMRes.o
and replace it with:

Code: Select all

VBoxRemPrimary_SOURCES.win =
VBoxRemPrimary_SOURCES.win.amd64 = $(VBoxREMImp_0_OUTDIR)/VBoxREMRes.o
(that is, use the resource for 64-bit version only). I don't know what hacks Oracle uses to build their version, though.
Post Reply