Hey all,
That's the message I get instantly while I try compiling a new wxWidgets project with GCC.
I looked at the compiler options but never saw that J option.
||=== test_wxWidgets, Release ===|
||invalid option -- J|
||supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec tekhex binary ihex|
||=== Build finished: 2 errors, 0 warnings ===|
Any idea ?
Thx,
Yéyé
I did search for "-J" and not "-- J", thanks !
But the problem is elsewhere now :
-------------- Build: Debug in test_wxwidgets ---------------
Compiling: resource.rc
windres.exe: unknown format type `H:\home\commun\dev\libs\wxWidgets-2.8.8\include'
windres.exe: supported formats: rc res coff
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings
Windres seems to confound the path and the file
H:\home\commun\dev\libs\wxWidgets-2.8.8\include is the good path (declared in "project build options > search directories > Resource compiler"
wx.rc is at its place in H:\home\commun\dev\libs\wxWidgets-2.8.8\include\wx\msw\
Here is the line-code of resource compiler (after replacing -J by -I)
$rescomp -i $file -I rc -o $resource_output -O coff $res_includes
Weird, isn't it ?
Yéyé
windres.exe: unknown format type `H:\home\commun\dev\libs\wxWidgets-2.8.8\include'
$rescomp -i $file -I rc -o $resource_output -O coff $res_includes
I don't think so. You tell the resource compiler to include only a path named "rc". The $res_includes is taken as objects. Why? Read the help of windres (simply call windres --help on a console), it says:
Usage: windres.exe [option(s)] [input-file] [output-file]
As you see: Options first, then *only* input, then *only* output.
You do:
windres.EXE [option(s)] [input-file] [output-file] [option(s)]
Which is just wrong.
Well, thanks : I tried to change that command line, but with no success.
Desperated, I tried to change the compiler.
I installed the wxPack2.8 compiled with VC.
when I try to compile a new wxWidgets project on Code::Blocks, I have nearly the same error during the resource compiling :
-------------- Build: Debug in test_wx2 ---------------
Execution of 'rc.exe /IE:\progs\wxWidgets2.8\include /IE:\progs\wxWidgets2.8\lib\vc_dll\mswud -foobj\Debug\resource.res resource.rc' in 'H:\home\boulot\dev\cpp\test_wx2' failed.
Nothing to be done.
the file wx.rc is well located : E:\progs\wxWidgets2.8\include\wx\msw\wx.rc.
Did I miss something ?
Yéyé