You are not logged in.

Read the FAQ and Knowledge Base before posting.
WiFi not emulated and not supported!!
We won't make a 3DS/2DS emulator.



#1 2007-03-24 15:25:40

zefiris
Member
Registered: 2007-03-24
Posts: 7

Problem with compiling CVS using dev-cpp...

Here's what I do:


1) downloaded CVS according to guide from site
2) opened .dev file with dev-cpp
3) addded matrix.c / render3D.c / oglRender.c
4) added -lopengl32 -lglu32 to linker parameters
5) tried to compile...

In function `run':
  [Linker error] undefined reference to `NDS_3D_SetDriver'

I tried redowloading, it did not help... any ideas on what's wrong?..

Offline

#2 2007-03-25 02:41:49

Normmatt
Member
Registered: 2007-03-25
Posts: 18

Re: Problem with compiling CVS using dev-cpp...

The problem your having is because when you include files in to the current project file it includes them as a C++ file and when you try and link C and C++ functions it causes problems, I'll commit the updated files sometime today

Offline

#3 2007-03-25 02:58:28

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Problem with compiling CVS using dev-cpp...

The problem was the makefiles. I sent him mines and he got it working.


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#4 2007-03-25 04:47:18

Normmatt
Member
Registered: 2007-03-25
Posts: 18

Re: Problem with compiling CVS using dev-cpp...

snkmad, where do you think the makefiles come from? they get generated by using info from the project file which was broken as you don't want to be linking both C and C++ code together like that, I've committed the fix aswell as a little something extra just now

Offline

#5 2007-04-24 09:47:35

samuraikill
Member
Registered: 2007-03-17
Posts: 37

Re: Problem with compiling CVS using dev-cpp...

Hey, im having a problem where its saying  dsound.h no such file. I have dev-C++, and Directx SDK installed but I don't know how to fix this.


So... How about those trees?

Offline

#6 2007-04-24 11:31:55

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Problem with compiling CVS using dev-cpp...

If you use dev-cpp, you dont need DX SDK, but only dx80_mgw.


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#7 2007-04-24 11:41:22

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Problem with compiling CVS using dev-cpp...

Something tells me emails on here dont work...or you have just not checked your email in a while snkmad...anyways I had the same problem and I was using dx80_mgw.

Offline

#8 2007-04-24 12:36:32

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Problem with compiling CVS using dev-cpp...

Sorry i just checked my mail yesterday night.
Ive to make a tutorial just like Imp0ster made for VC++.
In the mean time, whats your problem?
Heres the dx80_mgw commented. http://rapidshare.com/files/27658378/dx … d.rar.html  http://d.turboupload.com/d/1745627/dx80 … d.rar.html
I know it works coz thats the one i use here.
After you unpack those, make sure you also have SDL.
Here i unpack everything inside the dev-cpp, either on lib or include dirs, so its all in the same place.

EDIT: ok here some major tips:
Go to project options, Alt+p, and on the parameters tab, things should look like this:
t1773_1.jpg

Compiler:
-DVERSION=\"0.7\"
-DHAVE_LIBZ
-DHAVE_LIBZZIP

Linker:
-ldxguid -ldxerr8 -ldsound -lws2_32 -lz
C:/Dev-Cpp/bin/zlib1.dll
C:/Dev-Cpp/bin/zzip-1.dll
../../../bin/SDL.dll
../../../lib/GLU32.LIB
../../../lib/OPENGL32.LIB

On the Directories tab, like these:
t1774_2.jpg
t1775_3.jpg

And heres my desmume.dev project file: http://rapidshare.com/files/27661242/DeSmuME.dev.html  http://d.turboupload.com/d/1745624/DeSmuME.dev.html

If you´re still having problems, open it with notepad and compare with yours.

Last edited by snkmad (2007-04-24 13:54:30)


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#9 2007-04-24 13:31:41

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Problem with compiling CVS using dev-cpp...

