Jump to content
Eternal Lands Official Forums
Mr_Maniac

Cal3D compile problems

Recommended Posts

Hi!

I play EL under Linux and I wanted to compile EL with cal3d... But...

make -f Makefile.linux cal3d:
make[1]: *** No rule to make target `cal3dwrap.c', needed by `cal3dwrap.o'.  Stop.
make[1]: Leaving directory `/home/maniac/sources/elctest'
make: *** [cal3d] Error 

 

make -f Makefile.linux release:
> See make cal3d_wrapper.o

 

make -f Makefile.linux cal3dwrap.o:
make: *** No rule to make target `cal3dwrap.c', needed by `cal3dwrap.o'.  Stop.

 

make -f Makefile.linux cal3d_wrapper.o:

Longer error-message

 

I use gentoo-linux and I've tried to compile EL with cal3d 0.9.1...

Then I updated to cal3d 0.11.0_pre20050518...

Nothing works...

I compiled EL many times and now I'm not able to compile it anymore...

Not even the standard-client...

 

I've managed to compile a cal3d-build some time ago, but this build simply segfaults when I try to log in...

 

Any ideas?

Am I doing anything wrong?

Edited by Mr_Maniac

Share this post


Link to post
Share on other sites
Hi!

I play EL under Linux and I wanted to compile EL with cal3d... But...

make -f Makefile.linux cal3d:
make[1]: *** No rule to make target `cal3dwrap.c', needed by `cal3dwrap.o'.  Stop.
make[1]: Leaving directory `/home/maniac/sources/elctest'
make: *** [cal3d] Error 

 

make -f Makefile.linux release:
> See make cal3d_wrapper.o

 

make -f Makefile.linux cal3dwrap.o:
make: *** No rule to make target `cal3dwrap.c', needed by `cal3dwrap.o'.  Stop.

I use gentoo-linux and I've tried to compile EL with cal3d 0.9.1...

Then I updated to cal3d 0.11.0_pre20050518...

Nothing works...

I compiled EL many times and now I'm not able to compile it anymore...

Not even the standard-client...

 

I've managed to compile a cal3d-build some time ago, but this build simply segfaults when I try to log in...

 

Any ideas?

Am I doing anything wrong?

177466[/snapback]

 

There is a ebuild in portage for 0.10.0, try that. The client wont compile with any other version in portage.

Share this post


Link to post
Share on other sites

Hey, by the way wytter, when I use the cal3d thing I see no flowers. I don't know if the thing is that they are still unimplemented in cal3d or there is something wrong with my installation. Im using:

 

-The cvs dated same hour that this post

-Your tarball (test2)

-Your nice newchar map :ph34r:

 

For example, in votd, where should be the famous lilacs bush I can only see a big tree. In the graveyard I see only small green bushes instead of flowers... I can post screenies if needed.

 

Thanks in advance for any help and for all your work :blink:

Share this post


Link to post
Share on other sites

Do you see flowers elsewhere? In that case, perhaps things were meant to be like that ;-)

Share this post


Link to post
Share on other sites
Hi!

I play EL under Linux and I wanted to compile EL with cal3d... But...

make -f Makefile.linux cal3d:
make[1]: *** No rule to make target `cal3dwrap.c', needed by `cal3dwrap.o'.  Stop.
make[1]: Leaving directory `/home/maniac/sources/elctest'
make: *** [cal3d] Error 

 

make -f Makefile.linux release:
> See make cal3d_wrapper.o

 

make -f Makefile.linux cal3dwrap.o:
make: *** No rule to make target `cal3dwrap.c', needed by `cal3dwrap.o'.  Stop.

I use gentoo-linux and I've tried to compile EL with cal3d 0.9.1...

Then I updated to cal3d 0.11.0_pre20050518...

Nothing works...

I compiled EL many times and now I'm not able to compile it anymore...

Not even the standard-client...

 

I've managed to compile a cal3d-build some time ago, but this build simply segfaults when I try to log in...

 

Any ideas?

Am I doing anything wrong?

177466[/snapback]

 

This is what i already asked about up top and ended up fixing. read above

Share this post


Link to post
Share on other sites

well, compiling it in linux turned out to be remarkably simple. only issue was having to simlink libcal3d... its build went into /usr/local/lib and EL didn't look there

 

and the performance has gone up a lot since I last played in linux.

 

but there's some stuff that doesn't look right.

branches, bags, etc.

http://i17.photobucket.com/albums/b62/ttlanhil/screen1.jpg

http://i17.photobucket.com/albums/b62/ttlanhil/screen2.jpg

http://i17.photobucket.com/albums/b62/ttlanhil/screen3.jpg

 

