Problems building with wxWidgets

General questions regarding the usage of CodeLite
nji
CodeLite Curious
Posts: 2
Joined: Sat Jul 04, 2020 6:19 pm
Genuine User: Yes
IDE Question: php
Contact:

Problems building with wxWidgets

Post by nji »

Hello ... for the first time.
I recently installed CodeLite, together with mingw64 8.1
I wanted to build a wxWidget application (whose binaries I downloaded precompiled for that compiler).
But when building I get the error message that occures in some of the posts, although to no solution.

I set the codelite's env vars like:

WXWIN=D:\Guido\develop\wxWidgets
WXCFG=gcc_dll\mswu

(The complete path is D:\Guido\develop\wxWidgets\lib\gcc_dll\mswu)

But get always this error:

Code: Select all

C:\Windows\system32\cmd.exe /C ""C:/Program Files/mingw64/bin/mingw32-make.exe" -j8 SHELL=cmd.exe -e -f  Makefile"
"----------Building project:[ ratzfatz - Debug ]----------"

Please use the --prefix flag (as in wx-config --prefix=C:/wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:/wxWidgets)
to specify where is your installation of wxWidgets.
mingw32-make.exe[1]: Entering directory 'D:/Guido/develop/test/ratzfatz'

Please use the --prefix flag (as in wx-config --prefix=C:/wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:/wxWidgets)
to specify where is your installation of wxWidgets.

Please use the --prefix flag (as in wx-config --prefix=C:/wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:/wxWidgets)
to specify where is your installation of wxWidgets.
"C:/Program Files/mingw64/bin/windres.exe" -i "D:/Guido/develop/test/ratzfatz/win_resources.rc" wx-config Error: wxWidgets hasn't been found installed at 'C:\Program Files'.   -o Debug/win_resources.rc.o
Usage: C:/Program Files/mingw64/bin/windres.exe [option(s)] [input-file] [output-file]
 The options are:
  -i --input=<file>            Name input file
  -o --output=<file>           Name output file
  -J --input-format=<format>   Specify input format
  -O --output-format=<format>  Specify output format
  -F --target=<target>         Specify COFF target
     --preprocessor=<program>  Program to use to preprocess rc file
     --preprocessor-arg=<arg>  Additional preprocessor argument
  -I --include-dir=<dir>       Include directory when preprocessing rc file
  -D --define <sym>[=<val>]    Define SYM when preprocessing rc file
  -U --undefine <sym>          Undefine SYM when preprocessing rc file
  -v --verbose                 Verbose - tells you what it's doing
  -c --codepage=<codepage>     Specify default codepage
  -l --language=<val>          Set language when reading rc file
     --use-temp-file           Use a temporary file instead of popen to read
                               the preprocessor output
     --no-use-temp-file        Use popen (default)
  -r                           Ignored for compatibility with rc
  @<file>                      Read options from <file>
  -h --help                    Print this help message
  -V --version                 Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified.  A single file name is an input file.
No input-file is stdin, default rc.  No output-file is stdout, default rc.
C:/Program Files/mingw64/bin/windres.exe: supported targets: pe-x86-64 pei-x86-64 pe-bigobj-x86-64 elf64-x86-64 elf64-l1om elf64-k1om pe-i386 pei-i386 elf32-i386 elf32-iamcu elf64-little elf64-big elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
mingw32-make.exe[1]: *** [ratzfatz.mk:97: Debug/win_resources.rc.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe[1]: *** [ratzfatz.mk:99: Debug/MainFrame.cpp.o] Error 1
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: wx-config: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
mingw32-make.exe[1]: *** [ratzfatz.mk:111: Debug/wxcrafter.cpp.o] Error 1
mingw32-make.exe[1]: *** [ratzfatz.mk:105: Debug/main.cpp.o] Error 1
mingw32-make.exe[1]: *** [ratzfatz.mk:117: Debug/wxcrafter_bitmaps.cpp.o] Error 1
mingw32-make.exe: *** [Makefile:5: All] Error 2
mingw32-make.exe[1]: Leaving directory 'D:/Guido/develop/test/ratzfatz'
====0 errors, 0 warnings====
nji
CodeLite Curious
Posts: 2
Joined: Sat Jul 04, 2020 6:19 pm
Genuine User: Yes
IDE Question: php
Contact:

Re: Problems building with wxWidgets

Post by nji »

... addendum:

If I open a "command line" window and set WXWIN and WXCFG as above...

Then do
wx-config --version
it says:
wx-config Error: Unable to open file 'D:/Guido/develop/wxWidgets/build/msw/config.gcc'.
3.0.5

As in my wxWidget folder there is no "build" folder, but only "include" and "lib"
and no "config.gcc" anywhere, as it is not the full source, but only the precompiled lib.
What has to be done to make it work?
Post Reply