Vista Installation of wxdevcpp

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
dunamin
In need of some credit
In need of some credit
Posts: 2
Joined: Sun Mar 04, 2007 3:41 am
Location: Austin, TX
Contact:

Vista Installation of wxdevcpp

Post by dunamin » Sun Mar 04, 2007 3:53 am

Hello All-

I had a few problems installing wxDev-C++ on Vista. Here's how I solved them:
-Add Dev-Cpp\libexec\gcc\mingw32\3.4.2 as the second include in Tools|Compiler Options|Directories|Binaries
-Add Dev-Cpp\Include as the second include in Tools|Compiler Options|Directories|Resource Includes
-Remove all cygwin and dev-cpp from the PATH. (probably not necessary)
-Install to a directory name without a space. (probably not necessary)

That's it. Here's some example of compile logs I saw without these set:

First error:
Compiler: Default GCC compiler
Building Makefile: "C:\code\wxhelloz\Makefile.win"
Executing make clean
rm -f Output/MingW/Project1App.o Output/MingW/Project1Frm.o Output/MingW/Project1_private.res Output/MingW/Project1.exe

g++.exe -c Project1App.cpp -o Output/MingW/Project1App.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/" -I"C:/Dev-Cpp/include/common/wx/msw" -I"C:/Dev-Cpp/include/common/wx/generic" -I"C:/Dev-Cpp/include/common/wx/fl" -I"C:/Dev-Cpp/include/common/wx/gizmos" -I"C:/Dev-Cpp/include/common/wx/html" -I"C:/Dev-Cpp/include/common/wx/mmedia" -I"C:/Dev-Cpp/include/common/wx/net" -I"C:/Dev-Cpp/include/common/wx/ogl" -I"C:/Dev-Cpp/include/common/wx/plot" -I"C:/Dev-Cpp/include/common/wx/protocol" -I"C:/Dev-Cpp/include/common/wx/stc" -I"C:/Dev-Cpp/include/common/wx/svg" -I"C:/Dev-Cpp/include/common/wx/xml" -I"C:/Dev-Cpp/include/common/wx/xrc" -I"C:/Dev-Cpp/include/common/wx" -I"C:/Dev-Cpp/include/common" -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fexpensive-optimizations -O3

g++.exe -c Project1Frm.cpp -o Output/MingW/Project1Frm.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/" -I"C:/Dev-Cpp/include/common/wx/msw" -I"C:/Dev-Cpp/include/common/wx/generic" -I"C:/Dev-Cpp/include/common/wx/fl" -I"C:/Dev-Cpp/include/common/wx/gizmos" -I"C:/Dev-Cpp/include/common/wx/html" -I"C:/Dev-Cpp/include/common/wx/mmedia" -I"C:/Dev-Cpp/include/common/wx/net" -I"C:/Dev-Cpp/include/common/wx/ogl" -I"C:/Dev-Cpp/include/common/wx/plot" -I"C:/Dev-Cpp/include/common/wx/protocol" -I"C:/Dev-Cpp/include/common/wx/stc" -I"C:/Dev-Cpp/include/common/wx/svg" -I"C:/Dev-Cpp/include/common/wx/xml" -I"C:/Dev-Cpp/include/common/wx/xrc" -I"C:/Dev-Cpp/include/common/wx" -I"C:/Dev-Cpp/include/common" -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fexpensive-optimizations -O3

windres.exe --input-format=rc -o Output/MingW/Project1_private.res --include-dir "C:/Dev-Cpp/include/common" Output/MingW/PROJEC~1.RC -O coff

