Subject: Running UADE under Windows

From: Mr.Modem
Date: Sun Mar 5 12:40:02 2006

To: UADE-Developer-discussion
Have anyone successfully compiled UADE under windows?

---

From: Mr.Modem
Date: Sun Mar 5 12:52:35 2006

To: UADE-Developer-discussion
Sorry for this thread folks, I succeded to compile UADE under cygwin. Please delete this thread!

---

From: mld/uade team
Date: Mon Mar 6 08:12:05 2006

To: UADE-Developer-discussion
I think it's good to keep those threads for folks trying the same. Anything special you did to compile or just plain cygwin? A howto or install procedure could be interesting?

---

From: Mr.Modem
Date: Mon Mar 6 20:35:01 2006

To: UADE-Developer-discussion
First I tried and failed, I don't remember what error messages I got. I reinstalled cygwin and everything went well. I did nothing special, just:

./configure
make
make install

---

From: mld/uade team
Date: Mon Mar 6 22:52:59 2006

To: UADE-Developer-discussion
ok... thanks for the feedback:-)

---

From: shd
Date: Wed Mar 8 23:46:44 2006

To: UADE-Developer-discussion
[quote:4083b132ec="Mr.Modem"]First I tried and failed, I don't remember what error messages I got. I reinstalled cygwin and everything went well. I did nothing special, just:

./configure
make
make install[/quote:4083b132ec]

I do not want reports like that. Procedures should be documented so that they're useful to us. Reinstalling a system is not a solution, it's just a lottery. Could you backtrack what you did?

---

From: mld/uade team
Date: Thu Mar 9 16:54:52 2006

To: UADE-Developer-discussion
*g* isn't reinstalling from scratch on Win something that can be seen as a valid install procedure. At least that's what I teach the people in my courses ;-)

Ok, seriously... something like build requirements, neccessary/optional packages are interesting... I'd like to put things into a INSTALL.cygwin file.

---

From: Guest
Date: Fri Mar 10 11:15:03 2006

To: UADE-Developer-discussion
Don't know what's installed default. Having gcc (3.4.4-1) package I had to install following

pkg-config (0.20-1)
libao (0.8.6-1)
libao-devel (0.8.6-1)

With that I was able to do 

./configure --with-uade123 --without-xmms
make

cpuemus give a LOT of 
Warning: .stabn: description field '1399f' too big, try a different debug format

Some other misc warnings I got

../../uadeipc.c: In function `uade_valid_message':
../../uadeipc.c:279: warning: int format, uint32_t arg (arg 3)

../common/eagleplayer.c: In function `uade_save_content_db':
../common/eagleplayer.c:678: warning: int format, uint32_t arg (arg 4)

playloop.c: In function `play_loop':
playloop.c:443: warning: int format, uint32_t arg (arg 3)

../common/uadecontrol.c: In function `uade_song_initialization':
../common/uadecontrol.c:150: warning: int format, uint32_t arg (arg 3)

Hope this helps someone.

---

From: shd
Date: Fri Mar 10 12:41:48 2006

[quote:ac47b36554]
[/quote:ac47b36554]

Interesting. I haven't seen those warnings anywhere.

[quote:ac47b36554]

[/quote:ac47b36554]

All of those were debug or error message prints. Corrected some warnings in the CVS. What version of uade are you trying to compile? You should try the latest CVS version. There aren't 279 lines in uadeipc.c!

---

From: Guest
Date: Fri Mar 10 13:20:18 2006

To: UADE-Developer-discussion
I compiled UADE 2.01 distribution (uade-2.01.tar.bz2).

Let's try CVS version...

[quote:96185629b0]
cpuemus give a LOT of 
[/quote:96185629b0]

Still get these. Apparently these are due to limitations of stabs debug format. Final binary is working but some debug information is missing.

Changing &quot;-g&quot; to &quot;-gdwarf-2&quot; solves this. I don't know if you're able to gdb after that.

