CEGUI + Dev-c++, problems

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

CEGUI + Dev-c++, problems

Postby Pompei2 » Sun Sep 24, 2006 17:13

Hello,

I successfully compiled my little application on Visual Studio .NET Express 2005, but on some pc's, the app didn't even start, error message:

The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem

They were missing no dll .... I searched on the net and found - nearly nothing util ... some problems with manifest files and so one, so i thought, why not try it with devc++, I just can't trust microsoft products :P

[EDIT]the application now works, I simply had to install teh vc_redist package on some of the pc's, but it would still be interesting to know what i do wrong on devc++[/EDIT]

but now I got these strange errors and have no clue what to do:

Compiler: Default compiler
Building Makefile: "D:\programmation\DeMoi\FTS\trunk\tools\fts_updater\devcpp\Makefile.win"
Executing make...
make.exe -f "D:\programmation\DeMoi\FTS\trunk\tools\fts_updater\devcpp\Makefile.win" all
g++.exe -c ../crc32.cpp -o ../crc32.o -I"F:/Progs/Dev/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/backward" -I"F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/mingw32" -I"F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2" -I"F:/Progs/Dev/Dev-Cpp/include" -I"../../../3rd_party" -I"../../../3rd_party/cegui" -I"../../../3rd_party/ftplib-3.1-1/winnt"

In file included from F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:43,
from F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
from F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/bits/stl_algobase.h:70,
from F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/bits/char_traits.h:46,
from F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/string:47,
from ../../../3rd_party/cegui/CEGUIBase.h:87,
from ../../../3rd_party/cegui/openglrenderer.h:34,
from ../main.h:22,
from ../crc32.cpp:1:
F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/cstdio:167: error: `::snprintf' has not been declared
F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/cstdio:170: error: `::vsnprintf' has not been declared
F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/cstdio:177: error: `__gnu_cxx::snprintf' has not been declared
F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/cstdio:180: error: `__gnu_cxx::vsnprintf' has not been declared

In file included from F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
from F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/bits/stl_algobase.h:70,
from F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/bits/char_traits.h:46,
from F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/string:47,
from ../../../3rd_party/cegui/CEGUIBase.h:87,
from ../../../3rd_party/cegui/openglrenderer.h:34,
from ../main.h:22,
from ../crc32.cpp:1:
F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h: In function `int std::__convert_from_v(char*, int, const char*, _Tv, int* const&, int)':
F:/Progs/Dev/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:68: error: `snprintf' is not a member of `std'

make.exe: *** [../crc32.o] Error 1

Execution terminated


I put this on the CEGUI forum because CEGUI is the only part of my project that uses namespaces.

Could someone show me the light :?

User avatar
Dalfy
CEGUI Team (Retired)
Posts: 130
Joined: Tue Oct 11, 2005 16:13
Location: Paris, FRANCE
Contact:

Postby Dalfy » Mon Sep 25, 2006 07:02

DevC++ use mingw as a compiler. MingW compiler is not yet completly supported by CEGUI trunk. It is something we want to fix in 0.6 series :
MingW32 support, cygwin, etc.

You should have a look at the mantis bugtracker it contains several patch for CEGUI under win32 using GCC.

I hope it helps

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Tue Oct 03, 2006 21:57

Thanks for the advice, but now that i got the application to work, it is no more a priority for me to make it compile on mingw. But thankx for the advice ;)

User avatar
vasmann
Just popping in
Just popping in
Posts: 13
Joined: Thu Nov 09, 2006 17:19
Location: Ukrain, Kharkiv
Contact:

Postby vasmann » Sat Nov 11, 2006 15:53

Pompei2 wrote:Thanks for the advice, but now that i got the application to work, it is no more a priority for me to make it compile on mingw. But thankx for the advice ;)

Hello, I don't remember where I got this solution, but it works
Answer Re: Running a very simple Win32 app on a comp without VC++ 2005 Express
Answer Was this post helpful ? Reply Quote


OK, due to popular demand, and my frustration with seeing so many people using Express that simply want to run an app on another machine, without the hassle of learning about merge modules, Windows Installer, etc, etc, etc, here is a way to perform deployment option number 2 above (i.e. installing C Runtime library applocal) for Express.

1) On the machine you have Express installed, create the following folder and subfolders in your
\program files\microsoft visual studio 8\VC folder:

redist\x86\Microsoft.VC80.CRT

2) Copy msvcr80.dll, msvcp80.dll, msvcm80.dll from
\windows\winsxs\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd

into:

\program files\microsoft visual studio 8\VC\redist\x86\Microsoft.VC80.CRT

3) in the above Microsoft.VC80.CRT folder, create a new file named:

Microsoft.VC80.CRT.manifest

4) Paste the following content into the above manifest file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright © 1981-2001 Microsoft Corporation -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<noInheritable/>
<assemblyIdentity
type="win32"
name="Microsoft.VC80.CRT"
version="8.0.50608.0"
processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"
/>
<file name="msvcr80.dll"/>
<file name="msvcp80.dll"/>
<file name="msvcm80.dll"/>
</assembly>

Now you have a new folder in your Visual C++ Express installation that can be re-used when ever you need it.

To deploy these files, simply copy the Microsoft.VC80.CRT folder you just created to your program folder. That's it. So for example, if your application executable resides in C:\Program Files\MyApp, you'll have a folder named:

C:\Program Files\MyApp\Microsoft.VC80.CRT

that contains the 4 files I mentioned (3 DLLs and one manifest file you created by hand)

No installation of anything else is necessary. Just click on your EXE file, and your app will run. No special installation engines are necessary, just make your setup program (installer) create that subfolder Microsoft.VC80.CRT along with what you normally install with your app)

[/quote]

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Sun Nov 12, 2006 16:54

Wow cool thank you ! I will try this out soon :)


Return to “Help”

Who is online

Users browsing this forum: MSN [Bot] and 9 guests