Re: [Pipmak-Users] log on build 156+
Status: Alpha
Brought to you by:
cwalther
From: Andrea V. <and...@gm...> - 2007-07-13 14:17:01
|
Ciao Fabrizio, Don't discourage yourself! You have just a little list of errors!! First time that I tried to compile Pipmak with MS-VC++ I got about 300 errors!! I think you are very close to solution. I haven't tried to compile Pipmak with MinGW,so I post you some ideas, probably Christian could be preciser. I am not so sure that library *.lib could be used with MinGW, I don't know, perhaps it's ok, if you find in internet library devel packages specific for mingw use them. The symbols _ov_XXXX are related to Audio Layer (Ogg-Vorbis), I find them in the library "vorbisfile_static": I have linked 3 libraries related to OV: vorbis_static.lib,vorbisfile_static.lib,ogg_static.lib, you only two (libogg and libvorbis). Hint: to list the symbols contained into an object/library file, you can use the command "nm.exe", probably you have yet (but you can found it in the "binutils" package of Mingw at http://sf.net/project/showfiles.php?group_id=2435 ) nm <library file> | grep <symbol> use this to check if <symbol> is contained into <library> grep.exe is another useful tools coming from unix, if you haven't (but I think you got it with MinGW) you can found it into "gnu utils" (http://unxutils.sourceforge.net/) Remember that suffix "d" (...static_d, libcd,...) mean "debug version". A debug version of a library have more symbols defined to permit use of debuggers (with these tools you can execute your application step by step, instruction by instruction, and tests the values of all variables) I image which you haven't use "makefile", but you can take a look the same inside this file to get information about compilation process. makefile is located in directory "build-crossmingw" in SVN, normally "make" works in this way: cd <directory_contained_"makefile"> make remember that makefile isn't a normal script, so you cannot read it from top to bottom. It's divised into action (all, release, clean, %.c ,..) <action>: <instructions to make action> or <list of actions to execute sequentially> You can check all necessary flag and option to compile and linking, and also all libraries used by Christian. I didn't see any reference to standard C libraries (libc & co. ) So I think you probably can omit them and linker will take default those. You can also try to run "make" but I think it would be more difficult, At least You have to change paths inside makefile and so on... I found this on internet: "QUESTION: After linking, i get an error like C:\DEV-C++\LIB\\libmingw32.a(main.o)(.text+0x8e): undefined reference to WinMain@16. ANSWER: You probably haven't declared any main() or WinMain() function in your program." Are You sure that you have linked main.o and include all include files (.h)? Sometimes the order which you links libraries can make the difference I found this sequence in internet. -lSDLmain -lSDL_image -lSDL -lmingw32 (you have to adapt with your libraries names) Can you post the complete command which you have used? Good luck! Andrea |