Author Topic: Request: Post a pre compiled dev version of Ndless 2.0  (Read 18602 times)

0 Members and 1 Guest are viewing this topic.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Request: Post a pre compiled dev version of Ndless 2.0
« on: February 22, 2011, 02:06:01 pm »
Hey,

I dont know if these is against the rules to ask this (I apologize if it is), but can someone who figured out the infernal setup of the development environment for ndless post a working precompiled copy for download?
I have tried following the compile directions, and got all of the tools set up(YAGARTO and the like), and it sort of compiles, but comes up with errors and fails to finish. I see no reason why one of the devs cant just post an unstable copy (yes, i know that frequent changes are made, but any copy of the Ndless 2.0 is better than no copy). I am sort of getting sick of dealing with OS 1.7 on my Nsipre and having to use the ugly mismatched clickpad (a petty complaint, i know). Is anyone willing to do that for those who lack the time, patience, and luck to successfully compile it themselves?

Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #1 on: February 22, 2011, 02:18:55 pm »
I am fairly certain that if you post the error logs people would be happy to help you compiling it. Ndless 2.0 installer isn't distributed because then we would have to deal with an extra group of people that don't read readmes who would install Ndless without worrying about what is it compatible with then end up bricking their calc (or rendering it temporary unuseable but think it's broken) then they would yell at us accusing us of giving them buggy softwares. Since that kind of people will usually not go through the process of trying to compile softwares or even ask for help compiling it, Ndless 2.0 was made that way until it comes out of beta.

Sorry for the inconveniences.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #2 on: February 22, 2011, 02:36:09 pm »
Ah, i see, that makes a lot more sense, well, ill give compiling another go maybe, and see exactly what error I ran into, it had to do with the nspire-ld component not working.
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #3 on: February 22, 2011, 02:37:41 pm »
Ok, good luck, but please post the error log text if you get any. Hopefully that should help people pointing you in the right direction.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #4 on: February 22, 2011, 02:54:35 pm »
OK, heres the error I get when I try to build something using msys:(maybe the thread name should be changed, oh well)

Greg@GREG-WIN7 /c/Users/Greg/Documents/ndless2/samples/hello
$ ls
Makefile  hello.c

Greg@GREG-WIN7 /c/Users/Greg/Documents/ndless2/samples/hello
$ make
nspire-gcc -Os -nostdlib -Wall -W -marm -c hello.c
nspire-ld -nostdlib hello.o -o hello.elf
c:/program files (x86)/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: cannot find -lndls
collect2: ld returned 1 exit status
make: *** [hello.tns] Error 1

I have installed YAGARTO properly, i think? I do have a clean XP system I can redo a setup on, on a seperate partition, I have also tried linux mint, but with even less sucess.
« Last Edit: February 22, 2011, 02:55:31 pm by merauder75 »
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #5 on: February 22, 2011, 03:15:22 pm »
I think you have to add the ndless directory to your system path, but I'm not certain.

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #6 on: February 22, 2011, 03:50:45 pm »
Yeah, its added in the Windows system path, it and Yagarto's stuff are added, here my system path:

C:\Program Files (x86)\ATI Stream\bin\x86_64;C:\Program Files (x86)\ATI Stream\bin\x86;%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\yagarto\bin;C:\Users\Greg\Documents\ndless2\bin;C:\Program Files (x86)\Common Files\GTK\2.0\bin

I think thats correct.
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Mrakoplaz

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +130/-2
  • Prussian Minister of War
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #7 on: February 22, 2011, 06:33:41 pm »
"lndls" is a Ndless library file - looks like you're trying to compile the programs before you have compiled Ndless. You must first run the makefile in the ndless root, to get the libraries and other things you'll need to compile the programs themselves.

EDIT: Judging by your log, your program is actually getting compiled, and it's just the linker that's failing (since you haven't compiled the library yet), so I really think you've done everything correctly, except for running the wrong file. It should be all good after that.
« Last Edit: February 22, 2011, 06:36:18 pm by Mrakoplaz »

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #8 on: February 23, 2011, 04:59:20 pm »
Yay! Hello world compiles! You sir, are awesome! :thumbsup:. However, i still cant figure out how to get the whole thing to compile so that I get the ndless installer.tns file so I can upgrade to 2.0(or 2.1?) and play Doom.
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #9 on: February 23, 2011, 05:01:49 pm »
Also, heres the error I get when building in the root, I just built the libndls manually from its folder.

Greg@GREG-WIN7 /c/Users/Greg/Documents/ndless2
$ make
make all in tools...
make[1]: Entering directory `/c/Users/Greg/Documents/ndless2/tools'
make all in build...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/tools/build'
make all in MakeLoader...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader.exe
make[2]: gcc: Command not found
make[2]: *** [MakeLoader.exe] Error 127
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/tools/MakeLoader'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/c/Users/Greg/Documents/ndless2/tools'
make: *** [subdirs] Error 1


What exactly is wrong with makeloader?

Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Mrakoplaz

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +130/-2
  • Prussian Minister of War
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #10 on: February 23, 2011, 05:03:35 pm »
Can you run a "make clean all" instead of just "make", so that we can see the whole log? It's strange that it can't find "gcc", though...

EDIT: This is definitely a path issue, looking at it again. Give me a few moments to recheck where gcc should be (Yagarto, MSYS, Mingw, I forget...).

EDIT2: You've installed yagarto in C:\Program Files (x86)\, judging by your path. If I remember correctly, Yagarto doesn't like special symbols in its filepath; Try uninstalling Yagarto completely, then reinstalling it in C:\YAGARTO or something similar (avoiding brackets, and also spaces just in case). I remember having some issues on my Win7 box with this.
« Last Edit: February 23, 2011, 05:15:55 pm by Mrakoplaz »

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #11 on: February 23, 2011, 05:06:46 pm »
Ok, here you go,

Greg@GREG-WIN7 ~
$ cd C:/Users/Greg/Documents/ndless2

Greg@GREG-WIN7 /c/Users/Greg/Documents/ndless2
$ make clean all
rm -rf dist
Clearing in tools...
make[1]: Entering directory `/c/Users/Greg/Documents/ndless2/tools'
Clearing in build...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/tools/build'
cd ../../bin && rm -f nspire-gcc nspire-ld  nspire-as || :
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/tools/build'
Clearing in MakeLoader...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/tools/MakeLoader'
rm -f ../../bin/MakeLoader.exe
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/tools/MakeLoader'
make[1]: Leaving directory `/c/Users/Greg/Documents/ndless2/tools'
Clearing in libndls...
make[1]: Entering directory `/c/Users/Greg/Documents/ndless2/libndls'
rm -rf *.o *.elf *.a
rm -f ../lib/libndls.a
make[1]: Leaving directory `/c/Users/Greg/Documents/ndless2/libndls'
Clearing in arm...
make[1]: Entering directory `/c/Users/Greg/Documents/ndless2/arm'
rm -rf *.o *.bin *.elf *.xml *.zip
rm -rf ../calcbin/ndless_installer*.tns ../calcbin/ndless_resources.tns
make all in tests...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/arm/tests'
rm -f *.o *.elf
rm -f ../../calcbin/tests/ndless_tests.tns
rm -f ../../calcbin/tests/ndless_keys.tns
rm -f ../../calcbin/tests/ReadMe.txt
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/arm/tests'
make[1]: Leaving directory `/c/Users/Greg/Documents/ndless2/arm'
Clearing in samples...
make[1]: Entering directory `/c/Users/Greg/Documents/ndless2/samples'
Clearing in hella...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/samples/hella'
rm -f *.o *.elf
rm -f ../../calcbin/samples/hella.tns
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/samples/hella'
Clearing in hello...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/samples/hello'
rm -f *.o *.elf
rm -f ../../calcbin/samples/hello.tns
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/samples/hello'
Clearing in particles...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/samples/particles'
rm -f *.o *.elf
rm -f ../../calcbin/samples/particles.tns
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/samples/particles'
rm -f ../calcbin/samples/ReadMe.txt
make[1]: Leaving directory `/c/Users/Greg/Documents/ndless2/samples'
rm -rf calcbin
rm -rf bin lib
make all in tools...
make[1]: Entering directory `/c/Users/Greg/Documents/ndless2/tools'
make all in build...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/tools/build'
make all in MakeLoader...
make[2]: Entering directory `/c/Users/Greg/Documents/ndless2/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader.exe
make[2]: gcc: Command not found
make[2]: *** [MakeLoader.exe] Error 127
make[2]: Leaving directory `/c/Users/Greg/Documents/ndless2/tools/MakeLoader'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/c/Users/Greg/Documents/ndless2/tools'
make: *** [subdirs] Error 1

Greg@GREG-WIN7 /c/Users/Greg/Documents/ndless2
$
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #12 on: February 23, 2011, 05:22:33 pm »
Hmm, nope, still complaining about MakeLoader. ???
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C

Offline Mrakoplaz

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +130/-2
  • Prussian Minister of War
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #13 on: February 23, 2011, 05:35:03 pm »
Hmm, you did install MinGW alongside MSYS, right? I just realized it can't be your Yagarto installation, because MakeLoader is a x86 program, and not ARM.

I remember having tremendous issues getting MinGW/MSYS to work the first time around, but at the same time I also wrote a .txt file for myself noting what I did (well, it's mostly copy-paste from other assorted documents, plus a few personal notes), just so I could do it again if I had to reinstall Windows for some reason. It might help, it might not, but here it is anyway:

Quote
The total size of the installation of MSYS/MinGW is around 110 MB. Be sure to have enough space on your hard disk.

If you haven't already installed MinGW on your system, install MinGW in C:\MinGW. It is better to not install it in the same directory than MSYS, though there should be no problem since MSYS 1.0.11. In the installer, choose "Download and install", then "Current" (it will install gcc 4.4.0).

Install MSYS 1.0.11. I usually install it in C:\msys\1.0, but you can use any directory that you prefer.

Check http://sourceforge.net/projects/mingw/files/ for more recent versions of all these files.

Next, the post install process will ask for the directory where MinGW was installed to. Enter "c:/mingw". If you make a mistake, you can change it by editing the "C:\msys\1.0\etc\fstab" file, make sure to use 'LF line endings. An example fstab may contain:
c:/mingw /mingw
c:/java /java

Install MSYS DTK 1.0 in C:\msys\1.0.

Install MSYS Core 1.0.11. It is an archive. Untar it in C:\msys\1.0.

Set the environment variable HOME to C:\msys\1.0\home

Update GCC to 4.5.0 using the gcc-core-4.5.0-1-mingw32-bin package

Offline merauder75

  • LV3 Member (Next: 100)
  • ***
  • Posts: 75
  • Rating: +1/-1
    • View Profile
Re: Request: Post a pre compiled dev version of Ndless 2.0
« Reply #14 on: February 23, 2011, 06:17:07 pm »
ok, it got farther this time, however, no more MakeLoader problems, however, heres a new one.

make[1]: Leaving directory `/c/Users/Greg/Documents/ndless2/libndls'
make all in arm...
make[1]: Entering directory `/c/Users/Greg/Documents/ndless2/arm'
nspire-as -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1                                                                                                                                                               -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c bootstrappe                                                                                                                                                              r.S
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1                                                                                                                                                               -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c stage1.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1                                                                                                                                                               -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c ints.c -o                                                                                                                                                               ints_light_thumb.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1                                                                                                                                                               -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls.c                                                                                                                                                               -o syscalls_light_thumb.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1                                                                                                                                                               -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c utils.c -o                                                                                                                                                               utils_light_thumb_os-1.7.o
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1                                                                                                                                                               -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls-l                                                                                                                                                              ight_ncas-1.7.c
nspire-gcc -Os -nostdlib -Wall -W -Wno-strict-aliasing -D _NDLS_LIGHT -D STAGE1                                                                                                                                                               -mthumb-interwork -mthumb -D OS_VERSION=1_7 -D OS_VERSION_INT=17 -c syscalls-l                                                                                                                                                              ight_cas-1.7.c
nspire-ld --no-startup -nostdlib bootstrapper.o stage1.o ints_light_thumb.o sys                                                                                                                                                              calls_light_thumb.o utils_light_thumb_os-1.7.o syscalls-light_ncas-1.7.o syscal                                                                                                                                                              ls-light_cas-1.7.o -o ndless_installer_os-1.7.elf
"/c/YAGARTO/bin/arm-none-eabi-objcopy.exe" -O binary ndless_installer_os-1.7.el                                                                                                                                                              f ndless_installer_os-1.7.bin
../bin/MakeLoader ndless_installer_os-1.7.bin Document.xml
'ndless_installer_os-1.7.bin' successfully created (22528000 bytes written)!
rm -f ndless_installer_os-1.7.tns ndless_installer_os-1.7.zip
"" a ndless_installer_os-1.7.zip Document.xml
/bin/sh: : command not found
make[1]: *** [ndless_installer_os-1.7.tns] Error 127
make[1]: Leaving directory `/c/Users/Greg/Documents/ndless2/arm'
make: *** [subdirs] Error 1

Yeah, I cant get the whole thing pasted in without being rediculously long, isnt it suppposed to be compiling ndless 2.0? not v1.7?
« Last Edit: February 23, 2011, 06:18:06 pm by merauder75 »
Known Programming Languages:
C++,C#,Java,Python,Lua,PHP,x86 ASM,TI-Basic(Z80 and Nspire),C