EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   CMAKE Error (https://www.eqemulator.org/forums/showthread.php?t=38059)

Hockyplr 04-17-2014 01:09 AM

The file I am clicking on is the sixth (6) FILE down, not including the folders.

http://prntscr.com/3aqvrd

When I right click on it, here is the menu I get:

http://prntscr.com/3aqwcj

Hockyplr 04-17-2014 01:15 AM

Okay, I highlighted the Build_All, then went under the Build tab at the top and selected build solution. After several seconds and a lot of "warnings" and commands being issued, the output screen provided the following:

http://prntscr.com/3aqx2p

2 successful and 0 errors....much lower than the 12 that the document said...however, is this a true successful build?

Uleat 04-17-2014 01:23 AM

Right-click 'Solution' and click clear.

Then right-click 'Solution' and click build.

See where that gets ya.

Hockyplr 04-17-2014 01:37 AM

It said skipped, 2 files up-to-date. I think it is working. I moved on, but the very next step:

e) Copying the executables to your server directory:-


1.First go into the C:\EQ\Source\Build\Bin\Debug folder and copy at least the following files:

shared_memory.exe, eqlaunch.exe, queryserv.exe, ucs.exe, world.exe and zone.exe to your C:\EQ\EQEmuServer folder.

None of the executable files were in that location.

Uleat 04-17-2014 02:58 AM

Do you have an older version of VS installed as well?

Uleat 04-17-2014 04:42 AM

I caught the error you posted -
Code:

Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler"
- in a few other posts.

One solution was to uninstall vs 2013 and install 2012.


(Some searching led to a page where that reference, 'IAR,' was related to 'ARM.' Could be an internal cmake issue...)


EDIT: I ran the circle on this one... Looking around on the web seems to point back to the installation of the SDK.
Moofta's post with the link to the SDK download is probably your best bet. You can try searching for vs2012/vs2013 and
console application, gdi32.lib to see what others have done to fix this.

If you do manage to get it working without down-grading, please post back your results..since, others have had this
particular issue.

moofta 04-17-2014 08:54 AM

Try using "Express 2013 for Windows Desktop" rather than "Express 2013 for Windows".

I just did a fresh install on Windows 2012 R2, installed ActivePerl, CMake and "Visual Studio Express 2013 for Windows Desktop" and I could get it to compile.

From the VS screenshots it thinks your project files are incompatible. I suspect that the "Visual Studio Express 2013 for Windows" version is more strict about the types of projects it uses, and CMAKE doesn't conform to that. (I am clutching at straws though)

When I wrote that part of the guide I didn't really think the exact VS2013 type would make a difference but maybe it does. I'm going to change it anyway since the desktop version will apply to more people (e.g. Windows 7 users).

Hockyplr 04-17-2014 12:06 PM

I went in and uninstalled VS 2013 for Windows. I downloaded and installed VS 2013 for Windows Desktop.

Deleted my old build folder. Re-compiled in cmake, without issues. Ran VS received NO INCOMPATIBLE error! Was able to right click on Build_ALL and select build. The build this time took much longer and ended with 12 successful and zero errors.

So thus far I am now successful. I would recommend maybe adding a section to the guide to insure that the person installing also installs the SDK, as I did not have that and cmake did not work until I installed that yesterday, so maybe a good idea to add it to the guide.

Also, I found this typo in the guide Moofta:

c) Download Visual Studio Express 2013
•Download Visual Studio Express 2013 For Windows Desktop (note: there is a "Visual Studio Express 2013 For Windows Desktop" do not use it as I *think* it won't work) and put it in the C:\EQ\Installs directory. Download the installer by clicking on 'Install Now'. Note this one is only a simple web installer package. It will download more when you run it.

Maybe change to:

c) Download Visual Studio Express 2013 For Windows Desktop
•Download Visual Studio Express 2013 For Windows Desktop (note: there is a "Visual Studio Express 2013 For Windows" do not use it as I *think* it won't work) and put it in the C:\EQ\Installs directory. Download the installer by clicking on 'Install Now'. Note this one is only a simple web installer package. It will download more when you run it.

I will continue to provide updates as I finish this using Moofta's guide. With all the help I am receiving, and a few tweaks here and there, we will be able to finalize that moofta's guide is working and updated.

Hockyplr 04-17-2014 12:14 PM

Another possible typo Moofta:

3.Finally, unless you have installed the full version of Lua 5.1 on your machine (there is no reason to do so in order to get EqEmu working), copy lua51.dll from the C:\EQ\Source\dependencies\luaj_x86

When I go to that location there is no such file. I do find the file within the \bin folder. Is this correct? Looks like the full path needs to be changed to:

C:\EQ\Source\dependencies\luaj_x86\bin

Hockyplr 04-17-2014 02:46 PM

With everything built and configured, here is what I receive in my error log:

Failed to connect to database: Error: #2003: Can't connect to MySQL server on 'localhost'

moofta 04-17-2014 04:03 PM

wiki updated to fix the inaccuracies you mentioned- thanks.

The MySql error is probably the credentials in your eqemuconfig file not matching the correct credentials (or differing database name), or of course if the mysql server isn't running ;)

Hockyplr 04-17-2014 11:29 PM

Here is the snippet of code I have in my EQEmu.xml file:

Code:

        <database>
                <host>localhost</host>
                <port>3306</port>
                <username>root</username>
                <password>Password</password>
                <db>peq</db>
        </database>

Granted that is not my actual password, but my database name is indeed peq, per Moofta's guide. Mysql is running, because from command prompt I can do the following:

Code:

> cd c:\EQ\SQL

> mysql -uroot -pPassword

I then get the MySQL lines, and if I follow it with:

Code:

> use peq
The database changes. Anyone have an idea why when I run the start.bat file, the server cannot connect to localhost?

Uleat 04-18-2014 12:39 AM

try changing localhost to 127.0.0.1

I know it's silly..especially if you have it defined in your system... But, that does fix it for some people.

Also, ensure that your login.ini is setup properly.

Hockyplr 04-18-2014 12:58 AM

Uleat,

I tried the change as you stated, and it did not work. I did change even the login.ini file. Now I have changed the two back...but here is the login.ini file just in case I missed something:

Code:

[database]
host = 127.0.0.1
port = 3306
db = peq
user = root
password = Password
subsystem = MySQL

[options]
unregistered_allowed = TRUE
reject_duplicate_servers = FALSE
trace = TRUE
world_trace = FALSE
dump_packets_in = FALSE
dump_packets_out = FALSE
listen_port = 5998
local_network = 192.168.1.69

[security]
plugin = EQEmuAuthCrypto
mode = 5

[Titanium]
port = 5998
opcodes = login_opcodes.conf

[SoD]
port = 5999
opcodes = login_opcodes_sod.conf

[schema]
account_table = tblLoginServerAccounts
world_registration_table = tblWorldServerRegistration
world_admin_registration_table = tblServerAdminRegistration
world_server_type_table = tblServerListType


Uleat 04-18-2014 04:27 AM

I don't think this affects MySQL login..but, you will need to change this:

Code:

[options]
unregistered_allowed = TRUE
reject_duplicate_servers = FALSE
trace = TRUE
world_trace = FALSE
dump_packets_in = FALSE
dump_packets_out = FALSE
listen_port = 5998
local_network = 192.168.1.

When you had them changed, did you get the same 2003 error? Or were you just not able to connect to the game server?


EDIT: If you don't mind, post your eqemu_config.xml file too.


All times are GMT -4. The time now is 05:45 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.