Can you upload those somewhere else but Rapidshare or MegaUpload? I don't know why people like ithem so much I can just about never download anything off there.
Also what SDL are you talking about and where can I get it?
Also does the .dev project file not change with every different version of the CVS?

Last edited by SCHUMI-4-EVA (2007-04-24 13:34:33)

Offline

#10 2007-04-24 13:59:24

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Problem with compiling CVS using dev-cpp...

I use sdl 1.2.11 package, just google for SDL.
Added more mirrors for those files.
Note that you would also need zlib and zziplib.


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#11 2007-04-24 14:08:01

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Problem with compiling CVS using dev-cpp...

And I put everything in the same folder then? zlib and the DirectX package and everything else?

I have googled but there are lot's of options...source, compiled, development, runtime and tons of different SDL packages? Which one am I after? It really would be easier if you could just give me links...otherwise I will download the wrong one and will end up with some sort of unexplained error. Which will just annoy us both.

By the way the links worked well, those second mirrors, thanks.

Last edited by SCHUMI-4-EVA (2007-04-24 15:04:28)

Offline

#12 2007-04-24 20:10:52

samuraikill
Member
Registered: 2007-03-17
Posts: 37

Re: Problem with compiling CVS using dev-cpp...

I did what you said but now its giving me this

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\kids\Desktop\desmume\desmume\src\windows\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\kids\Desktop\desmume\desmume\src\windows\Makefile.win" all
gcc.exe -c ../ROMReader.c -o obj/ROMReader.o -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include/SDL"  -DVERSION=\"0.7\"  -DHAVE_LIBZ -DHAVE_LIBZZIP   -fexpensive-optimizations -O3

../ROMReader.c:5:23: zzip/zzip.h: No such file or directory
../ROMReader.c: In function `ZIPROMReaderInit':
../ROMReader.c:157: error: `ZZIP_DIRENT' undeclared (first use in this function)

