Comments (6)
This is second-hand information but on cygwin you probably need to compile with -Wl,--out-implib,iconv.dll.a
and you might have to drop -fPIC
.
Let me know if it works and we'll figure out a way to add it to the build script.
from node-iconv.
Sorry, it doesn't work.
I droped -fPIC. and used:
$ g++ -I/usr/local/include/node -O2 -Wl,--out-implib,iconv.dll.a -shared -Wall
-ansi -o iconv.node iconv.cc
Same effect!
I'm using Windows 7 Professional, 32 Bit Platform
from node-iconv.
Have you tried it with and without -fPIC
?
Another thing you can try is to compile to iconv.dll
instead of iconv.node
. I'm fairly sure that the cygwin g++ has some file extension heuristics built in.
from node-iconv.
Yes, I removed -fPIC. But this was already ignored by g++. I did'nt see that now a library
iconv.dll.a was created.
Creating library file: iconv.dll.a
How to create iconv.dll? Changing only the attribute -o doesn't work!
from node-iconv.
According to the documentation, it should be as simple as -o mylib.dll
.
Note the 'Linking Against DLLs' sections: it's conceivable that you need to generate a .def from the node executable since that is the place where all the V8 symbols live.
Unless the node.js build script produces a v8.dll nowadays - but that's not the case, is it?
from node-iconv.
OK, I got it running.
I don't know if it is the right way, but it's linked. When building node, there is also build a dll node.dll.a. If not you can do it with
$ make dynamiclib
$NODE_PATH/build/default/libnode.dll.a
Also libiconv.a must be linked.
The easyest way ist to copy or make an symbolic link of this libraries to iconv directory.
$ g++ -I/usr/local/include/node -O2 -shared -Wall-ansi -o iconv.node iconv.cc -L/usr/local/lib/node/iconv libnode.dll.a libiconv.a
Now it's OK. It seems that my library pathes are not OK.
Thank's for your help!
from node-iconv.
Related Issues (20)
- npm install sqlite3 HOT 1
- cannot open shared object file HOT 2
- What about CHANGELOG.md HOT 5
- utf-8 to iso-8859-1 error no conversion HOT 2
- Fails to install on windows machine HOT 3
- Unable to install
- Unable to install HOT 3
- iconv cannot be used in worker threads HOT 5
- how to change "νκΈ" to euc-kr ? HOT 1
- Can't resolve ~~ error while developing an Electron app HOT 1
- Memory leak when used with byline? HOT 2
- Upgrade node-gyp to remove python2 dependency HOT 1
- Can't convert string from ISO-8859-1 to windows-1251 HOT 3
- Encodings not supported HOT 2
- Any barriers to IBM500, 037 ? HOT 1
- not doing proper encoding HOT 5
- npm ERR! HOT 1
- WSL npm install iconv failing HOT 3
- will it work with nodejs 20? HOT 1
- NV21 failure? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-iconv.