[quote:96185629b0="shd"]
[quote:96185629b0]

[/quote:96185629b0]

All of those were debug or error message prints. Corrected some warnings in the CVS. What version of uade are you trying to compile? You should try the latest CVS version. There aren't 279 lines in uadeipc.c![/quote:96185629b0]

../../uadeipc.c: In function `valid_message':
../../uadeipc.c:237: warning: int format, uint32_t arg (arg 3)

../common/eagleplayer.c: In function `uade_save_content_db':
../common/eagleplayer.c:747: warning: unsigned int format, uint32_t arg (arg 4)

playloop.c: In function `play_loop':
playloop.c:451: warning: unsigned int format, uint32_t arg (arg 3)

../common/uadecontrol.c: In function `uade_song_initialization':
../common/uadecontrol.c:151: warning: unsigned int format, uint32_t arg (arg 3)

---

From: shd
Date: Fri Mar 10 13:44:32 2006

To: UADE-Developer-discussion
[quote:9982acd932="Anonymous"]
../../uadeipc.c: In function `valid_message':
../../uadeipc.c:237: warning: int format, uint32_t arg (arg 3)

[/quote:9982acd932]

Fixed them again. It seems the compiler gives a warning even if 'unsigned int' is exactly the same type as uint32_t on your architecture.

---

From: jraitala
Date: Tue Oct 24 04:43:51 2006

To: UADE-Developer-discussion
I installed Cygwin packages gcc, make, pkg-config, libao &amp; libao-devel on a pristine Cygwin installation and tried to compile UADE. However, building UADE fails with the following error:

[code:1:8ecb1d307b]gcc -Wall -O2 -I../../include -I../common   -g  -c ../common/songdb.c
../common/songdb.c&#58; In function `uade_open_and_lock'&#58;
../common/songdb.c&#58;285&#58; warning&#58; implicit declaration of function `lockf'
../common/songdb.c&#58;285&#58; error&#58; `F_LOCK' undeclared &#40;first use in this function&#41;
../common/songdb.c&#58;285&#58; error&#58; &#40;Each undeclared identifier is reported only once

../common/songdb.c&#58;285&#58; error&#58; for each function it appears in.&#41;
make&#91;1&#93;&#58; *** &#91;songdb.o&#93; Error 1
make&#91;1&#93;&#58; Leaving directory `/tmp/uade/src/frontends/uade123'
make&#58; *** &#91;uade123&#93; Error 2[/code:1:8ecb1d307b]

Seems Cygwin lacks lockf(). I wonder how the rest of you got it to compile. Anything I'm missing?

The rest of the source code compiles just fine (apart from the warnings noted earlier in this thread) if you omit calling lockf(). I substituted calling lockf() with defining ret=-1 and UADE runs fine, altough I guess using song.conf isn't possible.

---

From: shd
Date: Tue Oct 24 10:30:41 2006

To: UADE-Developer-discussion
[quote:eb333937bb="jraitala"]I installed Cygwin packages gcc, make, pkg-config, libao &amp; libao-devel on a pristine Cygwin installation and tried to compile UADE. However, building UADE fails with the following error:

[code:1:eb333937bb]gcc -Wall -O2 -I../../include -I../common   -g  -c ../common/songdb.c

../common/songdb.c&#58;285&#58; error&#58; for each function it appears in.&#41;
make&#91;1&#93;&#58; *** &#91;songdb.o&#93; Error 1
make&#91;1&#93;&#58; Leaving directory `/tmp/uade/src/frontends/uade123'
make&#58; *** &#91;uade123&#93; Error 2[/code:1:eb333937bb]

The rest of the source code compiles just fine (apart from the warnings noted earlier in this thread) if you omit calling lockf(). I substituted calling lockf() with defining ret=-1 and UADE runs fine, altough I guess using song.conf isn't possible.[/quote:eb333937bb]

Try latest CVS version. I removed locking from cygwin version. songdb should be usable.