Page 1 of 2

Problems Copling H-URU fork

PostPosted: Wed Mar 20, 2013 1:03 pm
by jamie_marchant
I am trying and failing to compile the H-URU fork of MOUla. I get this error:
Code: Select all
CoreLib.lib(plString.obj) : error LNK2001: unresolved external symbol _pcre_free

I tried pointing it to a version 7 release but this did not work, where do I get a Windows release of the correct or correct version? The Wiki does not say.

Re: Problems Copling H-URU fork

PostPosted: Wed Mar 20, 2013 4:22 pm
by Christopher
Do you have the latest master? If not take a look if you have the first line in this file:
https://github.com/H-uru/Plasma/blob/ma ... eLists.txt

Christopher

Re: Problems Copling H-URU fork

PostPosted: Wed Mar 20, 2013 4:43 pm
by jamie_marchant
I got the latest last night and I do have that line in my CMakeList.txt. I re-ran CMake and it worked fine. It's Visual Studio that is having the problem. I have built H-uru MOUla(or whatever they call it) on this setup before but it failed to compile last night after I got latest :(.

Re: Problems Copling H-URU fork

PostPosted: Wed Mar 20, 2013 10:45 pm
by Mystler
Your linker cannot find the PCRE library. Please check the PCRE_LIBRARY path in CMake. It should be set to the pcre.lib file.

Re: Problems Copling H-URU fork

PostPosted: Thu Mar 21, 2013 7:23 am
by jamie_marchant
Cmake is pointed to the correct file, no successes compiling. What version of pcre do I need? I got a per-complied version of version 7. Do I need version 8? Should the library be statically built(there is a check-box that is checked by default in CMake)

Re: Problems Copling H-URU fork

PostPosted: Thu Mar 21, 2013 2:53 pm
by Mystler
If you are using a static build of PCRE you'll also have to check the box.

Latest PCRE 8.32 works fine for me. I recommend you compile it yourself.

Re: Problems Copling H-URU fork

PostPosted: Thu Mar 21, 2013 3:09 pm
by jamie_marchant
Right I will give that a try.

Re: Problems Copling H-URU fork

PostPosted: Thu Mar 21, 2013 6:14 pm
by jamie_marchant
Well I'm on my way to getting a working client, after struggling with VS inability to recanize certurn paths. Looks like I need to recompile PCRE with UTF8 support.

Re: Problems Copling H-URU fork

PostPosted: Thu Mar 21, 2013 10:36 pm
by Mystler
Ah, I encountered that problem too. You have to check UTF_SUPPORT somewhere in PCRE CMake.

Re: Problems Copling H-URU fork

PostPosted: Fri Mar 22, 2013 6:50 am
by jamie_marchant
I figured that out actually. Did you also get an error about not being able to return an array from a function when compiling PRCE? I think I "fixed" that the wrong way(I failed to correct the sinture). Also for anyone reading this PRCE must be compiled "As an administaro" if you have UAC on in Windows Vistia or 7.