[Windows] Linking bin/minetest.exe fails

Ryster
New member
 
Posts: 4
Joined: Thu Sep 10, 2015 18:08

[Windows] Linking bin/minetest.exe fails

by Ryster » Tue Mar 22, 2016 21:25

I've followed all the instructions I could find to build under windows 32bit.
Using MinGW
CMake configures and generates ok, it compiles, but then when it get to linking (link.txt) I get hundreds of

I:/MineTest_build/sqlite-3.8.7.4/bin/sqlite3.lib(sqlite3.dir/Release/sqlite3.obj):(.text[_sqliteblahblahblah]+hexnumber): undefined reference to 'variable_blahblahblah'

I'm using sqlite-3.8.7.4 , DIR is my base dir that all libraries are located in

SQLITE3_LIBRARY = DIR/sqlite-3.8.7.4/bin/sqlite3.lib
SQLITE3_INCLUDE_DIR = DIR/sqlite-3.8.7.4/include (it has sqlite3.h in it)

do I not have something in the correct place?
would any other information help diagnose this?
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Windows] Linking bin/minetest.exe fails

by Krock » Wed Mar 23, 2016 17:44

Did you compile that sqlite3.lib with MinGW or is it a pre-compiled library? Compile it on your machine and try again.

If you need a CMakeLists.txt for this, use this (stupid simple) code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cmake_minimum_required(VERSION 2.6)

if(MSVC)
   set(CMAKE_C_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG")
endif()

add_library(sqlite3 "sqlite3.c")
target_link_libraries(sqlite3)
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

Ryster
New member
 
Posts: 4
Joined: Thu Sep 10, 2015 18:08

Re: [Windows] Linking bin/minetest.exe fails

by Ryster » Mon Apr 04, 2016 20:53

I used a precompiled ver, I'll try to compile it, thanks.
 


Return to Minetest Builds

Who is online

Users browsing this forum: No registered users and 1 guest

cron