Forum Discussion
Altera_Forum
Honored Contributor
16 years agonano-x user program
Hello all, i tryed the nano-x, nanowm, nxview and i would like to write some user programs for nano-x windows. But when i wanted to compile the program from http://www.microwindows.org/programmi...
Altera_Forum
Honored Contributor
16 years agoHi,
finally I created user/displaytext and added it in menuconfig, i run compiler in this directory: />nios2-linux-uclibc-gcc displaytext.c -o displaytext -I/home/uclinux/nios2-linux/uClinux-dist/user/microwin/src/include -L/home/uclinux/nios2-linux/uClinux-dist/user/microwin/src/lib -lnano-X -lpthread and it compiled okay to file for running *displaytext but when i run in altera nios ii embedded evaluation kit (http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=56&no=372) after />nano-X & />nanowm & />displaytext & it made crash system - uclinux finished and i am back from nios-terminal. When i see to make process, i see that make run nios2-linux-uclibc-gcc .....with -lmwengine -lmwdrivers -lmwfonts -ljpeg -lpthread -lm -lz and when i try: />nios2-linux-uclibc-gcc displaytext.c -o displaytext -I/home/uclinux/nios2-linux/uClinux-dist/user/microwin/src/include -L/home/uclinux/nios2-linux/uClinux-dist/user/microwin/src/lib -lmwengine -lmwdrivers -lmwfonts -lphtread -lm -lz It reports: /home/uclinux/nios2-linux/toolchain-build/build/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/bin/ld.real: cannot find -lphtread collect2: ld returned 1 exit status Now i am not able to continue. I tryed to make all again with this error. I compiled user/microwin/demos first time only random way, i think. Maybe i with make clean and make erase something important. I can try again install uclinux and compile again. I wanted only use nano-x with nxview example.jpg and after this draw and erase some lines in real time..... Is any other way to draw/erase lines except use nano-x (lib) ? Thank you. Jan I tryed this links, but it doesnt exist: http://www.nioswiki.com/operatingsystems/uclinux/framebuffer -------------------------------- doesnt exist: -------------------- drunken79 (http://forum.niosforum.com/forum/index.php?showuser=6042) posted SDL sources at sdl for nios2 (http://drunken.inter****.com/sdl.tar.gz) look in the file CONFIGURE.NIOS for ./configure options. After compiling, the library is in /src/.libs/ or in the directory you specified with --prefix. Some small example programms from : example sdl programms (http://drunken.inter****.com/examples.tar.gz) And a thread at gmane about uclinux and libsdl : gmane sdl on uclinux (http://comments.gmane.org/gmane.comp.lib.sdl/4795)