Dev C++, I have one error and I need Help.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Indecom 4000 Inc.
Posts: 9
Joined: Wed Jan 21, 2004 5:08 pm
Location: Graham, WA

Dev C++, I have one error and I need Help.

Post by Indecom 4000 Inc. »

I just got the engine, It's the best I have ever seen! But I am having problems. I tried out the hello-world tutorial for dev c++, but after I compile it and go to run it, it says that the source needs to be compiled, but if I compile and render (F9) it compiles, then stops dead in it's track. I thought that it would be that I had to move the Irrlicht.dll thing, so I did, but it didn't fix the problem. I need some help, I'm making a 3D game for my senior project at school, and I can't get it to work. My email is Chris_legasse@hotmail.com if anyone want to mail me. :cry:
When no one's looking... Love to love me baby!
Epsilon
Posts: 38
Joined: Fri Jan 09, 2004 1:46 pm
Location: Argentina

Post by Epsilon »

The most common problem when you start to use irrlicht is that DevCpp have problems to compile Irrlicht applications with DirectX so you have to change the line

IrrlichtDevice *device = createDevice(DT_OPENGL, Dimension2d<s32>(512, 384), 16, false, false, 0);

if it isnt the problem tell us what is the error message.
Indecom 4000 Inc.
Posts: 9
Joined: Wed Jan 21, 2004 5:08 pm
Location: Graham, WA

Post by Indecom 4000 Inc. »

:? It didn't work. In the compile log it says:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Projects\Irr demo\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Projects\Irr demo\Makefile.win" all
Execution terminated

What the exact error is I don't know, how would I find out?
When no one's looking... Love to love me baby!
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

if you're using 0.4.2, that should be EDT_OPENGL

hrm, cant figure out much from that output-- but i'll paste my own DevCPP output from my current project, for comparison:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\projects\IrrLichtRPG\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\projects\IrrLichtRPG\Makefile.win" all
g++.exe -c src/RPG/gameController.cpp -o _temp/gameController.o -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward" -I"C:/DEV-CPP/include" -I"C:/Dev-Cpp/projects/irrlicht-0.4/include"

g++.exe _temp/game_state.o _temp/game_statehandler.o _temp/game_engine.o _temp/main.o _temp/example_engine.o _temp/gs_intro.o _temp/gs_main.o _temp/gs_optionmenu.o _temp/ICE_options.o _temp/q_xml.o _temp/Tokenizer.o _temp/gs_configure.o _temp/tinystr.o _temp/tinyxml.o _temp/tinyxmlerror.o _temp/tinyxmlparser.o _temp/gameController.o _temp/rpg_baseobject.o _temp/rpg_worldobject.o ICE_private.res -o "IrrLichtRPG.exe" -L"C:/DEV-CPP/lib" -L"C:/Dev-Cpp/projects/irrlicht-0.4/lib/DevCpp" ../irrlicht-0.4/lib/DevCpp/libIrrlicht.a ../irrlicht-0.4/lib/DevCpp/libjpeg.a ../irrlicht-0.4/lib/DevCpp/libz.a

Execution terminated
Compilation successful
a screen cap is worth 0x100000 DWORDS
Epsilon
Posts: 38
Joined: Fri Jan 09, 2004 1:46 pm
Location: Argentina

Post by Epsilon »

mmmm, maybe the name of the folder "irr demo", i think it cant have an " ", try change the name to "irr_demo".
yikyak
Posts: 12
Joined: Tue Jan 13, 2004 1:54 am

Linkage

Post by yikyak »

From your log output, it would appear that the compilation was at least partially succesful.

With DevC++/MinGW you have to make sure that you linking against the correct libraries. MinGW requires a different set of directx libs (especially the import libraries) than are provided by the Microsoft directx SDK.

