Author Topic: [Problem] Complinig WxWidget.  (Read 8287 times)

Offline viader

  • Single posting newcomer
  • *
  • Posts: 3
[Problem] Complinig WxWidget.
« on: May 19, 2013, 08:17:59 pm »
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

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: [Problem] Complinig WxWidget.
« Reply #1 on: May 19, 2013, 08:53:09 pm »
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.
« Last Edit: May 19, 2013, 08:55:47 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: [Problem] Complinig WxWidget.
« Reply #2 on: May 19, 2013, 09:00:19 pm »
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 ?

Offline viader

  • Single posting newcomer
  • *
  • Posts: 3
Re: [Problem] Complinig WxWidget.
« Reply #3 on: May 20, 2013, 09:49:35 pm »
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.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: [Problem] Complinig WxWidget.
« Reply #4 on: May 20, 2013, 10:02:36 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline viader

  • Single posting newcomer
  • *
  • Posts: 3
Re: [Problem] Complinig WxWidget.
« Reply #5 on: May 29, 2013, 09:37:21 pm »
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?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: [Problem] Complinig WxWidget.
« Reply #6 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.
« Last Edit: May 30, 2013, 01:13:43 am by BlueHazzard »

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: [Problem] Complinig WxWidget.
« Reply #7 on: May 30, 2013, 02:19:45 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.
« Last Edit: May 30, 2013, 02:21:28 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Utpal_B

  • Single posting newcomer
  • *
  • Posts: 2
Re: [Problem] Complinig WxWidget.
« Reply #8 on: August 10, 2013, 12:22:55 pm »
You can watch this video on Youtube http://www.youtube.com/watch?v=FgAaiBg4wEE. It explains step by step compilation instructions.