Dev C++, I have one error and I need Help.
-
- Posts: 9
- Joined: Wed Jan 21, 2004 5:08 pm
- Location: Graham, WA
Dev C++, I have one error and I need Help.
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.
When no one's looking... Love to love me baby!
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.
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.
-
- Posts: 9
- Joined: Wed Jan 21, 2004 5:08 pm
- Location: Graham, WA
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?
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!
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:
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
Linkage
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.
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.
-
- Posts: 9
- Joined: Wed Jan 21, 2004 5:08 pm
- Location: Graham, WA
-
- Posts: 9
- Joined: Wed Jan 21, 2004 5:08 pm
- Location: Graham, WA
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.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.
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.
-
- Posts: 9
- Joined: Wed Jan 21, 2004 5:08 pm
- Location: Graham, WA
its just a txt file, perhaps you can create one and fill it in.
here is the contents of mine:
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
-
- Posts: 9
- Joined: Wed Jan 21, 2004 5:08 pm
- Location: Graham, WA
-
- Posts: 9
- Joined: Wed Jan 21, 2004 5:08 pm
- Location: Graham, WA