Menu

#1 Compiling ntxshape on Linux

open
nobody
None
5
2005-02-16
2005-02-16
Anonymous
No

Hi,
A co-worker and I have just used ntxshape to convert
files from ntx to shape for a project. We are running
on the Linux environment and had problems installing
1.4a. Mike found the following problem and fixed it
for me. I then installed it and ran files through it
and it worked perfectly. I hope that this information
will be useful.
Thanks to creating and sharing this utility .... it is
great!
Laura

laura@engtech.ca

To compile NTX to shape, the following changes were needed:

Edit makedependencies.sh to remove DOS line endings.

makedependencies.sh had CRLF line endings instead of LF
line endings, thus causing a file named dependencies^M
to be created. Then, the file dependencies was
required by the build process, but this didn't exist.

Removing the CRs from makedependencies.sh was
sufficient to resolve this problem.

Provide MAX_PATH to convert.cpp and dllmain.cpp

These files requested MAX_PATH, which appeared to be
the POSIX PATH_MAX define for maximum directory entry
length. My solution was to add the following lines to
resource.h:
#include <linux/limits.h>
#define MAX_PATH PATH_MAX
Link the project with g++ instead of gcc.

Because it is a C++ application, the final command of
the Makefile (linking) should use g++ to link the C++
objects properly. However, the rule caused gcc to be
used instead, causing a lot of undefined symbol errors
regarding g++ symbols.

My solution was to modify "gcc" to "g++" in the link line:

Change:
gcc -Wl,--strip-all -o ntxshape stripext.o convert.o
libntxshape.a
To:
g++ -Wl,--strip-all -o ntxshape stripext.o convert.o
libntxshape.a
This gave me an ntxshape which appears to run properly.

--
Mike Burke
Engineering Technologies Canada Ltd.
michael@engtech.ca

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.