larsbs / id3v2lib

id3v2lib is a library written in C to read and edit id3 tags from mp3 files.
BSD 2-Clause "Simplified" License
128 stars 44 forks source link

i dont know, how i build the dll #17

Closed Ollowain87 closed 7 years ago

Ollowain87 commented 7 years ago

Hallo,

i dont know what i should do. I dont understand the instructions in the read me. Do you have an Video tutorial?

Building using Microsoft Visual Studio Microsoft Visual Studio needs a slightly different way of building. Open the Visual Studio Developers Console, ch into the id3v2lib folder and execute the following:

$ mkdir build && cd build $ cmake ..

This should leave you with several MSVS projects in the \build directory. Open ALL_BUILD.vcxproj with Visual Studio and build it as usual. The resulting lib file can be found in \build\src\Debug\id3v2.lib

larsbs commented 7 years ago

I've never built the library using visual studio. This feature was added by a third party so it's not fully supported. But, what have you tried?

Ollowain87 commented 7 years ago

first i go in this folder

unbenannt

Then I open the Visual Studio Developers Console, an execute $ mkdir build && cd build

unbenannt2

Then I get this

unbenannt3

Then I execute cmake .. and I get this

3

The console says everytime The command "cmake" is either misspelled, or could not be found."

Then I got to the subfolder

5

Then I open the Visual Studio Developers Console, an execute $ mkdir build && cd build

7

Then I execute cmake .. and I get this

8

The console says everytime The command "cmake" is either misspelled, or could not be found."

_Then I go a Folder up and I execute cmake .. and I get this _

9

The console says everytime The command "cmake" is either misspelled, or could not be found."

larsbs commented 7 years ago

Well, apparently you are missing cmake on your machine: https://cmake.org/. Did you install it?

Ollowain87 commented 7 years ago

yes, it is install image

larsbs commented 7 years ago

Well it's not on your path variable then, because cmd is not finding it.

http://tulip.labri.fr/TulipDrupal/?q=node/1081

Or you can add it manually if you know where your cmake installation is located.

Ollowain87 commented 7 years ago

Hallo,

it has work with cmake. When I build the Project I get many Errors. 1>------ Start creating: Projekt: ZERO_CHECK, Konfiguration: Debug Win32 ------ 1> Checking Build System 1> CMake does not need to re-run because C:/Users/Nico/Downloads/id3v2lib-master/id3v2lib-master/build/CMakeFiles/generate.stamp is up-to-date. 1> CMake does not need to re-run because C:/Users/Nico/Downloads/id3v2lib-master/id3v2lib-master/build/src/CMakeFiles/generate.stamp is up-to-date. 2>------ Start creating: Projekt: id3v2, Konfiguration: Debug Win32 ------ 2> Building Custom Rule C:/Users/Nico/Downloads/id3v2lib-master/id3v2lib-master/src/CMakeLists.txt 2> CMake does not need to re-run because C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\build\src\CMakeFiles\generate.stamp is up-to-date. 2>cl : Command line warning D9002: unknow Option "-std=c99" is ignored. 2>cl : Command line warning D9002: unknow Option "-fPIC" is ignored. 2> frame.c 2> header.c 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\header.c(40): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(205): note: Siehe Deklaration von "fopen" 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\header.c(71): warning C4554: "&": Check operator precedence for possible error; use parentheses to clarify precedence2> id3v2lib.c 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\id3v2lib.c(33): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(205): note: Siehe Deklaration von "fopen" 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\id3v2lib.c(125): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(205): note: Siehe Deklaration von "fopen" 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\id3v2lib.c(126): warning C4996: 'tmpfile': This function or variable may be unsafe. Consider using tmpfile_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(431): note: see deklartioen from "tmpfile" 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\id3v2lib.c(212): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(205): note: see Deklartionen from "fopen" 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\id3v2lib.c(213): warning C4996: 'tmpfile': This function or variable may be unsafe. Consider using tmpfile_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(431): note: see Deklartionen from "tmpfile" 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\id3v2lib.c(376): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(1769): note:see Deklartionen from "sprintf" 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\id3v2lib.c(392): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(1769): note: see Deklartionen from "sprintf" 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\id3v2lib.c(410): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(1769): note: see Deklartionen from "sprintf" 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\id3v2lib.c(539): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h(205): note: see Deklartionen from "fopen" 2> types.c 2> utils.c 2>C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\src\utils.c(183): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\string.h(335): note: see Deklartionen from "strncpy" 2> Code is generated... 2> id3v2.vcxproj -> C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\build\src\Debug\id3v2.lib 3>------ Erstellen gestartet: Projekt: ALL_BUILD, Konfiguration: Debug Win32 ------ 3> Building Custom Rule C:/Users/Nico/Downloads/id3v2lib-master/id3v2lib-master/CMakeLists.txt 3> CMake does not need to re-run because C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\build\CMakeFiles\generate.stamp is up-to-date. 4>------ Create skipped: Projekt: INSTALL, Konfiguration: Debug Win32 ------ 4>No project to be created was selected for this solution configuration. ========== created: 3 succesful, 0 faulty, 0 currently,. 1 skipped==========

When I will Include the lib to my Project, I get this message image

In english There was no reference to "xxxxxxxx" be added. Make sure that accessing that file can be and is it a valid assembly or com component

Ollowain87 commented 7 years ago

Hallo,

have nothing an idea, what the Problem ist?

sbusch42 commented 7 years ago

Actually, it seems the library has been built successfully. According to your logs, it is located in "C:\Users\Nico\Downloads\id3v2lib-master\id3v2lib-master\build\src\Debug\id3v2.lib". However in your project you try to read it from the wrong path. Enter the correct path to link against the library, everything else seems to work fine at this point.

larsbs commented 7 years ago

Closing. Thanks @sbusch42 for taking your time to answer.

miguelestradam36 commented 3 years ago

Can somebody help me with this ? I am currently using the library, I already installed everything, nevertheless Visual Studio 2019 still tells that there is some mistake with the library. image