The International Simutrans Forum

Simutrans Extended => Pak128.Britain-Ex Bug Reports => Pak128.Britain-Ex => Simutrans-Extended paksets => Pak128.Britain-Ex closed bug reports => Topic started by: Junna on April 20, 2013, 05:18:01 PM

Title: Current github makeobj generation fails
Post by: Junna on April 20, 2013, 05:18:01 PM
Ehm, I'm having trouble compiling the latest version of the pak from github; it fails on the LMR 4-wheel coaches, saying that certain images are missing. Am I doing something wrong or is it some mistake in the .dats?
Title: Re: Current github makeobj generation fails
Post by: jamespetts on April 20, 2013, 06:00:22 PM
Hmm - that's rather odd, as mine works. Are you sure that you have the up to date version? What is the specific error that you are getting?
Title: Re: Current github makeobj generation fails
Post by: Junna on April 20, 2013, 06:30:09 PM
Quote from: jamespetts on April 20, 2013, 06:00:22 PM
Hmm - that's rather odd, as mine works. Are you sure that you have the up to date version? What is the specific error that you are getting?

Says "empty image" doesn't exist.

I doubt my makeobj is entirely up to date however, as I was unable to compile it myself from source (missing some library and I couldn't find out which exactly and where to get it.) Could you provide a new compile?
Title: Re: Current github makeobj generation fails
Post by: Junna on April 24, 2013, 01:37:21 PM
Upon trying to compile latest makeobj I get the following errors I am unsure how to resolve, but assume is related to something missing:

Quote1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_get_IHDR
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_read_image
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_get_rowbytes
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_set_expand
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_read_info
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_set_strip_alpha
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_set_strip_16
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_set_packing
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_create_read_struct
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_create_info_struct
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_start_read_image
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_read_end
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_set_longjmp_fn
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_init_io
1>dr_rdpng.obj : error LNK2001: unresolved external symbol _png_destroy_read_struct
1>log.obj : error LNK2001: unresolved external symbol "void __cdecl dr_flush(void)" (?dr_flush@@YAXXZ)
1>log.obj : error LNK2001: unresolved external symbol "short __cdecl display_get_height(void)" (?display_get_height@@YAFXZ)
1>log.obj : error LNK2001: unresolved external symbol "void __cdecl dr_prepare_flush(void)" (?dr_prepare_flush@@YAXXZ)
1>log.obj : error LNK2001: unresolved external symbol "bool __cdecl check_pos_win(struct event_t *)" (?check_pos_win@@YA_NPAUevent_t@@@Z)
1>log.obj : error LNK2001: unresolved external symbol "int __cdecl create_win(int,int,class gui_frame_t *,enum wintype,int)" (?create_win@@YAHHHPAVgui_frame_t@@W4wintype@@H@Z)
1>log.obj : error LNK2001: unresolved external symbol "int __cdecl is_display_init(void)" (?is_display_init@@YAHXZ)
1>log.obj : error LNK2001: unresolved external symbol "bool __cdecl win_is_top(class gui_frame_t const *)" (?win_is_top@@YA_NPBVgui_frame_t@@@Z)
1>log.obj : error LNK2001: unresolved external symbol "void __cdecl dr_fatal_notify(char const *)" (?dr_fatal_notify@@YAXPBD@Z)
1>log.obj : error LNK2001: unresolved external symbol "void __cdecl dr_sleep(unsigned int)" (?dr_sleep@@YAXI@Z)
1>log.obj : error LNK2001: unresolved external symbol "void __cdecl destroy_all_win(bool)" (?destroy_all_win@@YAX_N@Z)
1>log.obj : error LNK2001: unresolved external symbol "public: void __thiscall news_window::extend_window_with_component(class gui_komponente_t * const,class koord,class koord)" (?extend_window_with_component@news_window@@QAEXQAVgui_komponente_t@@Vkoord@@1@Z)
1>log.obj : error LNK2001: unresolved external symbol "void __cdecl display_poll_event(struct event_t *)" (?display_poll_event@@YAXPAUevent_t@@@Z)
1>log.obj : error LNK2001: unresolved external symbol "public: static unsigned char umgebung_t::verbose_debug" (?verbose_debug@umgebung_t@@2EA)
1>log.obj : error LNK2001: unresolved external symbol "short __cdecl display_get_width(void)" (?display_get_width@@YAFXZ)
1>log.obj : error LNK2001: unresolved external symbol "public: __thiscall news_img::news_img(char const *,unsigned short,unsigned short)" (??0news_img@@QAE@PBDGG@Z)
1>simtools.obj : error LNK2001: unresolved external symbol "public: static bool umgebung_t::hilly" (?hilly@umgebung_t@@2_NA)

Title: Re: Current github makeobj generation fails
Post by: VS on April 24, 2013, 09:34:05 PM
_png_* ones are from libpng (library)
dr_* are from simsys16.cc or some equivalent (ours)

The rest... I'm not sure right now. Check logs for added files, that should be at least some of these. Some of the errors also vaguely feel like linking with outdated object file or some such.
Title: Re: Current github makeobj generation fails
Post by: Milko on April 24, 2013, 10:03:04 PM
Hello

Makeobj: This is not the latest version but it works.

http://forum.simutrans.com/index.php?topic=10532.msg107197#msg107197

Giuseppe
Title: Re: Current github makeobj generation fails
Post by: jamespetts on April 24, 2013, 10:09:24 PM
Are you compiling on Linux or Windows? Which compiler are you using?
Title: Re: Current github makeobj generation fails
Post by: Junna on April 25, 2013, 08:47:58 PM
Quote from: jamespetts on April 24, 2013, 10:09:24 PM
Are you compiling on Linux or Windows? Which compiler are you using?

Windows and MSVC++2010. I believe I am lacking some libraries or so - I could find no list of requirements, and I am not sure my libpng is up to date, as I could find no precompiled lib/include to use of the latest version.

I added the ottd-auxillary libraries and (I think) it was bzlib already.
Title: Re: Current github makeobj generation fails
Post by: jamespetts on April 25, 2013, 11:20:39 PM
Have you tried to compare your own MSVC++ project with my MSVC++ project on Github to see what you are missing?