View Full Version : Linux help needed

2nd May 2011, 23:34
O.K. I'm trying to do some programming in Ubuntu and I'm trying to make a file but it came up with this error.

make[1]: Entering directory `/opt/ds2sdk/ireader/ebook/obj'
makefile:4: *** "Please set DS2SDKPATH in your environment: export DS2SDKPATH=<path to>ds2sdk". Stop.

I know I'll have to sudo gedit a file but can anyone tell me what file (/Home/[user]/.bashrc?) to edit and what I'm supposed to enter?

3rd May 2011, 02:47
hello there,

you need an environment variable which states where DS2SDK is. you can do it in shell with the export command as stated. however it will be a temporary solution. you can try it to see if you get the export command right. once you identify the correct location for DS2SDK, you can set the environment variable at your bashrc so that it gets loaded everytime. However, setting environment variables by bashrc is not considered to be a very elegant method. depending on your distro, there are better ways to do this (like from rc.d if I'm not mistaken) you can get much more info from ubuntu forums I guess.

just curious, making a ereader for nintendo ds ? ;)

3rd May 2011, 09:02
Trying to fix the fonts in the iReader plugin for the Supercard DSTwo. The correct location for the folder is /opt/ds2sdk but I need to know how to set it properly.

3rd May 2011, 09:13
try using

export DS2SDKPATH=/opt/ds2sdk

then make. if it works, then check here to set your environment variable (either .profile, .bash_profile or .bashrc)


3rd May 2011, 18:36
I found the issue it was to do with a makefile. Unfortunately now I have another problem.

I try to compile and I get this message

make[1]: mipsel-linux-gcc: Command not found
make[1]: *** [ftsystem.o] Error 127
make[1]: Leaving directory `/opt/ds2sdk/ireader/ebook/obj'
make: *** [main] Error 2

Now I know that this is an issue with freetype 2.3.9 and I have googled for a solution but nothing makes any sense (this is not an issue caused by any of my changes as it happens when I attempt to compile the unaltered source code.