ASC & DBC not detected on project build - Library compilation succeed on Windows

Create issue
Issue #1 resolved
Venkatesan SoundiraRajan created an issue

I have created a project in Qt creator & trying to use ASC & DBC library support for my application. I have done ASC & DBC compilation with MinGW and trying to call the library on my application. but I couldn't see on my code page. ASC & DBC build are on different directory path.

Please help me to solve this small issue.

Thanks in advance.

Comments (11)

  1. Tobias Lorenz repo owner

    After you built the libraries, you should install them into a common directory structure. There is an install target for that and you can set the DESTDIR or PREFIX to that common installation directory. Libraries will be installed to /lib. All headers and pkgconfig will be installed to /include. If you set the include path of your application project to this folder, it should find everything it needs.

    Alternatively you can copy both source code projects together. The source code directory structure is made in a way that it can easily be joined. Only the main CMakeLists.txt need to be merged then. Following this directory structure, you can setup your application project.

  2. Venkatesan SoundiraRajan reporter

    Thanks for your valuable reply & time.

    I'm trying to use DBC alone with project build and I had a linker error,

    DBC compilation (after configuration & generation done with GCC compiler using CMake): build/ ....s1.png build/src/ ... s2.png

    As per your following guide lines, •Open the Visual Studio Solution (.sln) file in the build folder. •Compile it in Release Configuration.

    I don't want to use visual studio and want compile with GCC.

    So please guide me for the GCC compile procedure.

    Please help me.

  3. Venkatesan SoundiraRajan reporter

    I have installed VS2013-pro and successfully launched DBC with my PC. It's working well. Now I have an issue with ASC package, while open the project and build in VS2013,after completing CMake procedure.

    [FLEX][Lexer] Building scanner with flex 2.5.4 2> D:\Public\Myinstall\GnuWin32\bin\flex.exe: unknown flag '-'. For usage, try 2> D:\Public\Myinstall\GnuWin32\bin\flex.exe --help 2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.

    Here, I have google for the error statement and I don't find the solution for this issue.

    Is there any solution you can provide for this issue?

    Looking positive reply!

    Thanks in advance!

  4. Tobias Lorenz repo owner

    Hi Venkat, the command gets executed as "flex -oLexer.cpp Lexer.l". Can you check if you can execute this manually? The Lexer.l file is in src/Vector/ASC. What happens if you execute it as "flex -oLexer.cpp Lexer.l --wincompat"? Bye Tobias

  5. Venkatesan SoundiraRajan reporter

    Hi Tobias,

    Thanks for your suggestion.

    When I have tried with "--wincompat", It's return the error statement "flex can't open --wincompat". So, I have used "flex -oLexer.cpp Lexer.l" by manually in command window for Lexer.cpp generation.

    Then I build with VS2013 project and I got a error "istream ambiguous symbol". So I have added #include <iostream> and changed std::istream instead of istream in the Flexlexer.h.

    Finally I got success build without any errors.

    Thanks for the immediate response.

  6. Tobias Lorenz repo owner

    I'm glad to hear that :-)

    I'm currently setting up Jenkins Jobs for more Linux and Windows Visual Studio versions. Hopefully I'll find more such issues then upfront.

    Bye Tobias

  7. Log in to comment