Comments (11)
Sure thing, currently it can never work in windows (my fault), I'll add windows support soon, thanks!
from musictiles.
@kukkieman I just integrate cmake in this project and tested in Windows 10. Try it again now :)
from musictiles.
If you are running on Visual Studio, after the solution generated by cmake, just open the sln file with visual studio and
Build Project
, the binary filemusic_tiles..txt
shall be generated, check the build log for the output folder.I had been doing this right until the binary file step. I couldn't find any binary file, but I think I got the output folder. After building the solution, inside the build folder there was a Debug folder created, which had a
music_tiles.exe
. So I ran it and it worked like a charm! I guess this is it for now.So the problem was that I was generating the program using VS Code 2017 (in cmake-gui) and apparently after building the solution, the INSTALL & PACKAGE weren't building. Their output was in the
..\build\Debug\
directory as an executable filemusic_tiles.exe
.Thanks @Kienyew for being so so so helpful! In case I finish this project on time, I'll be sure to mention you in the credits! I think you can close this issue now.
Cheers!
Cheers! My project is not originally configured to be compile in visual studio though, glad to hear that you got that done, glad to hear that you got it done. Also sorry for my typo which should be music_tiles..txt
music_tiles.exe
in my last comment.
from musictiles.
I don't have a lot of experience with cmake, so could you explain it to me please? I'm trying to make a program similar to this with added functionality and graphics (in C/C++ itself) for a graded college project.
from musictiles.
I don't have a lot of experience with cmake, so could you explain it to me please? I'm trying to make a program similar to this with added functionality and graphics (in C/C++ itself) for a graded college project.
@kukkieman
First of course you need to download cmake itself and install it.
Basically, once you cloned project repository, the procedures is like this:
- Prepare a directory for all output files:
mkdir build && cd build
- Generate a make file (one single script to auto compile and link all codes in the project) by running:
cmake PATH_TO_PROJECT_ROOT
. - Execute the generated make file, usually by a program called make by running:
make/nmake
Consult this guide or other site like youtube, good luck 😄
There's also a cmake-gui that make it easier to do.
from musictiles.
I don't have a lot of experience with cmake, so could you explain it to me please? I'm trying to make a program similar to this with added functionality and graphics (in C/C++ itself) for a graded college project.
@kukkiemanFirst of course you need to download cmake itself and install it.
Basically, once you cloned project repository, the procedures is like this:1. Prepare a directory for all output files: `mkdir build && cd build` 2. Generate a make file (one single script to auto compile and link all codes in the project) by running: `cmake PATH_TO_PROJECT_ROOT`. 3. Execute the generated make file, usually by a program called _make_ by running: `make/nmake`
Consult this guide or other site like youtube, good luck 😄
There's also a cmake-gui that make it easier to do.
Thanks! That's really helpful of you! I'll let you know what happens once I'm done with this.
from musictiles.
I don't have a lot of experience with cmake, so could you explain it to me please? I'm trying to make a program similar to this with added functionality and graphics (in C/C++ itself) for a graded college project.
@kukkiemanFirst of course you need to download cmake itself and install it.
Basically, once you cloned project repository, the procedures is like this:1. Prepare a directory for all output files: `mkdir build && cd build` 2. Generate a make file (one single script to auto compile and link all codes in the project) by running: `cmake PATH_TO_PROJECT_ROOT`. 3. Execute the generated make file, usually by a program called _make_ by running: `make/nmake`
Consult this guide or other site like youtube, good luck 😄
There's also a cmake-gui that make it easier to do.Thanks! That's really helpful of you! I'll let you know what happens once I'm done with this.
Sorry I'm back after 30 days to annoy you again. So I dreaded using cmd at first and then moved to cmake-gui, which worked like a charm but then came this error-
LNK1104 cannot open file 'm.lib' music_tiles E:\Development\GitDirectory\MusicTiles\build\LINK Line 1
Also, the header file at line 1 is "raylib.h" but the error mentions "m.lib". BTW did you use the 32-bit or the 64-bit version of cmake?
from musictiles.
I don't have a lot of experience with cmake, so could you explain it to me please? I'm trying to make a program similar to this with added functionality and graphics (in C/C++ itself) for a graded college project.
@kukkiemanFirst of course you need to download cmake itself and install it.
Basically, once you cloned project repository, the procedures is like this:1. Prepare a directory for all output files: `mkdir build && cd build` 2. Generate a make file (one single script to auto compile and link all codes in the project) by running: `cmake PATH_TO_PROJECT_ROOT`. 3. Execute the generated make file, usually by a program called _make_ by running: `make/nmake`
Consult this guide or other site like youtube, good luck 😄
There's also a cmake-gui that make it easier to do.Thanks! That's really helpful of you! I'll let you know what happens once I'm done with this.
Sorry I'm back after 30 days to annoy you again. So I dreaded using cmd at first and then moved to cmake-gui, which worked like a charm but then came this error-
LNK1104 cannot open file 'm.lib' music_tiles E:\Development\GitDirectory\MusicTiles\build\LINK Line 1
Also, the header file at line 1 is "raylib.h" but the error mentions "m.lib". BTW did you use the 32-bit or the 64-bit version of cmake?
Hey, could you try removing this line:
target_link_libraries(${PROJECT_NAME} m)
in CMakeLists.txt
file and rerun the cmake everything you did and tell me again what is the result, thanks!
from musictiles.
I don't have a lot of experience with cmake, so could you explain it to me please? I'm trying to make a program similar to this with added functionality and graphics (in C/C++ itself) for a graded college project.
@kukkiemanFirst of course you need to download cmake itself and install it.
Basically, once you cloned project repository, the procedures is like this:1. Prepare a directory for all output files: `mkdir build && cd build` 2. Generate a make file (one single script to auto compile and link all codes in the project) by running: `cmake PATH_TO_PROJECT_ROOT`. 3. Execute the generated make file, usually by a program called _make_ by running: `make/nmake`
Consult this guide or other site like youtube, good luck 😄
There's also a cmake-gui that make it easier to do.Thanks! That's really helpful of you! I'll let you know what happens once I'm done with this.
Sorry I'm back after 30 days to annoy you again. So I dreaded using cmd at first and then moved to cmake-gui, which worked like a charm but then came this error-
LNK1104 cannot open file 'm.lib' music_tiles E:\Development\GitDirectory\MusicTiles\build\LINK Line 1
Also, the header file at line 1 is "raylib.h" but the error mentions "m.lib". BTW did you use the 32-bit or the 64-bit version of cmake?Hey, could you try removing this line:
target_link_libraries(${PROJECT_NAME} m)
in
CMakeLists.txt
file and rerunthe cmakeeverything you did and tell me again what is the result, thanks!
So the error is gone now and this is the build log:
`1>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
1>Project not selected to build for this solution configuration
2>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
2>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 0 failed, 6 up-to-date, 2 skipped ==========`
I checked the BUILD ORDER and they are there. I've tried reactivating the project and rebuilding it as well but no luck!
from musictiles.
So the error is gone now and this is the build log:
`1>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
1>Project not selected to build for this solution configuration
2>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
2>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 0 failed, 6 up-to-date, 2 skipped ==========`
I checked the BUILD ORDER and they are there. I've tried reactivating the project and rebuilding it as well but no luck!
If you are running on Visual Studio, after the solution generated by cmake, just open the sln file with visual studio and Build Project
, the binary file music_tiles.exe
shall be generated, check the build log for the output folder.
from musictiles.
So the error is gone now and this is the build log:
1>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------ 1>Project not selected to build for this solution configuration 2>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------ 2>Project not selected to build for this solution configuration ========== Build: 0 succeeded, 0 failed, 6 up-to-date, 2 skipped ==========
I checked the BUILD ORDER and they are there. I've tried reactivating the project and rebuilding it as well but no luck!If you are running on Visual Studio, after the solution generated by cmake, just open the sln file with visual studio and
Build Project
, the binary filemusic_tiles..txt
shall be generated, check the build log for the output folder.
I had been doing this right until the binary file step. I couldn't find any binary file, but I think I got the output folder. After building the solution, inside the build folder there was a Debug folder created, which had a music_tiles.exe
. So I ran it and it worked like a charm! I guess this is it for now.
So the problem was that I was generating the program using VS Code 2017 (in cmake-gui) and apparently after building the solution, the INSTALL & PACKAGE weren't building. Their output was in the ..\build\Debug\
directory as an executable file music_tiles.exe
.
Thanks @Kienyew for being so so so helpful! In case I finish this project on time, I'll be sure to mention you in the credits! I think you can close this issue now.
Cheers!
from musictiles.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from musictiles.