Category Archives: Research @ Oita

Linux Development Environment: Fujitsu HOAP-3 Simulator

Yesterday, just after the winter break holidays I wanted to continue doing my research project, when suddenly I couldn`t compile the program to the simulator! I couldn’t figure out the cause since last night.

The simulator is to be run on Linux, so I used VMWare, the virtual machine so I could run Linux (or other OS) on Windows. I used Ubuntu (Dell Modified) 7.04 because it was modified to run on Dell Laptops. I even tried the Fedora8 Live CD which performed bad, the network workgroup detection was very slow, and not a lot of installed packages.

This is the Makefile to be run (ArmSwingSample is the name of the coding):

 

ArmSwingSample : ArmSwingSample.o
$(CC) ${USER_CFLAGS} \
-o ArmSwingSample \
ArmSwingSample.o \
-L ../../develop/lib \
-L /usr/X11R6/lib \
-lfjDyn -lfj3D -lm -lX11 -lXmu \
-lpthread -lGLU -lGL \

First of all, the error was on command make
“Make: Error 127”,
This means the g++: GNU C++ compiler couldn`t be found. I installed the build-essential Debian package from the Package Manager. Problem fixed…. so far

/usr/bin/ld: cannot find -lx11
/usr/bin/ld: cannot find -lXmu
/usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status

After that all the errors was the Linux couldn’t find the lx11, lXmu and lGLu. I reinstalled the corresponding packages that contained these libraries (X11, libXmu, OpenGL-dev). Strange, they were already installed… nevertheless it fixed the problem, and I can get back to work… 🙂

Tip: Don`t restart or shutdown the virtual machine if you don`t need to… just leave it in suspended state.

Advertisements