problems to install libfreespace

76 views
Skip to first unread message

christia...@gmail.com

unread,
Oct 25, 2016, 4:21:46 AM10/25/16
to libfreespace
Hi,

I have a FSM-9 and want to read the data in visual studio 2015. Therefore I want to install libfreespace from https://github.com/hcrest/libfreespace.
I downloaded it and tried to follow the instructions in the readme data. But I don't  how to give such an order
To correctly check out all of the repositories, navigate to the <base>
directory and use the following command:
git clone https://github.com/hcrest/libfreespace.git



Thank you in advance!

README

Kyungjin Lim

unread,
Oct 25, 2016, 9:49:59 AM10/25/16
to libfreespace
Hi Christia,

Please follow the instruction in the section "Required Tools". You will need to install all tools before you build Visual Studio project.
The first tool is 1) git and you can download from https://git-scm.com/download/win. Once you installed this tool in your PC, 
"git clone https://github.com/hcrest/libfreespace.git" 
command will download the libfreespace code in your local folder, which is the same as downloading a zip file from the github.

Please follow instructions and install all required tools to build the libfreespace project successfully. If any instruction is not clear, please feel free to post your questions.
 

christia...@gmail.com

unread,
Oct 26, 2016, 3:03:11 PM10/26/16
to libfreespace
Hi Kyungjin,

thank you very much!

I install GIT, WinDDK and cmake, so I could follow the instructions ver well.
But I got a problem when I build with Cmake the project I had to choose Visual Studio 2014 as a generator for this project, Visual Studio 2015 didn't work, Then I started libfreespace.sln in Visual Studio 2015, and build the file ALL_BUILD,(F7 didn't work) then there was a hint that freespace is out of date, clicked ok but then came a error  Severity Code Description Project File Line Suppression State
Error MSB6006 "cmd.exe" exited with code 9009. freespace C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 171

What did I wrong?
I hope someone can help me.

Thanks a lot!


Kyungjin Lim

unread,
Oct 27, 2016, 12:00:14 PM10/27/16
to libfreespace
Hi Christian,

I have used Visual Studio 2015 to build. I found the timespec redefinition error in VS15 and you can add the following to remove the error.

#define HAVE_STRUCT_TIMESPEC

If you had some other errors, please let me know. I do not have a VS14 to try, however I can help with VS15 to resolve your issues.

Thanks.

christia...@gmail.com

unread,
Oct 28, 2016, 3:11:14 AM10/28/16
to libfreespace
Hi Kyungjin ,

thanks for your support.

I'm a student and not much experience in programming.
So I am sorry to ask so many questions here.

I don't know where I have to add the following to remove the error.

#define HAVE_STRUCT_TIMESPEC

I added it CMakeLists.txt in ALL_BUILD in the last line. Is this wrong?
After pressing the button Build all, it seems that it would run, but then it showed a hint that Visual Studio have to reload some data, I clicked an Reload all
But it didn't work,

christia...@gmail.com

unread,
Nov 7, 2016, 10:00:15 AM11/7/16
to libfreespace
Hi,

when I opened libfreespace.sln in Visual Studio, there was build a new file called libfreespace.VC is that file equal to libfreespace.lib which is dis
libfreespace.lib file described in the readme?

Because when I clicked on ALL_BUILD Build, the following message came ========== Build: 0 succeeded, 0 failed, 3 up-to-date, 0 skipped ==========
But there are six projects in the solution 'libfreespace' ?

Then I tried to build the install project, but Visual Studio showed several errors, but all of the same type

Severity
Code Error MSB3073
Description The command "setlocal C:~\Downloads\cmake-3.7.0-rc2-win64-x64\cmake-3.7.0-rc2-win64-x64\bin\cmake.exe -DBUILD_TYPE=Debug -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.
Project INSTALL
File C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets
Line 133
 
I hope someone can help me?
 

christia...@gmail.com

unread,
Nov 8, 2016, 4:19:00 AM11/8/16
to libfreespace
I fixed this error and got the file libfreespace.lib and a second folder called include/freespace with same c/c++ files
Can I now use the libfreespace examples?

I tried to bulid the documentation in the way it's described, but unfortunately the documentation doesn't work, Visual Studio shows the following error:

Severity    Code    Description                                                                                     Project                                  File                                            Line  
Warning        Tag `XML_SCHEMA' at line 1463 of file `Doxyfile' has become obsolete.    libfreespace-docs     ~\Libfreespace_gebaut\doc\CUSTOMBUILD    1   
Warning        Tag `XML_DTD' at line 1469 of file `Doxyfile' has become obsolete.            libfreespace-docs     ~\Libfreespace_gebaut\doc\CUSTOMBUILD    1   
Error        Problems running dot: exit code=-1, command='dot', arguments='"~/Libfreespace_gebaut/doc/latex/a00007.dot" -Tps -o "~/Libfreespace_gebaut/doc/latex/a00007.eps"'    libfreespace-docs    ~\Libfreespace_gebaut\doc\CUSTOMBUILD    1   

christia...@gmail.com

unread,
Nov 15, 2016, 4:35:19 AM11/15/16
to libfreespace
Hi,

I did it ;) I tried it several times .. and then it worked!
Thanks to all who helped me.

But now I have another question , how should the folder hierarchy look like to install libfreespace-examples?
I tried to follow the instructions in the read-me file on https://github.com/hcrest/libfreespace-examples but it didn't work.

I have my libfreespace bulid in the following folder ~\Hillcrest\build\libfreespace and the installation in ~\Hillcrest\libfreespace (path chosen in CMAKE_INSTALL_PREFIX :)
So I choose for my libfreespace-examples build in ~\Hillcrest\build\libfreespace-examples and changed the CMAKE_INSTALL_PREFIX : into ~\Hillcrest\libfreespace-examples

That's how I understand the instruction, I also exchanged the folder of the libfreespace-examples, so the build one was in ~\Hillcrest\libfreespace-examples and the installation was made in ~\Hillcrest\build\libfreespace-examples
Moreover I don't understand the following :
Note that the packaged source releases
contain version numbers in their names. To build under Windows, you need
to remove those numbers.

Which numbers? There are no versions/numbers in libfreespace-examples-master







christia...@gmail.com

unread,
Nov 18, 2016, 4:03:53 AM11/18/16
to libfreespace
Hi,

you have to put libfreespace-examples-master in the same folder as libfreespace-master. I renamed both in libfreespace-examples and libfreespace. So xou get the following structure:

~\Hillcrest
               \libfreespace-examples-master
               \libfreespace-master

Then it works.

Reply all
Reply to author
Forward
0 new messages