../ROMReader.c:157: error: (Each undeclared identifier is reported only once
../ROMReader.c:157: error: for each function it appears in.)
../ROMReader.c:157: error: `dir' undeclared (first use in this function)
../ROMReader.c:165: warning: return makes pointer from integer without a cast

make.exe: *** [obj/ROMReader.o] Error 1

Execution terminated


So... How about those trees?

Offline

#13 2007-04-24 20:41:53

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Problem with compiling CVS using dev-cpp...

Ok looks like your missing zziplib: http://d.turboupload.com/d/1746700/zzip.rar.html
About the SDL, i dont remember which one i used, since i have 2 or 3 installers here.
Ill just upload all and wish you good luck smile http://d.turboupload.com/d/1746719/SDL.rar.html


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#14 2007-04-24 23:27:18

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Problem with compiling CVS using dev-cpp...

Ok but what about zlib...source or compiled? I assume compiled?

And as I asked before I extract/install all of these to the same folder?

Offline

#15 2007-04-25 00:59:42

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Problem with compiling CVS using dev-cpp...

No where on earth am I supposed to get OpenGL32.lib and GLU32.lib from....another package you obviously forgot....

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\SCHUMI\My Documents\NDS Emulation\DeSmuME CVS\desmume\src\windows\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\SCHUMI\My Documents\NDS Emulation\DeSmuME CVS\desmume\src\windows\Makefile.win" all
gcc.exe ../ROMReader.o ../debug.o ../Disassembler.o ../FIFO.o ../fs-windows.o ../GPU.o ConfigKeys.o CWindow.o disView.o ginfo.o IORegView.o main.o mapView.o memView.o oamView.o palView.o tileView.o ../arm_instructions.o ../armcpu.o ../bios.o ../cflash.o ../cp15.o ../mc.o ../MMU.o ../NDSSystem.o ../saves.o ../SPU.o ../thumb_instructions.o snddx.o ../wifi.o ../gl_vertex.o OGLRender.o ../matrix.o ../render3D.o FirmConfig.o yopyop_private.res -o "DeSmuME.exe" -L"lib" -L"C:/Dev-Cpp/lib" -L"C:/Dev-Cpp/zzip" -L"C:/Dev-Cpp/include/zzip" -L"C:/Dev-Cpp/include/zlib" -mwindows -ldxguid -ldxerr8 -ldsound -lws2_32 -lz C:/Dev-Cpp/bin/zlib1.dll C:/Dev-Cpp/bin/zzip-1.dll ../../../lib/GLU32.LIB ../../lib/OPENGL32.LIB C:/Dev-Cpp/bin/SDL.dll  -s

gcc.exe: ../../../lib/GLU32.LIB: No such file or directory
gcc.exe: ../../lib/OPENGL32.LIB: No such file or directory

make.exe: *** [DeSmuME.exe] Error 1

Execution terminated


Not to mention that I have had to add to what you have told me...there is no way that you are compiling the CVS with the settings you gave me, directories were missing....

I am not specifically angry at you I am angry at these guides, because aside from the guide on how to get the CVS in the first place they have all left something out...which is ctricial....or at least my PC and version of Dev-ccp are different somehow..which would be weird.

Offline

#16 2007-04-25 01:40:36

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Problem with compiling CVS using dev-cpp...

Well i forgot about the opengl one, sorry. And i had to figure it out most of stuff too.
Yeah i already knew how to do a cvs checkout and how to compile programs using dev-cpp, it helped me.

About the opengl, heres the one i used, a self-extractor. http://d.turboupload.com/d/1747470/Opengl95.exe.html
Its an .exe, so if you dont trust me or my anti-virus, its ok, just search on google for opengl95.exe

And about the folder question, i only added files to 3: bin, include, lib.


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#17 2007-04-25 01:54:51

samuraikill
Member
Registered: 2007-03-17
Posts: 37

Re: Problem with compiling CVS using dev-cpp...

Its still saying zzip/zzip.h: No such file or directory. Do I have to put zzip/zzip.h into desmume windows folder?


So... How about those trees?

Offline

#18 2007-04-25 03:06:32

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Problem with compiling CVS using dev-cpp...

Well try C:\Dev-Cpp\include\zzip
All zzip source is there.


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#19 2007-04-25 12:24:31

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Problem with compiling CVS using dev-cpp...

Now what's wrong?
Am I missing another pack?

(there's half a million of these btw)
windres.exe: warning: 24: 1: 1033: duplicate value
windres.exe: warning: 16: 1: 1033: duplicate value

gcc.exe ../ROMReader.o ../debug.o ../Disassembler.o ../FIFO.o ../fs-windows.o ../GPU.o ConfigKeys.o CWindow.o disView.o ginfo.o IORegView.o main.o mapView.o memView.o oamView.o palView.o tileView.o ../arm_instructions.o ../armcpu.o ../bios.o ../cflash.o ../cp15.o ../mc.o ../MMU.o ../NDSSystem.o ../saves.o ../SPU.o ../thumb_instructions.o snddx.o ../wifi.o ../gl_vertex.o OGLRender.o ../matrix.o ../render3D.o FirmConfig.o yopyop_private.res -o "..\..\..\..\CVS\DeSmuME.exe" -L"lib" -L"C:/Dev-Cpp/lib" -L"C:/Dev-Cpp/zzip" -L"C:/Dev-Cpp/include/zzip" -L"C:/Dev-Cpp/include/zlib" -mwindows -ldxguid -ldxerr8 -ldsound -lws2_32 -lz C:/Dev-Cpp/bin/zlib1.dll C:/Dev-Cpp/bin/zzip-1.dll C:/Dev-Cpp/bin/SDL.dll C:/Dev-Cpp/lib/GLU32.LIB C:/Dev-Cpp/lib/OPENGL32.LIB  -s

C:\Dev-Cpp\Bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lz
collect2: ld returned 1 exit status

make.exe: *** [../../../../CVS/DeSmuME.exe] Error 1

Execution terminated
Compilation successful

Offline

#20 2007-04-25 14:08:44

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Problem with compiling CVS using dev-cpp...

-lz means it cant find zlib.
Try w/out the -lz parameter.


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#21 2007-04-25 14:32:59

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Problem with compiling CVS using dev-cpp...

Why on earth can't it find zlib...I have told it where it is in every category because I was not sure where it belonged.



And what on earth is wrong now????...Ill be surprised if this thing does not tell me just now, oops can't find hardrive or CPU....

-L"C:/Dev-Cpp/bin" -mwindows -ldxguid -ldxerr8 -ldsound -lws2_32 C:/Dev-Cpp/bin/zlib1.dll C:/Dev-Cpp/bin/zzip-1.dll C:/Dev-Cpp/bin/SDL.dll C:/Dev-Cpp/lib/GLU32.LIB C:/Dev-Cpp/lib/OPENGL32.LIB C:/Dev-Cpp/mingw32/bin C:/Dev-Cpp/libexec/gcc/mingw32/3.4.2 C:/Dev-Cpp/bin  -s

C:\Dev-Cpp\Bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: C:/Dev-Cpp/mingw32/bin: No such file: Permission denied
collect2: ld returned 1 exit status

make.exe: *** [../../../../CVS/DeSmuME.exe] Error 1

Execution terminated

Last edited by SCHUMI-4-EVA (2007-04-25 14:54:30)

Offline

#22 2007-04-25 21:08:46

samuraikill
Member
Registered: 2007-03-17
Posts: 37

Re: Problem with compiling CVS using dev-cpp...

lol, now its giving me this

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\kids\Desktop\desmume\desmume\src\windows\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\kids\Desktop\desmume\desmume\src\windows\Makefile.win" all
gcc.exe -c snddx.c -o obj/snddx.o -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include/SDL"  -I"C:/Dev-Cpp/include/zzip"  -DVERSION=\"0.7\"  -DHAVE_LIBZ -DHAVE_LIBZZIP   -fexpensive-optimizations -O3

snddx.c:20:20: dsound.h: No such file or directory
snddx.c:23: error: syntax error before "hr"

snddx.c:25: error: syntax error before "hr"

snddx.c:53: error: syntax error before "lpDS8"

snddx.c:53: warning: data definition has no type or storage class
snddx.c:54: error: syntax error before "lpDSB"
snddx.c:54: warning: data definition has no type or storage class
snddx.c:55: error: syntax error before "hwnd"
snddx.c:55: warning: data definition has no type or storage class
snddx.c:60: error: syntax error before "soundvolume"

snddx.c:60: warning: data definition has no type or storage class
snddx.c: In function `SNDDXInit':
snddx.c:67: error: `DSBUFFERDESC' undeclared (first use in this function)
snddx.c:67: error: (Each undeclared identifier is reported only once
snddx.c:67: error: for each function it appears in.)
snddx.c:67: error: syntax error before "dsbdesc"
snddx.c:68: error: `WAVEFORMATEX' undeclared (first use in this function)
snddx.c:69: error: `HRESULT' undeclared (first use in this function)

snddx.c:72: error: `ret' undeclared (first use in this function)
snddx.c:72: error: `NULL' undeclared (first use in this function)

snddx.c:72: error: `DS_OK' undeclared (first use in this function)

