Skip to content

Compile

J.P. Hutchins edited this page Aug 15, 2020 · 10 revisions

Note: if you have made changes to the frontend (library_finder/library_explorer) then you need to run the python script at the root of the project: python pre_compile_script.py

Note: if you are building a version where you want to use the actual source CSS and JS files set DEVELOPMENT = true in library.cpp and make sure to also include the CSS and JS -I ./library_explorer/src

Linux

  • Get the latest source code: git clone https://www.github.com/JPHutchins/library_finder
  • Move to source directory: cd library_finder/src
  • Compile: g++ -o library_finder -I ./ -I ./library_explorer/strings -I ./library_explorer/src -O3 library_finder.cpp

Mac OS

  • Get the latest source code: git clone https://www.github.com/JPHutchins/library_finder
  • Move to source directory: cd library_finder/src
  • Compile: clang++ -o library_finder -std=c++0x -I ./ -I ./library_explorer/strings -I ./library_explorer/src -O3 library_finder.cpp

Windows

Dependencies

dirent.h is included in the folder src/windows-dependencies

Compile in Visual Studio 2019

  • Get the latest source code: git clone https://www.github.com/JPHutchins/library_finder

For an .exe:

From Solution Explorer, drop down library_finder and open library_finder.cpp Drop down Project and select library_finder Properties Under Configuration Properties->General, under Projec Defaults, verify that Configuration Type is set to Application (.exe)

For unit testing:

Complete the steps above but verify that Configuraiton Type is set to Static library (.lib)

Clone this wiki locally