News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

[Problem] Complinig WxWidget.

Started by viader, May 19, 2013, 08:17:59 PM

Previous topic - Next topic

viader

Hi, I would like make new application in WxWidget. I did steps from http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef but I got errors when I put:

mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport

like: (if I haven't file x, create file x, i can't create file x - crash)
"if you haven't gcc_mswudll, mkdir gcc_mswudll" "mkdir gcc_mswudll failed..." -crash

So i put in console first mkdir gcc_mswudll and next:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport

I got next error:
"if you haven't gcc_xyz, mkdir gcc_xyz" "mkdir gcc_xyz failed..." -crash

So I created next direction, and I got next error, created next file, got next error... I lost hope
What should I do? Why this commands don't work automatical?
Cheers

stahta01

#1
Version and maker of MinGW GCC you are using?
Version of wxWidgets you are trying to build?

The exact error message you are getting?

Another site, that may help http://forums.wxwidgets.org/

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

Do you have the correct access rights to the folders you try to build wx and are you sure no av (or other "security") software is doing a bad job ?

viader

Thanks for help!
WxWidget 2.8.12
MinGW from Code::Blocks 12.11

Error - from option like 2>error
process_begin: CreateProcess(NULL, -c "if not exist gcc_mswudll mkdir gcc_mswudll", ...) failed.
make (e=2): Nie mo¿na odnaleŸæ okreœlonego pliku.

mingw32-make: [gcc_mswudll] Error 2 (ignored)
process_begin: CreateProcess(NULL, -c "if not exist ..\..\lib\gcc_dll\mswu\wx\setup.h copy ..\..\include\wx\msw\setup.h ..\..\lib\gcc_dll\mswu\wx\setup.h", ...) failed.
make (e=2): Nie mo¿na odnaleŸæ okreœlonego pliku. "- Cannot find file

mingw32-make: *** [..\..\lib\gcc_dll\mswu\wx\setup.h] Error 2

Nie mo¿na odnaleŸæ okreœlonego pliku. = Cannot find file

I haven't any antivirus, on my office PC I haven't connection with Internet it is the best antivirus :). I have one account with administrator rights.

stahta01

Quote from: viader on May 20, 2013, 09:49:35 PM
Tprocess_begin: CreateProcess(NULL, -c "if not exist gcc_mswudll mkdir gcc_mswudll", ...) failed.

I tend to get errors like this when my system path is NOT correct.

I have never been positive what I have done to fix the issue.

But, I suspect that I needed "C:\Windows\system32" or "C:\Windows;C:\Windows\System32\Wbem" in my system path.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

viader

Sorry for long silence. I install wxWidget on 2 computer - there are I haven't debug mode but work. I made simple application :)

Interesting, it doesn't work on 2 computer:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport
but this work
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1

Now, I want return on my primary computer I have this "C:\Windows\system32" and more, more entries in system path. I tried copy direction from 2 computer but it doesn't work :( What should I do?

BlueHazzard

#6
Have you msys  (aka mingw-shell) installed on your system?
If yes remove the path to the msys bin folder from your PATH. If you want to use msys you should use the msys terminal.

And try to delete the build folders. It would be the best to remove all wxWidgets stuff (all folders, not only uninstaller) and reinstall it.

stahta01

#7
Quote from: BlueHazzard on May 30, 2013, 01:12:00 AM
Have you msys  (aka mingw-shell) installed on your system?
If yes remove the path to the msys bin folder from your PATH. If you want to use msys you should use the msys terminal.

And try to delete the build folders. It would be the best to remove all wxWidgets stuff (all folders, not only uninstaller) and reinstall it.

FYI: Cygwin can cause most of the same problems caused by MSys.

Having a bad Mingw GCC installation can also cause weird errors.

One example of a bad MinGW installation is having MinGW installed in "C:\mingw" and NOT using it because if Mingw is installed in some location all other mingw installs will NOT work right.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Utpal_B

You can watch this video on Youtube http://www.youtube.com/watch?v=FgAaiBg4wEE. It explains step by step compilation instructions.