Comments (10)
According to this thread, you should be specifying the path without using a space after the "-L" option, like:
-LC:\libtins
The same thing for the other "-L" options.
from libtins.
Hi,
have you checked the this section on the website? You should also be linking against ws2_32 and Iphlpapi (both of them are already present on your system).
If that's not the problem, then please post the compiler/linker error message so I can try to spot to error.
from libtins.
Thank you for replying on such short notice. ws2_32.lib and Iphlpapi.lib weren't present, I had to install the Microsoft SDKs (~4GB) to find them.
Now the Qt project file's (.pro) linking section looks like this:
INCLUDEPATH += C:\WpdPack\Include
INCLUDEPATH += C:\Program Files\Microsoft SDKs\Windows\v7.0\Include
LIBS += -L C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib -lws2_32 -lIphlpapi # Both .lib files are in there.
LIBS += -L C:\WpdPack\Lib\x64 -lwpcap - lpacket
LIBS += -L C:\libtins -ltins # There's only a static library file (~25MB) in there, tins.lib.
And the error is this:
error: C1083: Cannot open include file: 'tins/tins.h': No such file or directory.
I tried adding the library with the "Add library" option in Qt Creator as a static library (I compiled as static with cmake), it didn't help. I appreciate your concern.
Note: Wpcap works fine.
Update: Adding this line produces the following errors,
QMAKE_CXXFLAGS += -lwpcap -lpacket -lws2_32 -lIphlpapi -ltins
D9002 : ignoring unknown options "-lwpcap", "-lpacket", "-lws2_32", "-lIphlpapi", "-ltins"
from libtins.
The problem is that headers are inside the "include" directory but there's not "tins" subdirectory in there. This is an issue on Windows, since you're not actually installing the library.
I've just pushed a fix, which moves headers to a "tins" subdirectory. This will have no impact on the layout of installed files, but you will be able to use the "include" directory in other applications and it will work, even if you don't install it. Just pull the code and recompile, it should work this time.
from libtins.
Again, thank you for your attention. I am terribly sorry if I am being 'newbie' over here, but this error popped up now:
- error: LNK1146: no argument specified with option '/LIBPATH:'
Picture: http://i.imgur.com/aaAJizR.png
Picture of the .pro file: http://i.imgur.com/iaiykny.png
I have absolutely no idea what that means, I even asked on #qt @ freenode network about this, no one replied though.
from libtins.
Also, on #qt they told me I have to use quotes for a path which contains spaces, so I moved everything in C:\libtins. Surprisingly a different error came up this time:
http://i.imgur.com/MW0xHtB.png
from libtins.
Please post the complete error message, although this seems more like a Visual Studio/QtCreator than a libtins one.
from libtins.
Yeah I agree, I am having someone helping me at the moment. I will update soon.
from libtins.
Update:
We made the project file like this: http://pastebin.com/0wgwjBuf
And got to this compile output: http://pastebin.com/JkttMPc4
I also did this: http://stackoverflow.com/questions/26435118/static-library-linking-failure
from libtins.
Closing since this is more likely to be a QtCreator configuration issue than a libtins one.
from libtins.
Related Issues (20)
- Unable to compile Libtins for AIX
- how to call the Stream::user_data() to set and get the custom data ? HOT 1
- IPv6Address::to_string() return a local address HOT 1
- Error: live packet capture not supported on this system
- libtins.so.4.5: cannot open shared object file: No such file or directory HOT 1
- libtins 4.4 conan recipe is conan2.0 incompatible HOT 1
- Multicast packet ( specifically fieldbus) is not parsed
- Tagging a new release / fixup release with GCC 13 patch HOT 1
- 'unresolved external symbol' in Visual Studio 2022 HOT 3
- add #496 in the release notes for v4.5
- Send SYN packet failed on Windows 10 HOT 8
- Any passthru example?
- [bug] UDP::matches_response() return 0 when no inner PDU is available
- How to get gateway? HOT 1
- matches_response() implementation for EthernetII / Dot3
- DataTracker::advance_sequence removes too much data
- Seeing "android ifaddr not supported" regardless of Android version HOT 1
- failures with gtest 1.13+ HOT 1
- wrong "enum OptionTypes" definition HOT 2
- How to dump packets after streamfollower processing?
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 libtins.