Note that there are some explanatory texts on larger screens.

plurals
  1. POCross Compiling a library from intel to arm
    primarykey
    data
    text
    <p>I am using open source C++ library DCMTK from <a href="http://dicom.offis.de/dcmtk.php.en" rel="nofollow">http://dicom.offis.de/dcmtk.php.en</a>. I have successfully compiled this library on Windows using VC++ IDE, MacOS Xcode, Mac iOS simulator. But I am not able to compile this library on iOS device as it is ARM based architecture. DCMTK library compiled very well on Intel architecture. </p> <p>Now my problem statement is :-</p> <p>I need to compile this DCMTK C++ library on ARM architecture by cross compilation. I am using Ubuntu 64 bit machine for cross compilation. I have installed binaries from GNU ARM tool chain from <a href="http://www.gnuarm.com/" rel="nofollow">http://www.gnuarm.com/</a> I am using GCC toolchain 4.0 binutils-2.16.1, gcc-4.0.2-c-c++, newlib-1.14.0, insight-6.4, TAR BZ2 [65.5MB] binaries for Ubuntu 64 bit machine for ARM cross compilation.</p> <p>After Installing these binaries on Ubuntu I have set PATH environment variable to PATH=$PATH/gnu_arm/bin </p> <p>For configuring the DCMTK C++ library I have run the following command on shell</p> <h1>CC=arm-elf-gcc CXX=arm-elf-g++ AR=arm-elf-ar RANLIB=arm-elf-ranlib ARFLAGS=cruv ./configure –prefix=$home_dicom –target=arm-elf –host=arm-elf –enable-std-includes –disable-threads</h1> <p>It creates a make file properly. Now I am trying to compile the code by using make command, but facing so many compilation errors like :- 1) I tried to compile my first dependent C++ library that is ofstd. I got error for DIR*, struct dirent, opendir(), closedir() calls. It includes for these calls, but I did not found any definitions for the above calls in this header file.</p> <p>2) When I compile another library oflog I got the following errors like error: nthos was not declared in this scope error: ntohl was not declared in this scope error: htons was not declared in this scope error: htonl was not declared in this scope. These calls are networking calls and are not defined in any of the header file from GNU ARM tool.</p> <p>I tried to download the sources of ARM binaries and extracted the tar files and try to copy missing header files to installed GNU ARM on Ubuntu. For some files it compiles after doing changes to copied header files, and for some again it gives compilation errors.. There is a loop of compilation errors for every file present under DCMTK library as some of the standard header files are missing.</p> <p>Please suggest if there is any other tool chain available for ARM cross compilation on Ubuntu 64 bit machine. Or any other good solution apart from this.</p> <p>Thanks!!! Amit</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload