Git Product home page Git Product logo

Comments (10)

mfontanini avatar mfontanini commented on August 21, 2024 2

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.

mfontanini avatar mfontanini commented on August 21, 2024

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.

niemal avatar niemal commented on August 21, 2024

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.

mfontanini avatar mfontanini commented on August 21, 2024

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.

niemal avatar niemal commented on August 21, 2024

Again, thank you for your attention. I am terribly sorry if I am being 'newbie' over here, but this error popped up now:

I have absolutely no idea what that means, I even asked on #qt @ freenode network about this, no one replied though.

from libtins.

niemal avatar niemal commented on August 21, 2024

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.

mfontanini avatar mfontanini commented on August 21, 2024

Please post the complete error message, although this seems more like a Visual Studio/QtCreator than a libtins one.

from libtins.

niemal avatar niemal commented on August 21, 2024

Yeah I agree, I am having someone helping me at the moment. I will update soon.

from libtins.

niemal avatar niemal commented on August 21, 2024

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.

mfontanini avatar mfontanini commented on August 21, 2024

Closing since this is more likely to be a QtCreator configuration issue than a libtins one.

from libtins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.