-
Notifications
You must be signed in to change notification settings - Fork 26
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
Help me with this error please! #53
Comments
Which Ubuntu version are you using? |
I am using Ubuntu 21.04 (Hirsute) |
OK maybe I misunderstood the question. Are you trying to install ngdevkit-examples with a pre-built ngdevkit, or did you build ngdevkit and now the examples won't compile because running ./configure will fail? |
im trying to install ngdevkit-examples with a pre-built ngdevkit. |
Could you try to go back to the top directory and configure all the shell variables with:
Then go back to examples and try to compile them:
|
Thank you it worked! also how do i make my own makefile for the c++ compiler on ngdevkit since i installed the devkit on ubuntu and idk how to make my own programs and run them on gngeo? |
Although g++ ships with ngdevkit, I'm not sure the current linkscript links all the necessary segments for the c++ runtime to work. If especially true if you make use of runtime features like exception. |
but here's the thing, where does it say on makefile.common on how to change the build command from gcc to g++? |
So in a nutshell:
If you want to rebuild a simpler Makefile for your ROM, you can see the output of the compilation of example 01-helloworld on your terminal. It's fairly straightforward: one 68k file compiled as an elf, elf transformed into ROM format, and everything zipped into puzzledp.zip. |
But here is the problem, like say i have a c++ file and i copy one of the makefile from the example of the helllo world program, but when i run the make gngeo command it does not work so what do i do with this? |
Hmmm, after looking at it, the current version of ngdevkit doesn't ship a C++ compiler, I'm not sure when this one got lost, but that surely was a long time ago, probably when I split ngdevkit-toolchain out of ngdevkit... Thinking more about it adding back g++ will need some time to validate the compilation and whatnot, as well as making sure that the runtime helpers (libngdevkit) link with c++. For now this is going to be a longer term feature, your best bet is to stick to C for the time being. |
Thanks for the answer! |
Hey, also so when i type in The make command it says this Makefile:22: ../Makefile.common: No such file or directory |
I'm not sure whether you're trying to build in the ./examples subdirectory or if you're trying to build something in a separate directory of your own, the issue description lacks details. I committed an example of standalone directory in https://github.com/dciabrin/ngdevkit-examples/tree/standalone/00-standalone, it contains all the generic Makefiles needed to build an example from a single directory.
You should now be able to go into the new directory 00-standalone from above and build the example in an isolated way. |
I am trying to build something in a separate directory of my own, so how do i make and compile my own c file by using make in a separate directory of my own! |
but then when i do what you say it gives me the same error so can you help me! |
Hey, so i am trying to install ngdevkit on ubuntu and i am getting a error that is not letting me install the examples for ngdevkit. It says "No Package ngdevkit Found" or something like that so can you help me please!
The text was updated successfully, but these errors were encountered: