ange-yaghi / engine-sim

Combustion engine simulator that generates realistic audio.
http://engine-sim.parts/
MIT License
8.68k stars 787 forks source link

I cant build the project #28

Open TMCChamp opened 2 years ago

TMCChamp commented 2 years ago

Hi,

I'm loving the project and I'm dying to try it out but I'm struggling with how to get it built on my PC. So far I've completed steps 1 and 2 in the build steps but I'm stuck on steps 3 and 4. I can tell that the person who wrote the steps has made the assumption that I'm suppose to know what programs I should have installed on my PC and or what programs they mean because they didn't mention that I needed Git Bash to clone the repository in step 1 and which I didn't understand until I searched up what they wanted me to do. It would be nice to be a little more specific on how to build the project for those who know much less than a person with a master's in computer science.

Anyway, for step 3, I don't know what dependencies are and what SDL2 and SDL2_image and boost are and what they mean by "make sure to build the optional dependencies". I'm not sure if I downloaded the right stuff and if I even did the right things with those files but I downloaded what looks to be those dependencies and put them in the Windows file on my local C drive which I assume is what is meant by PATH. After that, I tried step 4 assuming I did everything right but I'm getting errors when I run "cmake ..". The error is as follows:

C:\Users\TMCChamp\Desktop\engine-sim\build>cmake .. -- Building for: NMake Makefiles CMake Error at CMakeLists.txt:18 (project): Running

'nmake' '-?'

failed with:

The system cannot find the file specified

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "C:/Users/TMCChamp/Desktop/engine-sim/build/CMakeFiles/CMakeOutput.log".

I have no idea what this means and how to fix it and I pretty much give up trying to read lots of websites talking about complicated computer stuff to fix this issue to just try out the awesome engine sim program I've patiently waited for to be public since the video of it was released.

Could anyone please help me with this? Thank you

I downloaded SDL2 from this website: https://www.libsdl.org/download-2.0.php (The development libraries one) I forgot where I downloaded the other two from but I'm sure about SDL2.

Hacker1245 commented 2 years ago

You do know that the project has prebuilt binaries in the releases right?

TMCChamp commented 2 years ago

Thanks for replying so fast @Hacker1245, no I didn't know and I don't know what you mean by prebuilt binaries and how it will affect the procedure to build the program.

DREADEDNOTE commented 2 years ago

You can download prebuilt binaries from here

TMCChamp commented 2 years ago

@xstondis thanks for the link but what do I do after downloading them and of course extracting them? I'm now just lost with what the steps are. I'm a novice in computer coding and stuff like this if you couldn't tell already. Sorry if I'm just being a drag at this point.

DREADEDNOTE commented 2 years ago

Download build_1_3a.zip extract it and open bin/engine-sim-app.exe you dont need to build it it's built already

TMCChamp commented 2 years ago

@xstondis It worked, thank you so much. You don't know how much time I spent trying to follow those steps. I really appreciate your help.

BoogieHasFun commented 2 years ago

you shouldn't try to compile if you cant understand what "dependencies" is, rather you should learn a lot more about programming and just download the program from the release tab.

sorry if past me got mad, people get by saying stuff like this to me and they get upvoted, i get punished when i say it. sorry :(

TMCChamp commented 2 years ago

I clicked on the link from the video hoping it would lead me to a simple download but then I saw the "How to build" and assumed its the only way to do it because its the only thing I saw on the page, they never mentioned that there was an already built version.

Please-Pick-a-Name commented 2 years ago

You can download prebuilt binaries from here

i was very unaware the existence of this, i think i need to go delete my comment now :(

walbermr commented 2 years ago

you shouldn't try to compile if you cant understand what "dependencies" is, rather you should learn a lot more about programming and just download the program from the release tab.

sorry if past me got mad

I'm sorry @BoogieHasFun, but you was very unfortunate on your sentence. I have a computer engineering degree, a masters in computer science, work on my free time on C++ developing, and I am facing issues trying to understand what "(make sure to build the optional dependencies)" is and if it or lib versioning is giving me issues. I am pretty sure you would be very upset if you took more than 20 minutes trying to understand what an author/contributor was trying to say in the documentation.

Fortunately, one of my tasks in my volunteer side job is to make building easier for beginning programmers. If none contributors are looking to resolve this issue, I will try my best to do so.

BoogieHasFun commented 2 years ago

you shouldn't try to compile if you cant understand what "dependencies" is, rather you should learn a lot more about programming and just download the program from the release tab. sorry if past me got mad

I'm sorry @BoogieHasFun, but you was very unfortunate on your sentence. I have a computer engineering degree, a masters in computer science, work on my free time on C++ developing, and I am facing issues trying to understand what "(make sure to build the optional dependencies)" is and if it or lib versioning is giving me issues. I am pretty sure you would be very upset if you took more than 20 minutes trying to understand what an author/contributor was trying to say in the documentation.

Fortunately, one of my tasks in my volunteer side job is to make building easier for beginning programmers. If none contributors are looking to resolve this issue, I will try my best to do so.

did you just show off your masters degree?

sorry :(

ange-yaghi commented 2 years ago

@TMCChamp As stated in the video, the link is to the code, not a program. That being said, there are releases available in the releases section which are pre-built for Windows. I wasn't anticipating there would be this much interest in this project so we don't have a formal release strategy yet.

@BoogieHasFun let's keep things civil please.

@walbermr building optional dependencies has a special meaning for boost. If you search online for this phrase, you should be able to find tutorials about this. The boost dependency will, however, be removed soon since it isn't really necessary for this project.

BoogieHasFun commented 2 years ago

@TMCChamp As stated in the video, the link is to the code, not a program. That being said, there are releases available in the releases section which are pre-built for Windows. I wasn't anticipating there would be this much interest in this project so we don't have a formal release strategy yet.

@BoogieHasFun let's keep things civil please.

@walbermr building optional dependencies has a special meaning for boost. If you search online for this phrase, you should be able to find tutorials about this. The boost dependency will, however, be removed soon since it isn't really necessary for this project.

ill try my best