note how the middle strip of the bag i missing (there's a bag in topright of screenie 2 and to the left on the docks in screenie 3)

also the trees look rather barren

 

plus if you can tell from the screenies, the shadows aren't coming out well, the shadow is... well... full of holes I guess. and it's a lot worse when rotating camera

 

new piccie: http://i17.photobucket.com/albums/b62/ttlanhil/screen4.jpg

big storm came through and tore some rooves off!

 

edit: whoops, that was supposed to be #4 at the last one, showing how there's part of rooves missing. same thing was at the IP snowman's stump, the sides were there but the top wasn't

Edited by ttlanhil

Share this post


Link to post
Share on other sites

@etlar:

I think that you mean the segfault...

Well...

1. All directories ARE lower-case...

2. The cal3d-client I build is OLD...

3. Now that I've changed the cal3d-version, it won't run anymore :rolleyes:

and

4. Does anyone have an idea why I can't build EL with cal3d?

 

Where should this "cal3dwrap.c/h" be? I don't have it!

I've downloaded cal3d from sourceforge to see, if those files are in there, but they aren't...

Share this post


Link to post
Share on other sites

cal3dwrap.[ch] are obsolete so you should not have it. You only need cal3d_wrapper.cpp and cal3d_wrapper.h...

 

ttlanhil; might be a good idea to check your error_log.txt

Share this post


Link to post
Share on other sites
ttlanhil; might be a good idea to check your error_log.txt

177808[/snapback]

well there' a copy of it http://ttlanhil.tripod.com/EL/error_log.txt here now. all the stuff ince I got cal3d going in linux. nothing jumps out at me though 8^/

 

I'm about to reboot and go back to windows to see if I can get that going again

Share this post


Link to post
Share on other sites
cal3dwrap.[ch] are obsolete so you should not have it. You only need cal3d_wrapper.cpp and cal3d_wrapper.h...

 

ttlanhil; might be a good idea to check your error_log.txt

177808[/snapback]

 

Okay...

Why I can't compile cal3d_wrapper...

I added "-lcal3d" to cal3d_wrappers flags, and now cal3d_wrapper.o gets compiled...

But it won't link!?!?!?

cc -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -L/usr/lib -lxml2 -lz -lpthread -lm -L/usr/lib -Wl,-rpath,/usr/lib -lpng12 -lz -lm -lSDL_net -lopenal -L/usr/X11R6/lib -lcal3d -lGL  -lvorbis -lvorbisfile  cal3d_wrapper.o   -o cal3d_wrapper
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [cal3d_wrapper] Error 1

 

What's wrong there?

 

And when cal3d_wrapper.o is present and I try to compile EL with cal3d again (make -f Makefile.linux cal3d) I get this:

cc -march=athlon-tbird -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC -DPNG_SCREENSHOT -I/usr/include/SDL -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libpng12 -DCAL3D   -c -o 2d_objects.o 2d_objects.c
In file included from cal.h:3,
                from global.h:140,
                from 2d_objects.c:4:
cal3d_wrapper.h:102: error: parse error before numeric constant
cal3d_wrapper.h:342: error: parse error before "bool"
cal3d_wrapper.h:508: error: parse error before '*' token
cal3d_wrapper.h:566: error: parse error before '*' token
make[1]: *** [2d_objects.o] Error 1
make[1]: Leaving directory `/home/maniac/sources/elctest'
make: *** [cal3d] Error 

 

What am I doing wrong?

Do you need any information?

Edited by Mr_Maniac

Share this post


Link to post
Share on other sites

You must compile cal3d_wrapper.cpp with g++ not gcc...

Share this post


Link to post
Share on other sites
You must compile cal3d_wrapper.cpp with g++ not gcc...

177818[/snapback]

 

STOP... I did some things wrong... The above error was related to a wrong cal3d_wrapper.h...

Oh.. And cal3d_wrapper GETS compiled with g++... It only gets linked with cc I think...

 

And now: Why is cal3dwrap.o still in the Makefile.linux?

cal3d:
       make -f Makefile.linux 'CFLAGS=$(CFLAGS) -DCAL3D' 'LDFLAGS=$(LDFLAGS) -lcal3d' 'OBJS=$(OBJS) cal3dwrap.o'

 

Uhm...

Oh sh**...

Could it be, that cal3d is now compiled by default when compiling with "make -f Makefile.linux release"?

I tried to compile with the cal3d-target...

But yesterday I even could not compile the release-target... EEK!

Now release works again...

Sorry for this...

And the client works, too...

 

But... Is it normal that I can't leave IP?

I can't click the flag of the ship!

 

EDIT: Help! I can't click on the ships flag anymore! Not even with an OLD EL-Build!

Even with the 1.0.1-release-build it doesn't work anymore!

Any ideas? :D

Edited by Mr_Maniac

Share this post


Link to post
Share on other sites
But... Is it normal that I can't leave IP?

I can't click the flag of the ship!

 

EDIT: Help! I can't click on the ships flag anymore! Not even with an OLD EL-Build!

Even with the 1.0.1-release-build it doesn't work anymore!

Any ideas? :D

177822[/snapback]

That is normal. The maps have changed and so have the object IDs. You should use the old maps if you want to walk around on the old server (main server). We will update the maps on port 2001 later so it'd have the new maps. Once 1.0.2 is released everything will work as normal on the regular server.

 

Mikeman - I'll split the thread.

Edited by Wytter

Share this post


Link to post
Share on other sites

Hmm... Then the bigger flower center all over the world is going to be clausurated... Antilag meassure? :lol: I dont like the tree there anyway, I preffer to put a couple of small bushes in both sides of the doorway. The tree is very annoying, you cant see anything.

 

I havent looked anything more about the client (just compiled it for fun). I have no time right now, but next week I'll be on-line again :angry:

 

BTW (and offtopic also), Wytter, the final results for the new character thing are very impressive. You r0x dude :P

Share this post


Link to post
Share on other sites

lights.o(.text+0x97):lights.c: undefined reference to `gluProject@48'
main.o(.text+0x18e):main.c: undefined reference to destroy_cal3d_model'

 

how do i fix these?

Share this post


Link to post
Share on other sites
lights.o(.text+0x97):lights.c: undefined reference to `gluProject@48'
main.o(.text+0x18e):main.c: undefined reference to destroy_cal3d_model'

 

how do i fix these?

180593[/snapback]

 

-lGLU

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×