snddx.c:75: error: `MB_OK' undeclared (first use in this function)
snddx.c:75: error: `MB_ICONINFORMATION' undeclared (first use in this function)

snddx.c:79: error: `DSSCL_PRIORITY' undeclared (first use in this function)
snddx.c:86: error: `dsbdesc' undeclared (first use in this function)
snddx.c:88: error: `DSBCAPS_PRIMARYBUFFER' undeclared (first use in this function)
snddx.c:101: error: `wfx' undeclared (first use in this function)
snddx.c:102: error: `WAVE_FORMAT_PCM' undeclared (first use in this function)
snddx.c:118: error: `DSBCAPS_GLOBALFOCUS' undeclared (first use in this function)
snddx.c:118: error: `DSBCAPS_STICKYFOCUS' undeclared (first use in this function)
snddx.c:119: error: `DSBCAPS_CTRLVOLUME' undeclared (first use in this function)
snddx.c:119: error: `DSBCAPS_GETCURRENTPOSITION2' undeclared (first use in this function)
snddx.c:120: error: `DSBCAPS_LOCHARDWARE' undeclared (first use in this function)
snddx.c:126: error: `DSERR_CONTROLUNAVAIL' undeclared (first use in this function)
snddx.c:127: error: `DSERR_INVALIDCALL' undeclared (first use in this function)
snddx.c:128: error: `E_FAIL' undeclared (first use in this function)
snddx.c:129: error: `E_NOTIMPL' undeclared (first use in this function)
snddx.c:134: error: `DSBCAPS_LOCSOFTWARE' undeclared (first use in this function)
snddx.c:151: error: `DSBPLAY_LOOPING' undeclared (first use in this function)
snddx.c:158: error: `DSBVOLUME_MAX' undeclared (first use in this function)

snddx.c: In function `SNDDXDeInit':
snddx.c:168: error: `DWORD' undeclared (first use in this function)
snddx.c:168: error: syntax error before "status"
snddx.c:172: error: `status' undeclared (first use in this function)
snddx.c:174: error: `DSBSTATUS_PLAYING' undeclared (first use in this function)
snddx.c:178: error: `NULL' undeclared (first use in this function)
snddx.c: In function `SNDDXUpdateAudio':
snddx.c:198: error: `LPVOID' undeclared (first use in this function)
snddx.c:198: error: syntax error before "buffer1"
snddx.c:200: error: `DWORD' undeclared (first use in this function)
snddx.c:203: error: `status' undeclared (first use in this function)
snddx.c:205: error: `DSBSTATUS_BUFFERLOST' undeclared (first use in this function)
snddx.c:208: error: `buffer1' undeclared (first use in this function)

