Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7801119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:50:59+00:00 2026-06-02T00:50:59+00:00

I successfully compiled OpenSSL 1.0.1 under win32 with mingw. Now I’m trying to compile

  • 0

I successfully compiled OpenSSL 1.0.1 under win32 with mingw. Now I’m trying to compile static Qt 4.8.1 with following config:

configure -release -static -qt-zlib -nomake examples -nomake demos -no-qt3support -no-scripttools -no-opengl -no-webkit -no-phonon -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -no-sql-sqlite -openssl-linked OPENSSL_LIBS="-lssl -lcrypto -lgdi32 -luser32" -I H:\Workplace\OpenSSL\include -L H:\Workplace\OpenSSL

I got these errors:

H:\Workplace\OpenSSL/libssl.a(ssl_lib.o):ssl_lib.c:(.text+0x17be): undefined ref
erence to '_time32'
(several times)

H:\Workplace\OpenSSL/libcrypto.a(o_time.o):o_time.c:(.text+0x362): undefined ref
erence to '_gmtime32'

H:\Workplace\OpenSSL/libcrypto.a(mem_dbg.o):mem_dbg.c:(.text+0x4c7): undefined r
eference to '_localtime32'

SOLVED (see below)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:51:00+00:00Added an answer on June 2, 2026 at 12:51 am

    Finally I solved all problems, here is full solution to compile static Qt with static OpenSSL using TDM-GCC.

    • Download sources of latest OpenSSL and unpack them.

    • I used TDM-GCC to compile, so download and install it.

    • Install MSYS.

    • Create file ../MsysInstallDir/etc/fstab with the following content:

    MyPathToMinGW /mingw (REQUIRED if you use tdm-gcc)

    MyPathToPerl /perl (perl is also required to be installed)

    • to compile OpenSSL run the following commands in OpenSSL sources folder (in MSYS):

    ./config

    make

    • download qt-everywhere (I used v.4.8.1) sources and unpack them.

    UPDATE: Recently I built 4.8.2 on another windows7 computer and got compiling error (while building my app): «cannot find -lQtCore4», «cannot find -lQtGui4». Here is the solution that helped me – edit file “qt-sources-dir/mkspecs/win32-g++/qmake.conf”. Set QMAKE_LFLAGS = -static -static-libgcc

    • create conf.bat file in qt sources dir with config:

    configure -release -static -qt-zlib -nomake examples -nomake demos -no-qt3support -no-scripttools -no-opengl -no-webkit -no-phonon -no-style-motif -no-style-cde -no-sql-sqlite -openssl OPENSSL_LIBS="-lssl -lcrypto -lgdi32 -luser32" -I MyOpenSSLdir\include -L MyOpenSSLdir

    • run cmd. run mingwvars.bat in mingw folder. run conf.bat in qt sources folder (or add sources folder to the PATH and run it from another directory, to separate install from sources). It will take a few hours to compile Qt.

    • add to project’s .pro file: INCLUDEPATH += OpenSSLdir/include/

    I think it may help somebody.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to cross-compile several libraries from OSX to iOS. I've successfully cross-compiled libjpeg
I have successfully compiled lua in my mac. It works. It runs. Now, I
I'm trying to create a NuGet package from a .csproj. I have successfully compiled
I have compiled a simple win32 app successfully with bc++ (2 lines excerpt only):
I do tutorial in following link: Java RMI Tutorial After I compile successfully three
The following C++ library was successfully compiled in VS2008 http://sourceforge.net/projects/xmlrpcc4win/files/xmlrpcc4win/XmlRpcC4Win1.0.8.zip/download When I open it
anyone successfully compiled three20 under XCode 4? I tried, and changed all Base SDK
Has anyone successfully cross-compiled mono for ARM under Linux without scratchbox or qemu? (maybe
Following interface and classes are successfully compiled. Problem is mentioned in the output below
i am trying to submit a java program in codechef . I successfully compiled

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.