Jump to content

Error compile file game


Recommended Posts

Hi all, When I try to compile Ulthar game files, in compilation I get these errors... Does anyone know what it depends on?

Quote

/usr/metin2/server/share/bin/game/src # gmake -j20
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile OXEvent.cpp
compile ani.cpp
compile MarkManager.cpp
compile TrafficProfiler.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile char_change_empire.cpp
compile char_horse.cpp
In file included from battle.cpp:1In file included from :
char.cppIn file included from :1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #includIn file included from echar_battle.cpp <:In file included from bMarkImage.c                                          ppo:os1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
tIn file included from /TrafficProfiler.cppi:nt10:
rIn file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
usiveIn file included from _blend_item.cpppt:r.10:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
hpp>In file included from
      castle.cpp:12:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
|          ^~~~~~~~~~~~~~~~~~~~~~~~~In file included from banword.cpp:1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~

1In file included from char_change_empire.cpp:2:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
:
In file included from 1./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
 error generated.
In file included from block_country.cpp:10:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from MarkConvert.cpp:1:
In file included from In file included from BattleArena.cpp./stdafx.h1 error generated.
:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
:1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [Makefile:118: OBJDIR/MarkImage.o] Error 1
1 error generated.
1 error generated.
gmake: *** Waiting for unfinished jobs....
gmake: *** [Makefile:118: OBJDIR/blend_item.o] Error 1
gmake: *** [Makefile:118: OBJDIR/banword.o] Error 1
gmake: *** [Makefile:118: OBJDIR/TrafficProfiler.o] Error 1
gmake: *** [Makefile:118: OBJDIR/MarkConvert.o] Error 1
gmake: *** [Makefile:118: OBJDIR/block_country.o] Error 1
In file included from buffer_manager.cpp:1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from 1 error generated.
ani.cppgmake: *** [Makefile:118: OBJDIR/buffer_manager.o] Error 1
In file included from OXEvent.cpp:1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
:In file included from char_affect.cppIn file included from arena.cpp:1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from MarkManager.cpp:1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
10:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
:In file included from char_horse.cpp:1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from building.cpp:1:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
2:
In file included from ./stdafx.h:40:
./event.h:10:10: fatal error: 'boost/intrusive_ptr.hpp' file not found
   10 | #include <boost/intrusive_ptr.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [Makefile:118: OBJDIR/MarkManager.o] Error 1
gmake: *** [Makefile:118: OBJDIR/castle.o] Error 1
1 error generated.
1 error generated.
gmake: *** [Makefile:118: OBJDIR/char_horse.o] Error 1
1 error generated.
gmake: *** [Makefile:118: OBJDIR/char_change_empire.o] Error 1
gmake: *** [Makefile:118: OBJDIR/ani.o] Error 1
1 error generated.
1 error generated.
gmake: *** [Makefile:118: OBJDIR/OXEvent.o] Error 1
gmake: *** [Makefile:118: OBJDIR/BattleArena.o] Error 1
1 error generated.
gmake: *** [Makefile:118: OBJDIR/battle.o] Error 1
1 error generated.
gmake: *** [Makefile:118: OBJDIR/building.o] Error 1
1 error generated.
1 error generated.
gmake: *** [Makefile:118: OBJDIR/arena.o] Error 1
gmake: *** [Makefile:118: OBJDIR/char_affect.o] Error 1
1 error generated.
gmake: *** [Makefile:118: OBJDIR/char.o] Error 1
1 error generated.
gmake: *** [Makefile:118: OBJDIR/char_battle.o] Error 1

 

 

Link to comment
Share on other sites

All errors are related to "boost/intrusive_ptr.hpp". Make sure you have the boost library installed, and/or configured correctly so the compiler can find the file(s).

As an alternative, you may want to eliminate the boost dependency by replacing "boost::intrusive_ptr" with something else (for example std::shared_ptr).

  • Good 1
Link to comment
Share on other sites

Hi, thanks for the tip! How can I understand if the Boost library is present and installed? because there is no game thread in the root... could you tell me where to check? Thanks again!

8 hours ago, TheEqualizer said:

All errors are related to "boost/intrusive_ptr.hpp". Make sure you have the boost library installed, and/or configured correctly so the compiler can find the file(s).

As an alternative, you may want to eliminate the boost dependency by replacing "boost::intrusive_ptr" with something else (for example std::shared_ptr).

 

Link to comment
Share on other sites

9 hours ago, TheEqualizer said:

Se non sai se boost è installato o meno, probabilmente non lo è. La libreria boost è gratuita, quindi puoi semplicemente scaricarla e installarla. Ma ancora una volta, boost è una grande dipendenza, ti consiglio comunque di trovare un sostituto per boost::intrusive_ptr

Quote


ld: error: /usr/local/lib/libIL.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/libpng.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/libtiff.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/libmng.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/liblcms.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/libjpeg.so is incompatible with elf_i386_fbsd




ld: errore: /usr/local/lib/libjpeg.so non è compatibile con elf_i386_fbsd

hello, I installed Boost, but as far as I understand it tells me that the libs are missing... I've read that you need BSD 9.2 for compilation, but I use 13.2, is there anything I can change? And maybe update the libbs? Thank you 🙂

Link to comment
Share on other sites

10 minutes ago, TheEqualizer said:

The only file you need is "intrusive_ptr.hpp". You have to copy this file to a "special" folder so your compiler can find it when you "#include <boost/intrusive_ptr.hpp>".

but now that I've installed Boost, I've fixed the error during compilation only that at the end of compilation it tells me this...

spacer.png

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
Share on other sites

3 minutes ago, TheEqualizer said:

That is a linker error. It's possible the linker is not finding something. Maybe check the logs for more details. There is not much to go on here.

Could it be an incompatibility problem with the machine in your opinion?  I've read that it's usually better to compile game files in 32 and not in 64

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.