Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8>LINK : fatal error LNK1104: cannot open file 'Debug\engine-sim.lib' #437

Open
NethercraftMC5608 opened this issue Oct 15, 2023 · 1 comment

Comments

@NethercraftMC5608
Copy link

8>LINK : fatal error LNK1104: cannot open file 'Debug\engine-sim.lib'
I have followed the instructions correctly, I am using the latest dependencies.
-- Building for: Visual Studio 17 2022
-- The C compiler identification is MSVC 19.37.32825.0
-- The CXX compiler identification is MSVC 19.37.32825.0
-- Found Python: C:/Users/Nether/AppData/Local/Programs/Python/Python311/python.exe (found version "3.11.3") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Found SDL2: C:/local/SDL2/lib/x64/SDL2.lib
-- Found SDL2_image: C:/local/SDL2_image/lib/x64/SDL2_image.lib
-- Found Boost: C:/local/Boost_1_83_0 (found suitable version "1.83.0", minimum required is "1.40") found components: filesystem
-- Found FLEX: C:/local/WinFlexBison/win_flex.exe (found version "2.6.4")
-- Found BISON: C:/local/WinFlexBison/win_bison.exe (found version "3.8.2")

Build started...
1>------ Build started: Project: simple-2d-constraint-solver, Configuration: Debug x64 ------
2>------ Build started: Project: piranha (piranha\piranha), Configuration: Debug x64 ------
3>------ Build started: Project: delta-physics, Configuration: Debug x64 ------
4>------ Build started: Project: delta-core, Configuration: Debug x64 ------
1>simple-2d-constraint-solver.vcxproj -> C:\Users\Nether\Downloads\lol\engine-sim\build\dependencies\submodules\simple-2d-constraint-solver\Debug\simple-2d-constraint-solver.lib
3>delta-physics.vcxproj -> C:\Users\Nether\Downloads\lol\engine-sim\build\dependencies\submodules\delta-studio\physics\Debug\delta-physics.lib
5>------ Build started: Project: csv-io (csv-io\csv-io), Configuration: Debug x64 ------
2>parser.auto.cpp
5>csv-io.vcxproj -> C:\Users\Nether\Downloads\lol\engine-sim\build\dependencies\submodules\csv-io\Debug\csv-io.lib
2>C:\Users\Nether\Downloads\lol\engine-sim\build\dependencies\submodules\piranha\parser.auto.cpp(1170,26): warning C4244: 'return': conversion from 'const short' to 'piranha::Parser::state_type', possible loss of data
2>scanner.auto.cpp
4>delta-core.vcxproj -> C:\Users\Nether\Downloads\lol\engine-sim\build\dependencies\submodules\delta-studio\Debug\delta-core.lib
6>------ Build started: Project: delta-basic, Configuration: Debug x64 ------
6>delta-basic.vcxproj -> C:\Users\Nether\Downloads\lol\engine-sim\build\dependencies\submodules\delta-studio\engines\basic\Debug\delta-basic.lib
7>------ Build started: Project: engine-sim, Configuration: Debug x64 ------
7>audio_buffer.cpp
7>camshaft.cpp
2>ir_compilation_unit.cpp
7>crankshaft.cpp
7>combustion_chamber.cpp
7>connecting_rod.cpp
2>Generating Code...
7>convolution_filter.cpp
7>cylinder_bank.cpp
7>cylinder_head.cpp
2>piranha.vcxproj -> C:\Users\Nether\Downloads\lol\engine-sim\build\dependencies\submodules\piranha\Debug\piranha.lib
2>Done building project "piranha.vcxproj".
7>delay_filter.cpp
7>derivative_filter.cpp
7>direct_throttle_linkage.cpp
7>dynamometer.cpp
7>engine.cpp
7>exhaust_system.cpp
7>feedback_comb_filter.cpp
7>filter.cpp
7>fuel.cpp
7>function.cpp
7>gas_system.cpp
7>gaussian_filter.cpp
7>Generating Code...
7>Compiling...
7>governor.cpp
7>ignition_module.cpp
7>impulse_response.cpp
7>intake.cpp
7>jitter_filter.cpp
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(61,31): warning C4244: 'initializing': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(56,17): message : while compiling class template member function 'void ButterworthLowPassFilter<float>::setCutoffFrequency(T_Real,T_Real)'
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\src\jitter_filter.cpp(25,37): message : see the first reference to 'ButterworthLowPassFilter<float>::setCutoffFrequency' in 'JitterFilter::initialize'
7>C:\Users\Nether\Downloads\lol\engine-sim\src\../include/jitter_filter.h(53,37): message : see reference to class template instantiation 'ButterworthLowPassFilter<float>' being compiled
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(61,24): warning C4244: 'initializing': conversion from 'double' to 'const T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(62,31): warning C4244: 'initializing': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(62,24): warning C4244: 'initializing': conversion from 'double' to 'const T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(64,74): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(65,79): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(66,64): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(67,79): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(68,82): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>leveling_filter.cpp
7>C:\Users\Nether\Downloads\lol\engine-sim\src\leveling_filter.cpp(31,41): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
7>low_pass_filter.cpp
7>part.cpp
7>piston.cpp
7>piston_engine_simulator.cpp
7>C:\Users\Nether\Downloads\lol\engine-sim\src\piston_engine_simulator.cpp(36,5): error C2065: 'm_antialiasingFilters': undeclared identifier
7>simulator.cpp
7>standard_valvetrain.cpp
7>starter_motor.cpp
7>synthesizer.cpp
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(144,49): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(144,29): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(181,27): warning C4244: 'argument': conversion from 'const size_t' to 'double', possible loss of data
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(188,58): warning C4244: 'argument': conversion from 'T_Real' to 'T_Data', possible loss of data
7>        with
7>        [
7>            T_Real=double
7>        ]
7>        and
7>        [
7>            T_Data=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(205,49): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(277,29): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(288,61): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(288,25): warning C4244: 'initializing': conversion from 'double' to 'const float', possible loss of data
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(298,63): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(298,27): warning C4244: 'initializing': conversion from 'double' to 'const float', possible loss of data
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(61,31): warning C4244: 'initializing': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(56,17): message : while compiling class template member function 'void ButterworthLowPassFilter<float>::setCutoffFrequency(T_Real,T_Real)'
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\src\synthesizer.cpp(60,56): message : see the first reference to 'ButterworthLowPassFilter<float>::setCutoffFrequency' in 'Synthesizer::initialize'
7>C:\Users\Nether\Downloads\lol\engine-sim\include\jitter_filter.h(53,37): message : see reference to class template instantiation 'ButterworthLowPassFilter<float>' being compiled
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(61,24): warning C4244: 'initializing': conversion from 'double' to 'const T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(62,31): warning C4244: 'initializing': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(62,24): warning C4244: 'initializing': conversion from 'double' to 'const T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(64,74): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(65,79): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(66,64): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(67,79): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>C:\Users\Nether\Downloads\lol\engine-sim\include\butterworth_low_pass_filter.h(68,82): warning C4244: '=': conversion from 'double' to 'T_Real', possible loss of data
7>        with
7>        [
7>            T_Real=float
7>        ]
7>throttle.cpp
7>transmission.cpp
7>utilities.cpp
7>valvetrain.cpp
7>vehicle.cpp
7>vehicle_drag_constraint.cpp
7>Generating Code...
7>Compiling...
7>vtec_valvetrain.cpp
7>Generating Code...
7>Done building project "engine-sim.vcxproj" -- FAILED.
8>------ Build started: Project: engine-sim-app, Configuration: Debug x64 ------
8>Building Custom Rule C:/Users/Nether/Downloads/lol/engine-sim/CMakeLists.txt
8>main.cpp
8>engine_sim_application.cpp
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(482,71): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(502,32): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(689,35): warning C4244: '=': conversion from 't' to 'float', possible loss of data
8>        with
8>        [
8>            t=double
8>        ]
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(702,40): warning C4244: '=': conversion from 't' to 'float', possible loss of data
8>        with
8>        [
8>            t=double
8>        ]
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(715,37): warning C4244: '=': conversion from 't' to 'float', possible loss of data
8>        with
8>        [
8>            t=double
8>        ]
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(728,37): warning C4244: '=': conversion from 't' to 'float', possible loss of data
8>        with
8>        [
8>            t=double
8>        ]
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(741,45): warning C4244: '=': conversion from 't' to 'float', possible loss of data
8>        with
8>        [
8>            t=double
8>        ]
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(757,45): warning C4244: 'argument': conversion from 'const double' to 'int', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(942,46): warning C4244: 'argument': conversion from 'const int' to 'float', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(942,33): warning C4244: 'argument': conversion from 'const int' to 'float', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(1020,38): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(1019,37): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(1018,38): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(1017,37): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(1025,22): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(1024,55): warning C4244: 'argument': conversion from 'float' to 'int', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(1032,9): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_sim_application.cpp(1031,9): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
8>geometry_generator.cpp
8>simulation_object.cpp
8>piston_object.cpp
8>connecting_rod_object.cpp
8>ui_element.cpp
8>ui_manager.cpp
8>cylinder_pressure_gauge.cpp
8>ui_math.cpp
8>gauge.cpp
8>crankshaft_object.cpp
8>cylinder_bank_object.cpp
8>cylinder_head_object.cpp
8>ui_button.cpp
8>ui_utilities.cpp
8>combustion_chamber_object.cpp
8>oscilloscope.cpp
8>shaders.cpp
8>engine_view.cpp
8>C:\Users\Nether\Downloads\lol\engine-sim\src\engine_view.cpp(6,33): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
8>Generating Code...
8>Compiling...
8>right_gauge_cluster.cpp
8>C:\Users\Nether\Downloads\lol\engine-sim\src\right_gauge_cluster.cpp(376,49): warning C4244: '=': conversion from 'float' to 'int', possible loss of data
8>cylinder_temperature_gauge.cpp
8>labeled_gauge.cpp
8>throttle_display.cpp
8>afr_cluster.cpp
8>fuel_cluster.cpp
8>oscilloscope_cluster.cpp
8>performance_cluster.cpp
8>firing_order_display.cpp
8>load_simulation_cluster.cpp
8>mixer_cluster.cpp
8>info_cluster.cpp
8>Generating Code...
8>LINK : fatal error LNK1104: cannot open file 'Debug\engine-sim.lib'
8>Done building project "engine-sim-app.vcxproj" -- FAILED.
========== Build: 6 succeeded, 2 failed, 3 up-to-date, 0 skipped ==========
========== Build started at 8:17 pm and took 02:03.023 minutes ==========
@DDev247
Copy link

DDev247 commented Oct 16, 2023

Done building project "engine-sim.vcxproj" -- FAILED.
7>C:\Users\Nether\Downloads\lol\engine-sim\src\piston_engine_simulator.cpp(36,5): error C2065: 'm_antialiasingFilters': undeclared identifier
This is your issue. Your engine-sim project failed to compile so it can't link the library.
The error is in in src\piston_engine_simulator.cpp on line 36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants