Jump to content
  • 0
stardux

Trouble compiling

Question

Hi all. I am having some trouble compiling, following the instructions here: http://herc.ws/wiki/Compile

This is the issue that I have during make install:

[ 28%] Built target common_base
[ 29%] Built target common_sql
Linking C executable login-server
../../common/libcommon_base.a(core.c.o): In function `core_defaults':
core.c:(.text+0x183): undefined reference to `sysinfo_defaults'
collect2: error: ld returned 1 exit status
make[2]: *** [src/login/sql/login-server] Error 1
make[1]: *** [src/login/sql/CMakeFiles/login-server.dir/all] Error 2
make: *** [all] Error 2

Any clues?

Also, where do the CMakeLists.txt files come from? I was given a copy of the code by a friend that already had them, but the code in the git doesn't have them.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Hi all. I am having some trouble compiling, following the instructions here: http://herc.ws/wiki/CompileThis is the issue that I have during make install:[ 28%] Built target common_base[ 29%] Built target common_sqlLinking C executable login-server../../common/libcommon_base.a(core.c.o): In function `core_defaults':core.c:(.text+0x183): undefined reference to `sysinfo_defaults'collect2: error: ld returned 1 exit statusmake[2]: *** [src/login/sql/login-server] Error 1make[1]: *** [src/login/sql/CMakeFiles/login-server.dir/all] Error 2make: *** [all] Error 2Any clues?Also, where do the CMakeLists.txt files come from? I was given a copy of the code by a friend that already had them, but the code in the git doesn't have them.

Why don't use make??

Go to Hercules folder

Type these commands:

./configuremake

Share this post


Link to post
Share on other sites
  • 0

Thanks, I'll give it a shot. Running linex/debian.

I'm also making changes to battle.c, skill.c, and status.c. Are those changes picked up when I run the make?

Share this post


Link to post
Share on other sites
  • 0

Thanks, I'll give it a shot. Running linex/debian.

 

I'm also making changes to battle.c, skill.c, and status.c. Are those changes picked up when I run the make?

Yes, of course. If you make some changes in source files - save it and just do make sql or make all to recompile it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.