snddx.c:208: error: `buffer1_size' undeclared (first use in this function)
snddx.c:208: error: `buffer2' undeclared (first use in this function)
snddx.c:208: error: `buffer2_size' undeclared (first use in this function)

snddx.c: In function `SNDDXGetAudioSpace':
snddx.c:224: error: `DWORD' undeclared (first use in this function)
snddx.c:224: error: syntax error before "playcursor"
snddx.c:227: error: `playcursor' undeclared (first use in this function)
snddx.c:227: error: `writecursor' undeclared (first use in this function)
snddx.c:227: error: `DS_OK' undeclared (first use in this function)
snddx.c: In function `SNDDXMuteAudio':
snddx.c:246: error: `DSBVOLUME_MIN' undeclared (first use in this function)
snddx.c: In function `SNDDXSetVolume':
snddx.c:262: error: `LONG' undeclared (first use in this function)
snddx.c:262: error: syntax error before "volume"

make.exe: *** [obj/snddx.o] Error 1

Execution terminated


So... How about those trees?

Offline

#23 2007-04-25 21:22:31

shash
Administrator
Registered: 2007-03-17
Posts: 897

Re: Problem with compiling CVS using dev-cpp...

samuraikill wrote:

snddx.c:20:20: dsound.h: No such file or directory

Hint tongue

Offline

#24 2007-04-25 21:39:05

samuraikill
Member
Registered: 2007-03-17
Posts: 37

Re: Problem with compiling CVS using dev-cpp...

Funny thing is about dsound.h is im pretty sure its in the right spot.


So... How about those trees?

Offline

#25 2007-04-26 00:17:02

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Problem with compiling CVS using dev-cpp...

It's messed uo somehow....I had to search for a fixed one on the net...that was the last time I gave up trying to compile the CVS and I am just about to give up this time aswel...I promise you when Dev-cpp finally compiles everything perfectly all the way to just before it makes the exe, it's gonna have an error where it can'd find itself....or my CPU or hardrive or something...

Offline

Board footer

Powered by FluxBB