gcc: installation problem, cannot exec `cc1': No such file or directory

windres.exe: no resources

mingw32-make.exe: *** [Output/MingW/Project1_private.res] Error 1

Execution terminated
Second error
Executing make clean
rm -f Output/MingW/Project1App.o Output/MingW/Project1Frm.o Output/MingW/Project1_private.res Output/MingW/Project1.exe

g++.exe -c Project1App.cpp -o Output/MingW/Project1App.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/" -I"C:/Dev-Cpp/include/common/wx/msw" -I"C:/Dev-Cpp/include/common/wx/generic" -I"C:/Dev-Cpp/include/common/wx/fl" -I"C:/Dev-Cpp/include/common/wx/gizmos" -I"C:/Dev-Cpp/include/common/wx/html" -I"C:/Dev-Cpp/include/common/wx/mmedia" -I"C:/Dev-Cpp/include/common/wx/net" -I"C:/Dev-Cpp/include/common/wx/ogl" -I"C:/Dev-Cpp/include/common/wx/plot" -I"C:/Dev-Cpp/include/common/wx/protocol" -I"C:/Dev-Cpp/include/common/wx/stc" -I"C:/Dev-Cpp/include/common/wx/svg" -I"C:/Dev-Cpp/include/common/wx/xml" -I"C:/Dev-Cpp/include/common/wx/xrc" -I"C:/Dev-Cpp/include/common/wx" -I"C:/Dev-Cpp/include/common" -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fexpensive-optimizations -O3

g++.exe -c Project1Frm.cpp -o Output/MingW/Project1Frm.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/" -I"C:/Dev-Cpp/include/common/wx/msw" -I"C:/Dev-Cpp/include/common/wx/generic" -I"C:/Dev-Cpp/include/common/wx/fl" -I"C:/Dev-Cpp/include/common/wx/gizmos" -I"C:/Dev-Cpp/include/common/wx/html" -I"C:/Dev-Cpp/include/common/wx/mmedia" -I"C:/Dev-Cpp/include/common/wx/net" -I"C:/Dev-Cpp/include/common/wx/ogl" -I"C:/Dev-Cpp/include/common/wx/plot" -I"C:/Dev-Cpp/include/common/wx/protocol" -I"C:/Dev-Cpp/include/common/wx/stc" -I"C:/Dev-Cpp/include/common/wx/svg" -I"C:/Dev-Cpp/include/common/wx/xml" -I"C:/Dev-Cpp/include/common/wx/xrc" -I"C:/Dev-Cpp/include/common/wx" -I"C:/Dev-Cpp/include/common" -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fexpensive-optimizations -O3

windres.exe --input-format=rc -o Output/MingW/Project1_private.res --include-dir "C:/Dev-Cpp/include/common" Output/MingW/PROJEC~1.RC -O coff

In file included from Output/MingW/../../Project1App.rc:10,
from Output/MingW/PROJEC~1.RC:3:

C:/Dev-Cpp/include/common/wx/msw/wx.rc:16:21: windows.h: No such file or directory

g++.exe Output/MingW/Project1App.o Output/MingW/Project1Frm.o Output/MingW/Project1_private.res -o "Output\MingW\Project1.exe" -L"C:/Dev-Cpp/Lib" -mwindows -lwxmsw28 -lwxmsw28_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32

Execution terminated

Scorpion
Knows some wx things
Knows some wx things
Posts: 37
Joined: Sun Mar 18, 2007 7:26 am
Location: United States

wxDevC++ on Vista

Post by Scorpion » Sun Mar 18, 2007 7:47 am

What version of Vista do you employ if I might inqury?

I am curious to know what the lowest upgrade release of Vista will accomodate port assignments/virtual ports. I, as-well-as many others, will want to handle locally installed development server frameworks for distributed application development.

Any insight on this topic will be greatly appreciated by myself and the community here at the wxForum. A response to this will undoubtedly lessen the bug threads shot at wxDevC++ in the future regarding such issues.

Thankyou for every consideration.

lowjoel
Moderator
Moderator
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel » Mon Mar 26, 2007 1:26 pm

I was a beta tester of Vista RC1 and I used it to test wxDev-C++ quite extensively and I fixed alot of Vista compatibility bugs.

Yes, you are right. We have fixed support for spaces in file names a few months back so filenames with spaces should work fine now. If wxDev-C++ is kept in PATH then leave it there. But IIRC wxDev-C++ should work fine without it being in PATH.

Now, the first two problems seem to be valid. Please file a bug report in our SourceForge tracker.

Thanks,
Joel

fowlerhk
Earned a small fee
Earned a small fee
Posts: 17
Joined: Wed Mar 07, 2007 12:47 am
Location: Christchurch, New Zealand

Also happens on WinXP

Post by fowlerhk » Mon Aug 13, 2007 2:26 am

Hi,

Just got this problem on my Vista PC. I'm using Home Premium. Thanks for the tips above.

However, I also thought I should mention that I've seen this exact problem on my work XP machine. I suspected some kind of path problem since my path contained lots of dirs, however, I never got to the bottom of it. I ended up switching to the MS compiler and that worked fine.

Never saw the problem on my home XP machine.

Cheers
Hayden

Slip
In need of some credit
In need of some credit
Posts: 7
Joined: Sun Jan 07, 2007 12:06 am

Post by Slip » Thu Aug 16, 2007 2:35 am

Hey thanks, worked like a champ. I did not have to use these two lines.

-Remove all cygwin and dev-cpp from the PATH. (probably not necessary)
-Install to a directory name without a space. (probably not necessary)

I have Vista Home Premium.
Slip
Computers and motorcycles

lucato
In need of some credit
In need of some credit
Posts: 1
Joined: Tue Sep 11, 2007 10:49 pm

Post by lucato » Tue Sep 11, 2007 10:58 pm

hi all,

i have wx devcpp 6.10.2 and vista home basic french
i add to add also another path
devcpp/mingw32/bin
BUT another error stay :

Compilateur: Default GCC compiler
Building Makefile: "F:\GILLES\GRAVER\_Dev_Sources\WINDOWS\SASNET\BackupV32\Makefile.win"
Ex

fowlerhk
Earned a small fee
Earned a small fee
Posts: 17
Joined: Wed Mar 07, 2007 12:47 am
Location: Christchurch, New Zealand

It's a problem with gcc itself

Post by fowlerhk » Mon Sep 24, 2007 8:50 am

Looks like someone has identified the problem. Checkout the link below:
http://www.nabble.com/environment-hosed ... 05745.html

I was also having the same problem with a standalone install of MSYS and MinGW. I fixed the problem by first installing MSYS and MinGW 'current', which gave me gcc 3.4.1 (which has the problem). Then I downloaded the GCC 4.2.1 from:
http://sourceforge.net/project/showfile ... up_id=2435
(I grabbed the sjlj version)
Then unpacked the tarballs (gcc-core and gcc-g++) over the top of the MinGW installation. Then renamed all the 'sjlj' version files (except the DLL) to the standard names.
e.g.
mingw32-g++-sjlj.exe --> mingw32-g++.exe
g++-sjlj.exe --> g++.exe
etc

I hope this helps someone.

Cheers
Hayden

PapaAtHome
Earned a small fee
Earned a small fee
Posts: 10
Joined: Mon Jan 07, 2008 5:26 pm
Location: Nijmegen (The Netherlands)

Post by PapaAtHome » Sun Jan 20, 2008 1:15 pm

Hi,

This is what I found when installing wxDEV-C++ on my machine. It is working but I had to take some hurdles,
some minor problems still exist.

The machine I'm using has Vista, home premium, dutch on it.

First I unistalled DEV-C++ and a seperate installarion of wxWidgets and cleaned the path from any references to that.

Installed wxDEV-C++ in its default directory ('C:\Program Files\Dev-Cpp) which creates its own problems. I advise
not to install in 'C:\Program Files' on any Vista machine (see below).
(Advise: read the exelent introduction to wxDEV-C++ and wxWidgets written by Sof_T)

During instalation of wxDEV-C++ I found most of the problems mentioned above. Just a recap:
- Added 'C:\Program Files\Dev-Cpp\bin', '...\mingw32\bin' and '...\libexec\cc\mingw32\3.4.2' to
[tools], [compiler options], [directories], [binaries]

- No corrections to [tools], .... [Libraries], it contains 'C:\Program Files\Dev-Cpp\Lib'

- Corrected [tools], ... [C Includes]. It got 'include' while it should have got 'C:\Program Files\Dev-Cpp\include'
and 'C:\Program Files\Dev-Cpp\lib\gcc\mingw32\3.4.2\include'

- Spurrious include paths for [tools], ... [C++ Includes], all subdirectories of the base include directory are
listed. Not corrected, its not causing problems. (Might slow down compiling a bit.)

- Corrected [tools], ... [Resources], added 'C:\Program Files\Dev-Cpp\include'.

WARNING :!: : when reconfiguring wxDEV-C++ do not disable the splash screen. ([tools], [Environment options], [interface].
This will cause wxDEV-C++ to crash at startup time. This bug is already registered.

Existing problems (for me):
1) Installed in 'C:\Program Files' causes maintenance problems with (wx)DEV-C++. The package manager included with
(wx)DEV-C++ seems to work and reports no problem but Vista prevents installing any updates in 'C:\Program Files' without
(wx)DEV-C++ or the package manager reporting it.

2) How to update or reconfigure wxWidgets on wxDEV-C++.
I'm a bit puzzled with this. Previous I worked with a seperate installation of wxWidgets and had a lot more to do
and also a lot more information. Now I have just the libraries but I'm missing all wxWidgets '...\doc',
'...\src' subtree and the means to configure and generate other libraries.
(Request to Sof_T: Add a chapter on updating and configuring wxWidgets in your book.)

Except for the two point mentioned it all works fine. And those two points are not a real problem, I just need to give
it a bit of attention and time to solve it.

Just to inform you, have fun too.

Andre Steenveld.

PapaAtHome
Earned a small fee
Earned a small fee
Posts: 10
Joined: Mon Jan 07, 2008 5:26 pm
Location: Nijmegen (The Netherlands)

Post by PapaAtHome » Thu Jan 24, 2008 7:10 pm

PapaAtHome wrote:Hi,1) Installed in 'C:\Program Files' causes maintenance problems with (wx)DEV-C++. The package manager included with
(wx)DEV-C++ seems to work and reports no problem but Vista prevents installing any updates in 'C:\Program Files' without
(wx)DEV-C++ or the package manager reporting it.
Tony (tbreina) got to the source of this problem. When installing under 'program files' the directory and files/subdirectories under it get the 'read only' flag set. There seem to be some problems with unsetting this flag although! :cry:

-- Andre Steenveld.

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Post by tbreina » Thu Jan 24, 2008 10:08 pm

Right. I think the problem is that Vista is automatically setting the directory to read-only. For some reason, it doesn't report this when you try to install the packages. Instead, it remains silent and you think that you have successfully updated (i.e. overwritten) the files when in fact you have not. One solution is to make the directory (and subdirectories/files) writeable by all; but, this is certainly not the best practice. buildere thinks we need to add a manifest to the packages so that Vista executes the package manager with a higher permission setting.

-Tony
Everybody's got something to hide except for me and my monkey.

kin.ming
Earned a small fee
Earned a small fee
Posts: 12
Joined: Sat Mar 31, 2007 7:33 am

Post by kin.ming » Mon Mar 17, 2008 5:16 pm

That's because in Vista you can no longer execute an external program as easy as before. To fix this problem you should download a Vista version MingW. Get it at http://mingw.sourceforge.net

Post Reply