Problem building latest CVS on Mac OS X 10.4.5
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Problem building latest CVS on Mac OS X 10.4.5
I'm having some issues building the latest CVS. I successfully built a prior version about a month ago - but no such luck this time.
I've installed the following packages with fink: sdl, sdl-mixer, automake1.9, and libtool14.
while compiling exult I get the following message before it quits:
gcc -g -O2 -Wall -o wuc wuc.o
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../headers -I./../files -I./../usecode -I./.. -I./../shapes -I./../imagewin -I./../conf -O2 -Wno-long-long -I/sw/include/SDL -D_THREAD_SAFE -MT wud.o -MD -MP -MF ".deps/wud.Tpo" -c -o wud.o wud.cc; \
then mv -f ".deps/wud.Tpo" ".deps/wud.Po"; else rm -f ".deps/wud.Tpo"; exit 1; fi
make[2]: *** No rule to make target `../usecode/libusecode.la', needed by `wud'. Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I've looked for a file called libusecode.la, but cannot find it. If anyone has any suggestions on how I should proceed, I'd appreciate it!
Thanks in advance,
me
I've installed the following packages with fink: sdl, sdl-mixer, automake1.9, and libtool14.
while compiling exult I get the following message before it quits:
gcc -g -O2 -Wall -o wuc wuc.o
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../headers -I./../files -I./../usecode -I./.. -I./../shapes -I./../imagewin -I./../conf -O2 -Wno-long-long -I/sw/include/SDL -D_THREAD_SAFE -MT wud.o -MD -MP -MF ".deps/wud.Tpo" -c -o wud.o wud.cc; \
then mv -f ".deps/wud.Tpo" ".deps/wud.Po"; else rm -f ".deps/wud.Tpo"; exit 1; fi
make[2]: *** No rule to make target `../usecode/libusecode.la', needed by `wud'. Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I've looked for a file called libusecode.la, but cannot find it. If anyone has any suggestions on how I should proceed, I'd appreciate it!
Thanks in advance,
me
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Problem building latest CVS on Mac OS X 10.4.5
Are you attempting to make Exult, or the Exult Tools? WUD is part of the Exult Tools package and not the core Exult package.
Also, the reason you are not finding the file is because the compiler is being unable to build the file, thats the reason it's failing.
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Also, the reason you are not finding the file is because the compiler is being unable to build the file, thats the reason it's failing.
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Problem building latest CVS on Mac OS X 10.4.5
I was attempted to make Exult, not exult tools. Basically all I did was pull down the CVS, run ./autogen.sh, ./configue, and then entered the make command.
I'm currently installing xcode on my girlfriend's powerbook, and everything else I need to run Exult to see if it's an issue with my computer - if it is I may just do an archive an reinstall to see if that helps - unless you have some advice as to removing and reinstalling some of the packages required.
Thanks for your help!
I'm currently installing xcode on my girlfriend's powerbook, and everything else I need to run Exult to see if it's an issue with my computer - if it is I may just do an archive an reinstall to see if that helps - unless you have some advice as to removing and reinstalling some of the packages required.
Thanks for your help!
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Problem building latest CVS on Mac OS X 10.4.5
Might just be the current CVS version doesn't compile properly. I'll give it a hack this evening when I'm done what I'm wroking on now
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Problem building latest CVS on Mac OS X 10.4.5
Thanks Peter - for what it's worth I just tried to make Exult on my girlfriend's powerbook g4 and received the same error. Let me know if you need anything else!
Me
Me
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Problem building latest CVS on Mac OS X 10.4.5
Just to be sure that its not the problem, what exactly is the make command you're running?
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Problem building latest CVS on Mac OS X 10.4.5
I just typed "make" after runing autogen.sh and configure, I didn't add anything to the command (I was following the readme.macosx file included in the snapshot). Let me know if you want me to add anything after the make command.
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Problem building latest CVS on Mac OS X 10.4.5
Hrm, that -should- work fine, it can cause problems if you try to get fancy with the make command - I take it you didn't change autogen.sh?
(Just trying to rule out the obvious here)
---------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
(Just trying to rule out the obvious here)
---------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Problem building latest CVS on Mac OS X 10.4.5
Nope - I left everything as is.
Re: Problem building latest CVS on Mac OS X 10.4.5
Try first running 'make' in the 'usecode' directory; that should build the library. Sounds like we have an out-of-order problem.... Yes, we probably should be building 'usecode' before 'tools'.
Re: Problem building latest CVS on Mac OS X 10.4.5
Awesome - I got it to work! I took your advace and ran the make command in the usecode directory, but that produced an error - I'll paste it:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../headers -I./.. -I./../files -I./../imagewin -I./../shapes -I./../objs -I./../audio -I./../gumps -I./../tools -I./../server -I/sw/include/SDL -D_THREAD_SAFE -DMACOSX -O2 -Wno-long-long -MT conversation.lo -MD -MP -MF .deps/conversation.Tpo -c conversation.cc -o conversation.o
conversation.cc:30:31: error: data/exult_bg_flx.h: No such file or directory
conversation.cc: In member function `void Conversation::show_face(int, int, int)':
conversation.cc:226: error: 'EXULT_BG_FLX_MR_FACES_SHP' was not declared in this scope
conversation.cc: In member function `void Conversation::show_avatar_choices(int, char**)':
conversation.cc:462: error: 'EXULT_BG_FLX_MR_FACES_SHP' was not declared in this scope
make[1]: *** [conversation.lo] Error 1
make: *** [all-recursive] Error 1
I assumed that this may have been similar to the last error - and that I just needed to run make in another folder first. When I ran it in data, it created the exult_bg_flx.h file being included in concersation.cc. After that I ran make again in the exult directory and everything was great! Thanks so much for your help - after this exercise my admiration for your project has grown even more.
me
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../headers -I./.. -I./../files -I./../imagewin -I./../shapes -I./../objs -I./../audio -I./../gumps -I./../tools -I./../server -I/sw/include/SDL -D_THREAD_SAFE -DMACOSX -O2 -Wno-long-long -MT conversation.lo -MD -MP -MF .deps/conversation.Tpo -c conversation.cc -o conversation.o
conversation.cc:30:31: error: data/exult_bg_flx.h: No such file or directory
conversation.cc: In member function `void Conversation::show_face(int, int, int)':
conversation.cc:226: error: 'EXULT_BG_FLX_MR_FACES_SHP' was not declared in this scope
conversation.cc: In member function `void Conversation::show_avatar_choices(int, char**)':
conversation.cc:462: error: 'EXULT_BG_FLX_MR_FACES_SHP' was not declared in this scope
make[1]: *** [conversation.lo] Error 1
make: *** [all-recursive] Error 1
I assumed that this may have been similar to the last error - and that I just needed to run make in another folder first. When I ran it in data, it created the exult_bg_flx.h file being included in concersation.cc. After that I ran make again in the exult directory and everything was great! Thanks so much for your help - after this exercise my admiration for your project has grown even more.
me
Re: Problem building latest CVS on Mac OS X 10.4.5
Note that i had to rerun make in usecode after I ran it in data.
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Problem building latest CVS on Mac OS X 10.4.5
First of all, sorry I took so long to respond, I had to hunt down a Mac to try this on
I came across the second problem myself; the makefile seems to have problems with scope related to the build order. I'm afraid I don't know enough about the differences in the Mac build of Exult to remedy it though ^_^;;
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
I came across the second problem myself; the makefile seems to have problems with scope related to the build order. I'm afraid I don't know enough about the differences in the Mac build of Exult to remedy it though ^_^;;
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Problem building latest CVS on Mac OS X 10.4.5
No problem at all - your advice helped me get through the problem - I'm trucking away in SI now.
Thanks!
Thanks!
Re: Problem building latest CVS on Mac OS X 10.4.5
The problem exists on mingw too, if I use autogen.sh && ./configure && make. The issue is kind of a circular issue:
1) expack, in the tools dir, is needed to make the things in the data dir;
2) ucsymbtbl, in the usecode dir, is needed to make wud in the tools dir;
3) The expack-generated h-files in the data dir are needed to build conversation.*, in the usecode dir.
And yes, this was with DrCode's recent patch. But in any case, there is a circular dependence between the three dirs I mentioned (data, tools, usecode) which is the root of the problem. I have no idea how to fix it, though.
1) expack, in the tools dir, is needed to make the things in the data dir;
2) ucsymbtbl, in the usecode dir, is needed to make wud in the tools dir;
3) The expack-generated h-files in the data dir are needed to build conversation.*, in the usecode dir.
And yes, this was with DrCode's recent patch. But in any case, there is a circular dependence between the three dirs I mentioned (data, tools, usecode) which is the root of the problem. I have no idea how to fix it, though.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Problem building latest CVS on Mac OS X 10.4.5
The only real way I percieve (short of rewriting large amounts of code to remove the circular dependance) is to use a previous expack version to make the data dir contents.
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
-
- Site Admin
- Posts: 731
- Joined: Thu May 14, 2020 1:34 pm
Re: Problem building latest CVS on Mac OS X 10.4.5
Or just not use automake.
-
- Posts: 1241
- Joined: Thu May 14, 2020 1:34 pm
Re: Problem building latest CVS on Mac OS X 10.4.5
But then I have to do work. Im -far- too lazy to do work ^_~
That and I have enough work with this mod of mine
---------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
That and I have enough work with this mod of mine
---------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Re: Problem building latest CVS on Mac OS X 10.4.5
Sound advice. I myself generally don't use automake; I was wanted to see if I could get it working with mingw.Or just not use automake.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Re: Problem building latest CVS on Mac OS X 10.4.5
I see the problem, but what's a good alternative to automake?
OTOH, I just found the paper "Recursive Make Considered Harmful", which talks about creating a single Makefile for the whole project.
OTOH, I just found the paper "Recursive Make Considered Harmful", which talks about creating a single Makefile for the whole project.
Re: Problem building latest CVS on Mac OS X 10.4.5
We could consider using the make-based system Pentagram is currently using.