If you've not already done it, open devc++ and click on Tools > Check for packages / updates, and get the Directx SDK libs from there. You need to also make sure that a.)all the relevant dll's are in your PATH and b.) you're linking against the right import libraries and not any others that might be in your system. It's possible that in trying to link your irrlicht source (if it's not finding the import lib) it's using the version of libjpeg that comes with MinGW and not the one in the irrlicht/lib folder. This will cause problems.

From your description it sounds like the compiler can't find the right import lib (f)or the dll, and is assuming your source needs to be compiled. You should also have a look at the GCC documentation and check the Project > Project Options > Parameters and Project > Project Options > Directories settings to make sure it's finding everything and using the right versions first.

I had problems with devc++ at first but it does work - just needs the correct configuration. Good luck.
Indecom 4000 Inc.
Posts: 9
Joined: Wed Jan 21, 2004 5:08 pm
Location: Graham, WA

Post by Indecom 4000 Inc. »

Well, I've tried it, and none works, I'm a little depressed, but I'm sure I'll get it, with the right help.
When no one's looking... Love to love me baby!
Indecom 4000 Inc.
Posts: 9
Joined: Wed Jan 21, 2004 5:08 pm
Location: Graham, WA

Post by Indecom 4000 Inc. »

I tried to update devcpp, but it says that I'm missing devcpp.cfg file. What is this, where can I get it and where does it go.
When no one's looking... Love to love me baby!
yikyak
Posts: 12
Joined: Tue Jan 13, 2004 1:54 am

Post by yikyak »

Indecom 4000 Inc. wrote:I tried to update devcpp, but it says that I'm missing devcpp.cfg file. What is this, where can I get it and where does it go.
Hmmm - That's a standard program file - usually ships as an integral part of DevC++. Sounds like you might have a hokey install of some kind. Which version are you using? The newest one (labelled beta on the website) is quite stable and will self-bootstrap to the newest version if you download it: you should then be ables to update and download the right libs.

BTW. Irrlicht doesn't come with Directx capacity built-in by default; you have to re-build it and change a macro first . Have a look at Epsilon's top-level post for more details. You don't have to do everything exactly as he's done it, but you do need the MinGW version of the directx SDK and to link against irrlicht's version of libjpeg.
Indecom 4000 Inc.
Posts: 9
Joined: Wed Jan 21, 2004 5:08 pm
Location: Graham, WA

Post by Indecom 4000 Inc. »

I have the beta installed, but I still don't have the .cfg file. Should I just use regular c++ and if so, Is possible to get it free?
When no one's looking... Love to love me baby!
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

its just a txt file, perhaps you can create one and fill it in.

here is the contents of mine:
[VUPDATE]
AdvancedProxyPort="8010"
AdvancedProxyServer="proxyserver"
AdvancedUseProxy="0"
AdvancedBandwidthThrottle="100.000000"
AdvancedDebugLog="0"
ListOther="1"
ListHelp="1"
ListSelectedLanguage="All"
ListLanguages="1"
ListPatches="1"
ListPackages="1"
InterfacePreviews="1"
InterfaceDevTheme="1"
InterfaceSmoothProgressBar="1"
InterfaceRuns="1"
$ROOT="C:\DEV-CPP\"
$BIN="C:\DEV-CPP\Bin"
$HELP="C:\DEV-CPP\Help\"
$ICONS="C:\DEV-CPP\Icons\"
$INCLUDE="C:\DEV-CPP\include"
$LIB="C:\DEV-CPP\lib"
$LANG="C:\DEV-CPP\Lang\"
$TEMPLATES="C:\DEV-CPP\Templates\"
$THEMES="C:\DEV-CPP\Themes\"

[Tools]
Count=0

[WEBUPDATE]
Dev-C++ Update=4.9.8.5
Dev-C++ Update debug info=4.9.8.5
Insight Binary DevPak=1.00
a screen cap is worth 0x100000 DWORDS
Indecom 4000 Inc.
Posts: 9
Joined: Wed Jan 21, 2004 5:08 pm
Location: Graham, WA

Post by Indecom 4000 Inc. »

Where do I place this? What directory?
When no one's looking... Love to love me baby!
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

c:\DevCpp\devcpp.cfg (or yourinstalldir\devcpp.cfg, should be next to devcpp.exe)
a screen cap is worth 0x100000 DWORDS
Indecom 4000 Inc.
Posts: 9
Joined: Wed Jan 21, 2004 5:08 pm
Location: Graham, WA

Post by Indecom 4000 Inc. »

Okay, I got it, but it says now that my devcpp.cfg file is missing the $bin field in it's [VUPDATE] section. Is this something I need to make it compile and run my projects?
When no one's looking... Love to love me baby!
Greywolf
Posts: 5
Joined: Mon Jan 26, 2004 7:44 pm

Post by Greywolf »

I'll admit.... this post is kinda pointless.... but I also have the BIN$ field missing problem...
Post Reply