How-to compile tuniac??

The Tuniac forum.
Brett
Site Admin
Posts: 250
Joined: Sun Mar 28, 2010 12:36 am

Re: How-to compile tuniac??

Post by Brett » Thu Apr 21, 2011 8:17 am

Ok now I have more time:

1)portaudio isnt needed and the project had been updated but not committed to not include that, that is now committed.
Hint: svn update Tuniac :)

2)the include dirs in the project were D:\Code\taglib but are now D:\Code\git\taglib.git\taglib\taglib, still change them to suit your folder layout :)

3)I forgot to mention in the original instructions to include the lib path for taglib in std_infomanager, hence yours issues I believe.
For Win32 release I set the library directories(same area of VS 2010 as the include directories) to include:
D:\Code\git\taglib.git\taglib\taglib\win32\Win32\Release
Win32 debug:
D:\Code\git\taglib.git\taglib\taglib\win32\Win32\Debug
x64 Release:
D:\Code\git\taglib.git\taglib\taglib\win32\x64\Release
x64 Debug:
D:\Code\git\taglib.git\taglib\taglib\win32\x64\Debug

Also remember to build the taglib lib by opening its project and building it in all the ways you intend to compile Tuniac (win32/x64 x86/x64.)
EDIT: actually looking more closely its likely the out of date taglib 1.6 project, grab the below 1.7/current git based project files and recompile.

4)Newer taglib project here:
http://www.wasteofcash.com/Tuniac/taglib_1.7_vs2010.zip

5)Directx SDK is upto June 2010, it should auto add its include paths now, if not manually set them yourself ;)
http://www.microsoft.com/downloads/en/d ... 8a3ba730ba

Harteex
Posts: 80
Joined: Tue Mar 30, 2010 7:23 pm

Re: How-to compile tuniac??

Post by Harteex » Fri Apr 22, 2011 5:53 pm

InfoManager seems to build now :)

Just one question, I used you project with the taglib source and I got this:

Code: Select all

Error	1	error C1083: Cannot open include file: 'config.h': No such file or directory	c:\libs\taglib-1.7\taglib\mpeg\id3v2\id3v2frame.cpp	27	1	taglib(static)
Error	2	error C1083: Cannot open include file: 'config.h': No such file or directory	c:\libs\taglib-1.7\taglib\mpeg\id3v2\id3v2framefactory.cpp	27	1	taglib(static)
Where does this config.h come from? I just created an empty one.


Anyway, unfortunally TuniacApp doesn't build...
I see references to jpeglib so I assumed you need that one aswell.
I finally managed to build it (but only for release, the project doesn't seem to have any debug configuration).
Then when I fixed the paths in TuniacApp for jpeglib I got these errors:

Code: Select all

1>MSVCRT.lib(MSVCR100.dll) : error LNK2005: ___iob_func already defined in LIBCMT.lib(_file.obj)
     1>MSVCRT.lib(MSVCR100.dll) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)
     1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
     1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
     1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
     1>..\Win32\Release\TuniacApp.exe : fatal error LNK1169: one or more multiply defined symbols found
     1>Done Building Project "E:\Development\Tuniac\Tuniac1\TuniacApp\TuniacApp.vcxproj" (build target(s)) -- FAILED.
So... I tried the /NODEFAULTLIB:MSVCRT thing it mentioned and got:

Code: Select all

1>jpeg.lib(jerror.obj) : error LNK2001: unresolved external symbol __imp__fprintf
     1>jpeg.lib(jmemmgr.obj) : error LNK2001: unresolved external symbol __imp__sscanf
     1>jpeg.lib(jmemmgr.obj) : error LNK2001: unresolved external symbol __imp__getenv
     1>..\Win32\Release\TuniacApp.exe : fatal error LNK1120: 3 unresolved externals
     1>Done Building Project "E:\Development\Tuniac\Tuniac1\TuniacApp\TuniacApp.vcxproj" (rebuild target(s)) -- FAILED.
So the problem seems to have something to do with jpeglib perhaps.
Maybe I screwed up something when I built it? Never got nmake to work so I renamed the solution and project files mentioned in the makefile manually.

Brett
Site Admin
Posts: 250
Joined: Sun Mar 28, 2010 12:36 am

Re: How-to compile tuniac??

Post by Brett » Sat Apr 23, 2011 2:44 am

config.h should have been in the zip file and extracted to the win32 folder.

Its possible your zip app excluded it because it was 0 bytes(mines just empty as well). I think Windows zip support does that, 7zip does not.

My jpeg-8c project :)
http://www.wasteofcash.com/Tuniac/jpeg-8c_vs2010.zip
Suits jpeg-8c:
http://www.ijg.org/
http://www.ijg.org/files/jpegsr8c.zip

See if that builds better for you.

For TuniacApp
Add include dir:
D:\Code\jpeg-8c;

Add lib dir:
Win32: D:\Code\jpeg-8c\Release or Debug
x64: D:\Code\jpeg-8c\x64\Release or Debug

Try above first, but if it still moans about LIBCMT, under the TuniacApp or jpeglib project try Linker -> Input -> Ignore Specific default library -> Add "LIBCMT"


Edit: This is where I think we are at to get Tuniac to build:
http://www.wasteofcash.com/Tuniac/How_To_Build.txt

Harteex
Posts: 80
Joined: Tue Mar 30, 2010 7:23 pm

Re: How-to compile tuniac??

Post by Harteex » Sat Apr 23, 2011 10:30 pm

Brett wrote:config.h should have been in the zip file and extracted to the win32 folder.

Its possible your zip app excluded it because it was 0 bytes(mines just empty as well). I think Windows zip support does that, 7zip does not.
There was a 0 kb file called taglib_config.h, but some of the source files tried to include a file called just config.h also, which was not in the archive (tried with windows zip and winrar).
Brett wrote:My jpeg-8c project :)
http://www.wasteofcash.com/Tuniac/jpeg-8c_vs2010.zip
Suits jpeg-8c:
http://www.ijg.org/
http://www.ijg.org/files/jpegsr8c.zip

See if that builds better for you.
Great! After building jpeglib with your project, TuniacApp now compiles :) Thanks.

Brett wrote:Edit: This is where I think we are at to get Tuniac to build:
http://www.wasteofcash.com/Tuniac/How_To_Build.txt
You should probably add what files you need to copy over like bass etc.
Maybe also note to copy NoAlbumArt.jpg

But, maybe the required files could be automatically copied to the directory with TuniacApp.exe through a build event?
For TuniacApp, in the properties, Build Events -> Post-Build Event a command line can be entered.
Or maybe it should be done as a Custom Build Step, I don't know.

Brett
Site Admin
Posts: 250
Joined: Sun Mar 28, 2010 12:36 am

Re: How-to compile tuniac??

Post by Brett » Sun Apr 24, 2011 4:43 am

My bad on the config.h, you are right of course.
Updated the zip now to include both referenced config.h files.

I have now added scripts to shn_Plugin, bass_Plugin and TuniacApp to move files they require.

How_To_Build.txt is updated also added to svn.

Post Reply