SFML community forums

General => General discussions => Topic started by: magneonx on October 13, 2014, 08:29:40 am

Title: Building thor successfully but where the hell are the .dll and .lib files?
Post by: magneonx on October 13, 2014, 08:29:40 am
So I am able to build from source but when I visited the build folder, I can't seem to find the bin files? Any ideas? I am building Thor from source with SFML master from github. I downloaded Thor from github as well.
Title: AW: Building thor successfully but where the hell are the .dll and .lib files?
Post by: eXpl0it3r on October 13, 2014, 08:39:29 am
What are your cmake settings? How do you start the building?
Title: Re: Building thor successfully but where the hell are the .dll and .lib files?
Post by: magneonx on October 13, 2014, 08:41:21 am
What are your cmake settings? How do you start the building?

I am not exactly sure. I always follow the one on the tutorials. Regarding cmake file where can I find it? Give me filepath. I'll paste it here.
Title: Re: Building thor successfully but where the hell are the .dll and .lib files?
Post by: magneonx on October 13, 2014, 08:42:17 am
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1>  Checking Build System
1>  CMake does not need to re-run because C:/libraries/Thor/build/branches/Thor-master-build-vs/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/libraries/Thor/build/branches/Thor-master-build-vs/src/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: thor, Configuration: Debug Win32 ------
2>  Building Custom Rule C:/libraries/Thor/source/branches/Thor-master/src/CMakeLists.txt
2>  CMake does not need to re-run because C:\libraries\Thor\build\branches\Thor-master-build-vs\src\CMakeFiles\generate.stamp is up-to-date.
2>  Action.cpp
2>  ActionOperations.cpp
2>  Affectors.cpp
2>  Arrow.cpp
2>  BigSprite.cpp
2>  BigTexture.cpp
2>  CallbackTimer.cpp
2>  ColorAnimation.cpp
2>  ColorGradient.cpp
2>  ConcaveShape.cpp
2>  Connection.cpp
2>  Distributions.cpp
2>  Emitters.cpp
2>  FadeAnimation.cpp
2>  FrameAnimation.cpp
2>  InputNames.cpp
2>  Joystick.cpp
2>  Particle.cpp
2>  ParticleSystem.cpp
2>  Random.cpp
2>  Generating Code...
2>  Compiling...
2>  Shapes.cpp
2>  StopWatch.cpp
2>  Timer.cpp
2>  ToString.cpp
2>  Triangulation.cpp
2>  Trigonometry.cpp
2>  UniformAccess.cpp
2>  Generating Code...
2>     Creating library C:/libraries/Thor/build/branches/Thor-master-build-vs/src/Debug/thor-d.lib and object C:/libraries/Thor/build/branches/Thor-master-build-vs/src/Debug/thor-d.exp
2>  thor.vcxproj -> C:\libraries\Thor\build\branches\Thor-master-build-vs\src\Debug\thor-d.dll
3>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>  Building Custom Rule C:/libraries/Thor/source/branches/Thor-master/CMakeLists.txt
3>  CMake does not need to re-run because C:\libraries\Thor\build\branches\Thor-master-build-vs\CMakeFiles\generate.stamp is up-to-date.
3>  Build all projects
========== Build: 3 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

 

Here is the output file generated.
Title: Re: Building thor successfully but where the hell are the .dll and .lib files?
Post by: magneonx on October 13, 2014, 08:44:13 am
I notice that the file output is short. And it builds so fast as if nothing is being built at all. On previous try I am able to make it work. It keeps erroring out on sf::Time division. I just redownloaded both SFML and Thor source a millionth time today and able to make it to work. Visited build folders -- EMPTY.

There something went wrong.
Title: AW: Re: Building thor successfully but where the hell are the .dll and .lib files?
Post by: eXpl0it3r on October 13, 2014, 08:52:17 am
Btw you can also use the edit function (or wait a bit longer before posting). ;)

C:\libraries\Thor\build\branches\Thor-master-build-vs\src\Debug\thor-d.dll
So this file doesn't exist?

At best you setup CMAKE_INSTALL_PREFIX and the build the INSTALL project, which will automatically copy all the needed stuff to the set directory.
Title: Re: Building thor successfully but where the hell are the .dll and .lib files?
Post by: magneonx on October 13, 2014, 08:58:46 am
sorry It seems I get frustrated sometimes, browsing the build folders I am able to find it here: <Home dir>\Thor-master-build-vs\src\Debug\ I was looking for it in folder with names similar lib/bin folder. It was place on the build folder's src folder! Problem is fixed thanks for helping :)
Title: Re: Building thor successfully but where the hell are the .dll and .lib files?
Post by: magneonx on October 13, 2014, 09:03:40 am
Can I ask why is on src? I expect it to be placed on lib/bin folder just like on SFML/SFGUI. I don't if I remember correctly I built some of thor's earlier versions and I am able to expect them on same folder (lib/bin). This is the reason why my previous build never works! Since my PATH is always setup to thor-build/lib. I expect all the output to be there. Is there a way for me to set it up there?
Title: AW: Building thor successfully but where the hell are the .dll and .lib files?
Post by: eXpl0it3r on October 13, 2014, 09:08:29 am
See my comment about INSTALL, it's the expected way to build/install a library.
Title: Re: Building thor successfully but where the hell are the .dll and .lib files?
Post by: Mario on October 13, 2014, 09:12:42 am
Can I ask why is on src? I expect it to be placed on lib/bin folder just like on SFML/SFGUI. I don't if I remember correctly I built some of thor's earlier versions and I am able to expect them on same folder (lib/bin). This is the reason why my previous build never works! Since my PATH is always setup to thor-build/lib. I expect all the output to be there. Is there a way for me to set it up there?

It's a CMake thing. You're essentially supposed to "install" the project somewhere, even if it's the same dir as your source dir. That way you'll get the files in the expected directories (like "lib" or "bin").
Title: Re: Building thor successfully but where the hell are the .dll and .lib files?
Post by: Nexus on October 13, 2014, 10:27:35 am
I always follow the one on the tutorials.
Which one? There's a reason why the "important" section in the tutorial (http://www.bromeon.ch/libraries/thor/v2.0/tutorial-installation.html) exists ;)
-> see eXpl0it3r's and Mario's comments

By the way, please post in the Help forum and not in General Discussions.